Local codebase-intelligence MCP server and CLI for coding agents: a SQLite code graph over 28 languages with dependency tracing, impact analysis, pattern findings and scoped checks.
tokensaveMCP Server
Summary
Local code-intelligence MCP server in Rust: indexes a repository into a semantic knowledge graph so coding agents get symbols, callers and impact in one call instead of scanning files.
Features
- Pre-indexed semantic knowledge graph of your repository
- 80+ MCP tools: context building, call graph, impact analysis, semantic search
- Dead code, complexity, test mapping and code-health metrics
- Atomic edit primitives with automatic re-indexing
- 50+ languages via tree-sitter, per-branch databases
- Auto-setup for Claude Code, Codex CLI, Gemini CLI, Cursor, Copilot and more
- Fully local index; opt-out usage counter
Installation
Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.
Description
tokensave is an MCP server and CLI that pre-indexes a codebase into a local knowledge graph (libSQL with FTS5) so AI coding agents can query it instead of grepping and reading files. A single context call returns entry points, related symbols and code snippets for a task; other tools trace callers and callees, show the impact radius of a change, find code by meaning, detect dead code, map tests and report complexity and code-health metrics. It exposes more than 80 MCP tools, including atomic edit primitives (anchored str_replace, multi-replace, AST rewrite) that re-index after each write.
It is a Rust port of the CodeGraph project, parses 50+ languages with tree-sitter (built in lite, medium or full tiers), keeps a database per git branch, and checks the index for staleness on each MCP call. tokensave install detects and configures Claude Code, Codex CLI, Gemini CLI, Cursor, Copilot, Zed and many other agents.
Install: cargo install tokensave, Homebrew (brew install aovestdipaperino/tap/tokensave), Scoop, or a prebuilt binary for macOS, Linux and Windows; then run tokensave install and tokensave init in your project. MIT-licensed. Indexing and queries stay on your machine; an opt-out counter uploads only a token count and country (disable with TOKENSAVE_TELEMETRY=off).
Related MCP Servers
See all tokensave alternativesCode-intelligence engine for AI agents: indexes repositories into a knowledge graph across 257 languages and serves symbol lookup, call chains, blast radius and PR review over MCP.
MCP: Codebase Memory MCP
by DeusData
Local code-intelligence MCP server that indexes a repository into a persistent knowledge graph, so structural questions cost one query instead of a file-reading spree.
MCP: Codanna
by Codanna
Local code intelligence MCP server that returns symbol context, call graphs and impact analysis in a single call — 15 languages, indexed on your own machine.