What it is
codebase-memory-mcp by DeusData is a native C server that parses code in many languages into a knowledge graph and exposes search, tracing and change-impact tools.
- Maintainer
- CommunityDeusData on GitHub (individual account, community project)
- Source
- DeusData/codebase-memory-mcp49,669 GitHub stars · MIT licence
- Transport
- stdio, local UI on 127.0.0.1
- Packages
- codebase-memory-mcp npm · latest 0.12.1 · 53,224 downloads last month
codebase-memory-mcp pypi · latest 0.12.1 · 8,214 downloads last month - Latest release
- v0.12.1 2026-11-17
- Public advisories
- 5GitHub and OSV, as of December 5, 2026
What it can do
Read from the public tool definitions in the source, not from a live run. A capability marked "yes" means at least one tool can do it.
- Reads: yes
- Writes: yes
- Deletes: yes
- Runs code: no
- Network: no
- Sends: no
It reads your source code and indexes it. Index data stays local per the README's description.
| Tool | What it can do | Notes |
|---|---|---|
index_repository | Writes | Indexes a repo and can write a graph file next to the source when persistence is enabled. |
delete_project | Deletes | Removes a project's graph data. |
list_projects | Reads | |
search_graph | Reads | |
trace_path | Reads | |
detect_changes | Reads | Maps a git diff to affected symbols. |
query_graph | Reads | Cypher-like, read-only. |
get_code_snippet | Reads | |
get_file_outline | Reads | |
search_code | Reads | |
manage_adr | Writes | Creates and updates architecture decision records. |
ingest_traces | Writes |
README tool tables list 17 tools. The list here is a subset.
Credentials and least privilege
No credential.
Public security advisories
Advisories published on GitHub or OSV for this project, as of December 5, 2026. Fixed issues are a normal part of a maintained project. What matters is that the version you run is not in an affected range.
| Advisory | Severity | Summary | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-8xwq-xv2x-853r · CVE-2026-114495 | High | Heap buffer overflow on artifact import via int-truncated decompression capacity | < 0.9.0 | 0.9.0 |
| GHSA-vpgh-g3jg-ggx9 · CVE-2026-114494 | High | Stack out-of-bounds write in query_graph projection handling | < 0.9.0 | 0.9.0 |
| GHSA-cjhf-76h2-4hwg · CVE-2026-114499 | Moderate | Catastrophic backtracking in .gitignore glob matching lets a repository stall the indexer | < 0.10.0 | 0.10.0 |
| GHSA-r2qv-x3rg-p49m · CVE-2026-114497 | Moderate | UI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processes | < 0.9.1-rc.1 | 0.9.1-rc.1 |
| GHSA-2vj2-hwgx-6f23 · CVE-2026-114496 | Moderate | git option injection through base_branch in detect_changes allows writing a file outside the project | < 0.9.0 | 0.9.0 |
What stands out
- GitHub lists 5 advisories: 2 high (heap buffer overflow on artifact import, stack out-of-bounds write in query projection) and 3 moderate, fixed in 0.9.0 to 0.10.0.
- The README recommends an install script piped to bash, and also lists release archives and npm or pip installs.
- A watcher is on by default (
auto_watchtrue) and can be switched off withconfig set watcher_enabled false.
Safe-install checklist
Install command from the project's docs: npm install -g codebase-memory-mcp.
- Pin the version. Use an exact version, not
latest:npm install -g codebase-memory-mcp@0.12.1. The README also offers an install.sh script piped from GitHub. Prefer a pinned package. - Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
- Install a pinned npm or pip package or verify the release archive, rather than piping a script to bash.
- Run 0.10.0 or later. Turn off the watcher if you do not want background indexing.
- Deny the tools you do not need. In Claude Code, deny rules in
.claude/settings.jsonuse the formmcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named itcodebase-memory-mcp:{ "permissions": { "deny": [ "mcp__codebase-memory-mcp__index_repository", "mcp__codebase-memory-mcp__delete_project", "mcp__codebase-memory-mcp__manage_adr", "mcp__codebase-memory-mcp__ingest_traces" ] } } - Snapshot the tool list. Save the
tools/listoutput right after you install, then compare it before every upgrade with the free PTS MCP tool diff checker. It runs in your browser and flags new tools and changed descriptions or schemas. - Watch for fixes. Watch the project's security advisories and upgrade on purpose, after the diff.
For the general version of this list, see the MCP server security checklist. Not sure about a server that is not listed here? Read Is an MCP server safe to install?
Quick follow-ups
What can codebase-memory-mcp do on my machine or accounts?
Based on its public tool definitions, it can: reads local files or data; creates or changes files, records or settings; deletes or destroys data. It reads your source code and indexes it. Index data stays local per the README's description.
Does codebase-memory-mcp need a token or API key?
No credential.
Has codebase-memory-mcp had public security advisories?
Yes. 5 public advisories (GitHub or OSV) listed for it as of December 5, 2026. Each one is linked on this page with its affected and fixed versions, so you can check the version you run. Fixed issues are normal for active projects. Running a current, pinned version is what matters.
How do I keep codebase-memory-mcp from changing under me?
Pin the version, for example npm install -g codebase-memory-mcp@0.12.1. Then save its tool list (name, description, input schema) with the free PTS MCP tool diff checker and compare it before each upgrade.
Sources
This page is a factual summary of public information about the software. It is not a verdict on the maintainers and not an audit. Check the project's own docs for your version before you rely on it. Educational, not legal or security advice.
