fittok MCP server
io.github.likhithreddy/fittok·v0.11.1·3 starsRetrieve only the relevant code for a codebase question, within a token budget.
3 stars111 downloads/wk
Reviews
Write oneNobody has reviewed fittok yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
fittok tools (20)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
add_pii_pattern_toolAdd or override a PII detection pattern.
cache_stats_toolReturn cache hit/miss statistics and size.
clear_cache_toolClear the cache. Scope: 'all' | 'graph' | 'query'.
diff_graph_toolCompare two knowledge graphs and return structural differences.
get_graph_stats_toolReturn metadata and stats for a graph.
launch_ui_toolLaunch the web visualization UI for graph exploration.
list_pii_patterns_toolList all registered PII detection patterns.
optimize_context_batchOne parse, many queries. Builds graph once, runs slurp+select per query.
optimize_context_streamStreaming pipeline: yields stage-by-stage progress events.
optimize_context_structuredFull pipeline with structured JSON output mode.
optimize_context_toolReturn the most relevant REAL source code for a question — completely.
parse_codebase_stream_toolStream parse progress. Parses in batches, returns progress events.
parse_codebase_toolParse all code files in a directory into a knowledge graph.
query_graph_toolQuery a knowledge graph for the most relevant subgraph within a token budget.
reset_graph_toolForce a full re-parse of the codebase, ignoring cache.
scrub_file_toolScrub PII from a file.
scrub_text_toolScrub PII (secrets, emails, API keys, etc.) from text.
show_graph_toolOpen an INTERACTIVE BROWSER visualization of the codebase knowledge graph.
watch_start_toolStart watching a codebase for incremental graph updates.
watch_stop_toolStop watching a codebase.
Public scan report
scanner v0.1.10 · 2026-10-31 · same rubric, same numbers if you re-run it
- Code scan24 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 68 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How fittok compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 75% of 48,255 servers
- Tools
- 20
- the typical server has 7
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 3
- more than 80% of 28,688 servers
- Downloads a week
- 111
- more than 65% of 12,191 servers with a package
What its tools let an agent do: 19 read · 1 create
Install fittok in Claude Code, Cursor or VS Code
claude mcp add fittok -- uvx fittok
What the publisher says
From the fittok repository's README, as published. We do not edit it. Read it on GitHub
fittok
Retrieve only the relevant source code for a question — instead of the model reading whole files — so an LLM answers codebase questions on a small, focused slice of context. Less input = fewer tokens, lower cost, faster answers.
Works three ways from one install: an MCP server, a CLI, and a Python library — plus a Claude Code plugin that injects context automatically.
📖 Full command reference → docs/HANDBOOK.md
<!-- MCP Registry: PyPI ownership verification — do not remove this line --> mcp-name: io.github.likhithreddy/fittok
How it works
codebase ──▶ graphify ──▶ slurp ──▶ readable slice ──▶ LLM answers
(parse) (select) (trim to budget)functions / classes / methods (Python, JS, JSX, TS, TSX, Java, Go, Rust). Supports multi-language call/import/reference edges.
- graphify — parses the repo with tree-sitter into a knowledge graph of
- slurp — scores every node against the question using a 4-signal hybrid:
- Semantic embeddings (all-MiniLM-L6-v2) — meaning-based matching
- Content-BM25 (with camelCase/snake_case splitting) — keyword matching
- Summary-BM25 (node name + file + callers + callees) — structural matching
- PageRank — graph centrality / hub detection
Signals are fused via Reciprocal Rank Fusion (RRF) — rank-based, no score calibration issues. Nodes are selected via round-robin directory interleaving (guarantees facet coverage on multi-aspect queries — one node from each code area before any gets a second) with a per-node token cap (25% of budget, so large components don't crowd out smaller functions). A relevance cliff (semantic OR BM25 OR summary-BM25 threshold) excludes noise.
plus a codebase map (table of contents with docstrings, inspired by Karpathy's LLM Wiki / Google's OKF) so the model can route follow-up calls precisely. The model answers directly from it — no file reads needed.
- readable output — returns the actual source code of selected nodes,
As you edit, a file watcher (auto-started on first query) updates the graph incrementally — only changed files are re-parsed and merged, and only changed functions re-embed. Graphs and embeddings are cached on disk (~/.cache/fittok). Set FITTOK_AUTOWATCH=false to disable the watcher, in which case an edit triggers a full re-parse on the next query.
Getting the best results (and known limitations)
Ask focused questions
fittok ranks code against your question using a 4-signal hybrid (semantic + BM25 + structural + PageRank, fused via RRF) with round-robin directory diversity — so multi-facet questions surface code from multiple areas (UI, server, database) instead of clustering in one dominant area. It's most accurate with focused, specific questions — ideally one concern each, and naming the function/component/route when you can. Multi-facet questions are supported via decomposition (the tool description tells the model to call once per aspect) and the codebase map (a table of contents prepended to every response).
- ✅ "How does runSandboxQuery execute and isolate a SQL query?" → surfaces the exact function + its isolation code.
- ✅ "How does the querydle client submit a query and render results?" → surfaces the UI component.
- ✅ "Trace the full lifecycle: UI submission, sandbox execution, data isolation" → decomposition + round-robin diversity covers multiple facets; the codebase map routes the model to any missed files.
Rule of thumb: one concern per question (or 2–3 facets max). For "explain the whole feature," split it into a few focused questions instead of one mega-query.
Known limitations
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
fittok: common questions
- Is fittok MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the fittok safety report
- How do I install fittok?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does fittok need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is fittok maintained?
- The last commit was 71 days ago (2026-08-24). The latest release is v0.11.1.
- What can I use instead of fittok?
- Servers from other publishers that do the same job: Codebase Memory MCP server.
- How does fittok compare with other MCP servers?
- safety score 88/100 (higher than 75% of 48,255 servers); tools 20 (the typical server has 7); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to fittok
Same job from other publishers: the closest match first, then the best rated.
- Codebase MemoryCodebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.not reviewedWidely usedC