Code-Graph-RAG vs XERJ
Code-Graph-RAG is an open-source MCP server for knowledge and memory. XERJ is an open-source MCP server for knowledge and memory.
- Code-Graph-RAG is best for ask how a function is reached in an unfamiliar monorepo.
- XERJ is best for search local code and docs from an agent.
- What it is
- Code-Graph-RAG is an open-source MCP server for knowledge and memory.XERJ is an open-source MCP server for knowledge and memory.
- Best for
- Ask how a function is reached in an unfamiliar monorepoSearch local code and docs from an agent
- Kind
- MCP serverMCP server
- Pricing
- Open sourceOpen source
- Platforms
- CLI, self-hostedCLI, Linux, macOS, self-hosted, API
- Runs
- LocallyLocally
- GitHub stars
- 19.2K
- Last commit
- Nov 2026
- License
- Apache-2.0
- Open source
- Good for
- Ask how a function is reached in an unfamiliar monorepo; Find unreachable functions before a cleanup; Apply a pattern-based rewrite across a whole codebaseSearch local code and docs from an agent; Give an agent persistent memory notes; Look up real API definitions
What Code-Graph-RAG does
Tree-sitter graph index
Parses 14 languages into one graph schema of functions, classes, modules and dependencies.
Natural-language queries
Translates plain-English questions into Cypher queries over the code graph.
AST-based editing
Replaces specific functions with a diff preview shown before anything changes.
Dead code detection
Walks call and reference edges from entry points to find unreachable functions.
Structural search and replace
Uses ast-grep patterns to match and rewrite code by structure, not text.
Runtime trace overlay
Merges calls observed in a test run into the graph with the cgr trace command.
What XERJ does
Single binary
Search, vectors, facts and memory in one Rust program.
Evidence-backed answers
Answers come with the program and evidence used.
Runs locally
Works offline on a CPU, on a laptop or server.
Elasticsearch-compatible API
Exposes an API compatible with Elasticsearch.
Reference coding
Index open-source repos so agents consult real definitions.
MCP integration
Stdio MCP server connects to a running node.
Code-Graph-RAG vs XERJ: questions
Is Code-Graph-RAG or XERJ cheaper?
Both are open source. Compare current plans on each official site.
What is the difference between Code-Graph-RAG and XERJ?
Code-Graph-RAG is an open-source MCP server for knowledge and memory. XERJ is an open-source MCP server for knowledge and memory.
