Skip to content

Codebase Memory vs RAG for your documents

Codebase Memory is an open-source MCP server for knowledge and memory. RAG for your documents is an open-source MCP server for knowledge and memory.

  • Codebase Memory is best for find callers of a function.
  • RAG for your documents is best for ask questions about a policy folder.
What it is
Codebase Memory is an open-source MCP server for knowledge and memory.
RAG for your documents is an open-source MCP server for knowledge and memory.
Best for
Find callers of a function
Ask questions about a policy folder
Kind
MCP server
MCP server
Pricing
Open source
Open source
Platforms
CLI, macOS, Linux, Windows, self-hosted
CLI
Runs
Locally
Locally
GitHub stars
48.7K
Last commit
Nov 2026
License
MIT
Open source
Good for
Find callers of a function; Assess the impact of a diff; Link documentation to code
Ask questions about a policy folder; Verify that an assistant's answer is supported by your files; Prototype document search without cloud services

What Codebase Memory does

  • Code knowledge graph

    Persistent graph of symbols, calls and dependencies.

  • Multiple search modes

    Structural, full-text and local semantic search.

  • Documentation links

    Indexes Markdown, reStructuredText, AsciiDoc and ADRs.

  • Infrastructure tracing

    Connects Docker, Kubernetes, Terraform and CI to source.

  • Change impact

    Maps a diff to affected symbols and related tests.

  • Native CLI

    Query the same graph from the command line.

What RAG for your documents does

  • Offline indexing

    Indexes a folder at startup with no key, database or network.

  • Passage search

    Returns ranked passages with source file and chunk id.

  • Answer checking

    Tests an answer against retrieved or supplied sources.

  • Adjustable limits

    topK and question size can be set by input or flag.

  • Stdio transport

    The client starts the server directly.

Codebase Memory vs RAG for your documents: questions

Is Codebase Memory or RAG for your documents cheaper?

Both are open source. Compare current plans on each official site.

What is the difference between Codebase Memory and RAG for your documents?

Codebase Memory is an open-source MCP server for knowledge and memory. RAG for your documents is an open-source MCP server for knowledge and memory.