codebase-memory-mcp vs xerj

Local code search and knowledge tools compared

codebase-memory-mcp and xerj both provide local tools that help AI agents work with code and other repository content. codebase-memory-mcp centers on a persistent graph of code structure and relationships, while xerj focuses on BM25, vector, and hybrid search across code and other files.

codebase-memory-mcpxerj
LanguageCRust
LicenseMITApache-2.0
Stars45.7k13.2k
Forks3.8k947
Last analyzedOct 3, 2026Oct 23, 2026

Key differences

  • codebase-memory-mcp builds a graph of definitions, calls, imports, routes, and types; xerj indexes content for full-text, vector, and hybrid search.
  • codebase-memory-mcp emphasizes code structure, architecture queries, and change-impact analysis; xerj also targets documents, logs, agent memory, and reference coding.
  • codebase-memory-mcp is written in C and licensed under MIT; xerj is written in Rust and licensed under Apache-2.0.
  • codebase-memory-mcp stores graph data locally in SQLite; xerj ships as a single binary for Linux, macOS, and Windows and offers an Elasticsearch-compatible API.
  • codebase-memory-mcp is presented as an established project with 45.7k stars; xerj has 13.2k stars and is described as less than six months old and changing quickly.

Choose codebase-memory-mcp if you…

  • need graph queries for code relationships, call tracing, or architecture summaries.
  • want local code context for an MCP-compatible agent, including change-impact analysis.
  • need route-to-call exploration across services or repositories.
Read the codebase-memory-mcp analysis →

Choose xerj if you…

  • want BM25, vector, or hybrid search across code, documents, logs, and structured files.
  • need namespace-based agent memory or local RAG without a separate search service.
  • want an Elasticsearch-compatible search API and a binary available for Linux, macOS, and Windows.
Read the xerj analysis →

Compare the numbers side by side, or add more projects

This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.