Codegraph alternatives in 2026: code knowledge graphs for AI agents
What are the best Codegraph alternatives in 2026? For a skill that graphs a repo plus docs, graphify. For a local-first MCP and CLI map used in reviews, code-review-graph. For a Go engine with CLI, MCP and API, Gortex. For a single static binary MCP graph, codebase-memory-mcp. For a C++ CLI that picks context for an agent, ripwire. For ranked passages over the same files, XERJ.
Key number: Codegraph has 79,311 GitHub stars, is MIT licensed, and its latest release is v1.6.7, 30 Nov 2026. graphify has 155,614 stars and codebase-memory-mcp has 49,413 stars.
Stars and licences from the public GitHub API on 1 Dec 2026; latest releases from the GitHub releases API the same day. Features from each project's GitHub description and README.
TL;DR Codegraph is a pre-indexed local code knowledge graph for coding agents. It is MIT licensed and exposes the graph over MCP. Teams compare alternatives when they want a skill-based graph, a review-oriented map, a single static binary, or ranked file search rather than a symbol graph. Pick graphify for a repo-plus-docs skill, code-review-graph for a local MCP map used in reviews, Gortex for a Go CLI/MCP/API engine, codebase-memory-mcp for one static binary, ripwire for a C++ context CLI, and XERJ for hybrid search over the same code.
Find the Codegraph alternative that fits
Sort by
| Tool | What it is | Best for | Latest release | Licence | Stars |
|---|---|---|---|---|---|
| Codegraph | Pre-indexed local code knowledge graph for coding agents, with MCP | A persistent graph of a repo that stays in sync as code changes | v1.6.7, 30 Nov 2026 | MIT | 79,311 |
| graphify | Skill-based knowledge graph over a codebase, docs, schemas and PDFs | A local graph skill for Claude Code, Cursor, Codex and Gemini CLI | v0.9.124, 30 Nov 2026 | Apache-2.0 | 155,614 |
| code-review-graph | Local-first code intelligence graph with MCP and CLI | A persistent map so review and large-repo agents read only what matters | v2.4.0, 11 Nov 2026 | MIT | 33,002 |
| Gortex | Local code-intelligence engine with a graph, CLI, MCP and API | Multi-language, multi-repo graphs that agents query instead of whole files | v0.64.12, 30 Nov 2026 | Apache-2.0 | 2,704 |
| codebase-memory-mcp | Single static binary MCP server that indexes a repo into a code graph | A zero-dependency local graph with fast queries over many languages | v0.12.1, 16 Oct 2026 | MIT | 49,413 |
| ripwire | Zero-dependency C++23 CLI and MCP server for agent context | Find the right code for an agent without reading the whole repo | v0.7.0, 23 Nov 2026 | Apache-2.0 | 2,585 |
| XERJ | Local search over code and files with ranked passages and citations over MCP | Hybrid search of a repo when you want passages, not only a symbol graph | v1.0.0-rc.105, 23 Nov 2026 | Apache-2.0 | 23,083 |
Read https://xerj.org/compare/codegraph-alternatives-2026.md. Ask me which languages we use, whether the agent needs an MCP server, whether we want a symbol graph or ranked file search, and how the graph should stay current, then tell me which Codegraph alternative fits and how to install it.
Pick one in ten seconds
- A pre-indexed local graph with MCP: Codegraph.
- A skill that graphs code, docs, schemas and PDFs: graphify.
- A local MCP and CLI map for reviews and large repos: code-review-graph.
- A Go engine with CLI, MCP and API: Gortex.
- A single static binary MCP graph: codebase-memory-mcp.
- A C++ CLI and MCP server for agent context: ripwire.
- Ranked passages over the repo, with citations: XERJ.
Why people look for a Codegraph alternative
Codegraph builds a local knowledge graph of a repository and keeps it current so coding agents can ask for precise context instead of reading whole files. It is written in TypeScript, MIT licensed, and ships over MCP. The latest release is v1.6.7, 30 Nov 2026. Teams compare alternatives when they want a graph skill that also covers docs, a review-oriented map, a static binary, or hybrid search. For a four-way view of graphify, code-review-graph, Gortex and ripwire, see graphify vs code-review-graph vs Gortex.
Codegraph vs graphify vs Gortex
Codegraph is a pre-indexed, auto-syncing graph with an MCP server (79,311 stars, MIT, v1.6.7, 30 Nov 2026). graphify is a local skill that turns a codebase, docs, SQL schemas, configs and PDFs into a queryable graph using deterministic AST parsing (155,614 stars, Apache 2.0, v0.9.124, 30 Nov 2026). Gortex is a Go code-intelligence engine with a graph, CLI, MCP and API (2,704 stars, Apache 2.0, v0.64.12, 30 Nov 2026). Choose Codegraph when you want a dedicated, frequently released MCP graph; choose graphify when the skill should cover docs and schemas as well as code; choose Gortex when you want a Go binary with CLI, MCP and API together.
When to choose code-review-graph, codebase-memory-mcp or ripwire
Choose code-review-graph when the job is a persistent local map for reviews and large-repo workflows (MIT, v2.4.0, 11 Nov 2026, 33,002 stars). Choose codebase-memory-mcp when you want a single static C binary MCP server with no runtime to install (MIT, v0.12.1, 16 Oct 2026, 49,413 stars). Choose ripwire when you want a zero-dependency C++23 CLI and MCP server that selects context for an agent (Apache 2.0, v0.7.0, 23 Nov 2026, 2,585 stars).
XERJ: a new way for AI to search for data
XERJ is not a symbol knowledge graph. It is a local search engine for code and files: agents call it over MCP and get ranked passages with citations. The latest release is v1.0.0-rc.105 (23 Nov 2026). xerj mcp --http serves Streamable HTTP at http://127.0.0.1:9330/mcp, read-only unless you pass --allow-writes. A non-loopback bind needs XERJ_MCP_TOKEN. The flag is --http. Use a graph tool when the agent must walk callers and structure; use XERJ when it must search the text of the repo.
Looking for a codebase-memory-mcp alternative? codebase-memory-mcp alternatives 2026 compares it with Codegraph, graphify, code-review-graph, Gortex, Serena, Claude Context and XERJ, with a filter.
Read next
- graphify vs code-review-graph vs Gortex 2026
- Best MCP server for local code search 2026
- Grep alternatives 2026
- Sourcegraph alternatives 2026
- Greptile alternatives 2026
FAQ
What is the best Codegraph alternative in 2026?
graphify fits a local skill over code and docs. code-review-graph fits a local MCP map for reviews. Gortex fits a Go CLI, MCP and API. codebase-memory-mcp fits a single static binary. ripwire fits a C++ context CLI. XERJ fits ranked passage search over the same repo.
Is Codegraph open source?
Yes. colbymchenry/codegraph is MIT licensed, with 79,311 GitHub stars on 1 Dec 2026, and its latest release is v1.6.7, 30 Nov 2026.
How does Codegraph differ from grep or ripgrep?
Grep and ripgrep search text. Codegraph and the graph tools on this page index structure (symbols, relationships) so an agent can ask for related context without scanning every file. XERJ sits in between: it is search, with ranking and citations, not a symbol graph.
Does XERJ replace Codegraph?
No. They solve adjacent jobs. Codegraph answers structural questions about a codebase. XERJ searches the text of code and other files. Some teams run a graph MCP next to XERJ.
How was this page checked?
Stars and licences came from the public GitHub API on 1 Dec 2026. Latest releases came from the GitHub releases API the same day. Features were read from each repository's description and README.
Evidence
- colbymchenry/codegraph: 79,311 stars, MIT, v1.6.7, 30 Nov 2026.
- Graphify-Labs/graphify: 155,614 stars, Apache-2.0, v0.9.124, 30 Nov 2026.
- tirth8205/code-review-graph: 33,002 stars, MIT, v2.4.0, 11 Nov 2026.
- zzet/gortex: 2,704 stars, Apache-2.0, v0.64.12, 30 Nov 2026.
- DeusData/codebase-memory-mcp: 49,413 stars, MIT, v0.12.1, 16 Oct 2026.
- redhat-et/ripwire: 2,585 stars, Apache-2.0, v0.7.0, 23 Nov 2026.
- xerj-org/xerj: 23,083 stars, Apache-2.0, v1.0.0-rc.105 (23 Nov 2026).