fittok — relevant-code retrieval within a token budget (MCP server + CLI + library)
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Claude Desktop
Claude Code
Cursor
Add to claude_desktop_config.json:
{
"mcpServers": {
"fittok": {
"command": "uvx",
"args": [
"fittok"
]
}
}
}
📋 Copy
Run in terminal:
claude mcp add fittok uvx fittok
📋 Copy
Add to .cursor/mcp.json:
{
"mcpServers": {
"fittok": {
"command": "uvx",
"args": [
"fittok"
]
}
}
}
📋 Copy
Or install with pip: pip install fittok
README Excerpt
A standalone MCP server that filters and compresses context before it reaches the LLM, reducing token consumption by 80–90%. ``` │ ▼ ┌──────────────────────────────────────┐ │ MCP Server: fittok │ │ │ │ ┌──────────┐ │ │ │ Graphify │ → parse code into │
Tools (18)
FITTOK_CACHE_DIR FITTOK_CACHE_MAX_MB FITTOK_DEVICE FITTOK_MODEL FITTOK_MODEL_GPU FITTOK_SCRUB compress_context diff_graph get_graph_stats launch_ui optimize_context optimize_context_batch optimize_context_stream optimize_context_structured parse_codebase parse_codebase_stream query_graph reset_graph