CodeGraph
MCP : Standardises the connection between an AI application and systems that expose tools or data
A local code index, kept up to date on every change, that the agent queries instead of searching and reading files one by one.
CodeGraph builds a SQLite database of the project's symbols, calls and dependencies, and exposes it to the agent through an MCP server with a single tool. The agent finds a function and what calls it without crawling the repository. A file watcher resyncs the index after every change. The installer configures Claude Code, Cursor, Codex, Gemini CLI and others on its own. The announced gains, 88% fewer tool calls, were measured by the author on seven repositories. The project calls itself 100% local while sending anonymous daily telemetry, which can be turned off.
Security reflects where data goes, requested permissions and incidents on record at the verification date. It is not a guarantee of zero risk: check the deployment mode and the connections you enable.
What it does, concretely
When a coding agent needs to understand a project, it works the slow way: it searches, lists and reads files one by one, then rebuilds by hand who calls what. That means many tool calls and round-trips before the real work starts. CodeGraph targets this problem.
The tool builds a knowledge graph of the project in advance: symbols, calls and dependencies, stored in a local SQLite database. The agent reaches it through an MCP server with a single tool. It asks a question and gets back the relevant code and call paths, without crawling the repository. Parsing relies on Tree-sitter and covers more than twenty languages.
A file watcher updates the index on every change, whether the agent edits the code or you do. The installer detects and configures Claude Code, Cursor, Codex, Gemini CLI, opencode, GitHub Copilot and many other agents. The project is free and MIT-licensed.
CodeGraph is for people who already use a coding agent on repositories large enough for exploration to cost time. It suits you less if you use no MCP-compatible agent, or if you reject any telemetry on principle: it is anonymous and can be turned off, but it is on by default. The announced gains were measured by the author himself.
What it offers
- ·It builds a local graph of the project's symbols, calls and dependencies, stored in a SQLite database.
- ·It exposes this graph to the agent through an MCP server, so the agent answers in a few calls instead of reading files one by one.
- ·It resyncs the index automatically on every file addition, change or deletion, with nothing to re-run.
- ·It parses code with Tree-sitter across more than twenty languages, for symbols and links drawn from real syntax trees.
- ·It traces callers, callees and the impact radius of a symbol before you change it.
- ·Its codegraph install command detects and configures Claude Code, Cursor, Codex, opencode, Gemini CLI, GitHub Copilot, Windsurf and other agents automatically.
- ·It installs without Node.js, since the executable bundles its own runtime, on Windows, macOS and Linux.
- ·It uninstalls with one command, which removes each agent's configuration and the tool itself.
In practice
- Price
- Free
- Commercial use
- Commercial use: yes
- Available on
- claude-code, cursor, codex, gemini-cli, opencode, any-agent
- FR interface
- No
Security and data
- Rating
- Security: one caveat, see the card
- Your data
- Data stays local
- Maintenance
- Active
- Last release
- 30 November 2026
Links and repository checked on 30 November 2026 · added on 30 November 2026
How to install CodeGraph
curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh