# ShapeLex MCP server

> Provides local-first MCP memory that reduces AI context token usage by using compact handles for exact source text expansion on demand.

- Repository: https://github.com/AldoDior/shapelex
- Page: https://hostedmcp.org/servers/aldodior/shapelex
- Transport: —
- Stars: 0
- License: MIT

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SHAPELEX_PERSIST` | no | no |  |
| `SHAPELEX_PROVIDER_API_KEY` | no | no |  |
| `SHAPELEX_PROVIDER_ENDPOINT` | no | no |  |
| `SHAPELEX_RESPONSE_MODE` | no | no |  |
| `SHAPELEX_STORE_DIR` | no | no |  |

## Tools (7)

- `shapelex_compress_messages`
- `shapelex_compress_text`
- `shapelex_context`
- `shapelex_expand`
- `shapelex_memory_overview`
- `shapelex_clear`
- `shapelex_prune`

## FAQ

### Does ShapeLex use external APIs or LLMs?

No, ShapeLex is local-only by design. It stores exact memory on your computer, does not call external LLMs, and does not use embedding APIs.

### Can I use ShapeLex with Cursor or Claude Code?

Yes, ShapeLex is designed to work with MCP-compatible tools including Codex, Claude Code, and Cursor.
