mcpbeat Sign in

Codebase Memory MCP Server

local only

Codebase Memory runs on your own machine — the client starts it, so there is no endpoint to ping. 11 993 installs a week from npm. Last commit 2 Nov 2026.

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

Installs per day peak 738 · avg 303 · -34% w/w
a month agotoday
11 993
Installs / week
pypi · codebase-memory-mcp
47 963
Stars
475 open issues
2 Nov 2026
Last commit
from GitHub
MIT
License
C

What the code does

We read the source, 21 h ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs a command on install [пакет] package.json:1
postinstall: node install.js
  const probe = spawnSync(binPath, ['--version'], {
In the project's build, not in the package

Found in continuous integration, deployment or infrastructure files, or in a neighbouring package of the same monorepo. None of this is installed when you add the server: it describes how the project is built and released. We list it because a leaked key in a build pipeline is still a real problem, but it is not something this server does on your machine.

Runs an external command src/foundation/compat_fs.c:405
    return _popen(cmd, mode);
Builds a file path from a variable pkg/go/cmd/codebase-memory-mcp/main.go:383
    archivePath := filepath.Join(tmp, "cbm."+ext)
        subprocess.run(
} catch { videoPath = (await readdir(join(OUT, 'video'))).map((name) => join(OUT, 'video', name)).find((name) => name.endsWith('.webm')) ?? null; }
Touches key and credential files src/discover/language.c:760
    {".ssh/config", CBM_LANG_SSHCONFIG},

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add codebase-memory-mcp -- uvx codebase-memory-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "codebase-memory-mcp": {
      "command": "uvx",
      "args": [
        "codebase-memory-mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.codebase-memory-mcp]
command = "uvx"
args = ["codebase-memory-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "codebase-memory-mcp": {
      "command": "uvx",
      "args": [
        "codebase-memory-mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "codebase-memory-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codebase-memory-mcp"
      ]
    }
  }
}

Alternatives to Codebase Memory

same job, measured the same way
Memory for AI
by lonelytraderbay

Local codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

64 installs/wk local only
Cgraphy
by pmgarg

Code knowledge graph over MCP: token-budgeted context for AI coding agents.

62 installs/wk local only
Forensic Deepdive
by dhevenddra

Persistent code knowledge graph + 9 composite MCP tools for AI coding agents.

86 installs/wk local only
RemembrallMCP
by cdnsteve

Persistent knowledge memory for AI agents. Hybrid search, code graph, pgvector.

44 installs/wk local only
MCP Memory Graph
by yonasvalentin

Local-first memory for Claude Code and any MCP client: hybrid search + knowledge graph, $0/token.

249 installs/wk local only
Pharaoh
by pharaoh

Codebase knowledge graph — architectural awareness for AI coding agents via MCP

2 237 installs/wk answering
NervaPack
by ramdhavepreetam

Offline codebase knowledge graph: 91% token reduction vs naive RAG, plus cross-session agent memory.

134 installs/wk local only
Hypermnesia MCP Viz
by cdeust

Read-only visualization for Cortex memory, knowledge, sessions, traces, and codebase graphs.

170 installs/wk local only

Codebase Memory — questions

Answers built from our own checks of this server.

Why is there no uptime for Codebase Memory?
Codebase Memory runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the pypi package codebase-memory-mcp was installed 11 993 times last week.
How do I connect Codebase Memory?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls codebase-memory-mcp straight from pypi; nothing to host, nothing to sign up for.
How many people use Codebase Memory?
The pypi package codebase-memory-mcp was installed 11 993 times in the last week. Week over week that is -34%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Codebase Memory open source?
Yes — it is published under the MIT licence, written in C, 47 963 stars on GitHub and 475 open issues. The source link is on this page, so you can read exactly what it does with your data before you connect it.