# contextlens-mcp

Source: https://glimind.com/server/pypi%2Fcontextlens-mcp
Registry id: `pypi/contextlens-mcp`
Status: unknown

## Install

```json
{
  "mcpServers": {
    "contextlens-mcp": {
      "command": "uvx",
      "args": [
        "contextlens-mcp"
      ]
    }
  }
}
```

Claude Code:

```sh
claude mcp add contextlens-mcp -- uvx contextlens-mcp
```

## Tools (3)

- `context_budget`: Compute a budget report over a list of chat messages, reporting total tokens, remaining capacity, and overflow status.
- `estimate_tokens`: Estimate token count for a text with confidence label and accounting details.
- `truncate_text`: Truncate text to fit a token budget without splitting Unicode code points.

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
