PTS security notes / MCP servers / codebase-memory-mcp

Is codebase-memory-mcp safe to install?

By PTS · Based on public source as of December 5, 2026

Short answer

It indexes your repositories into a local graph database, runs a background watcher and offers a local UI on 127.0.0.1:9749. Install is a downloaded native binary, so the install script and release are part of your trust. GitHub lists 5 advisories (2 high, memory safety in the parser and query code), fixed up to 0.10.0.

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.

It reads your source code and indexes it. Index data stays local per the README's description.

ToolWhat it can doNotes
index_repositoryWritesIndexes a repo and can write a graph file next to the source when persistence is enabled.
delete_projectDeletesRemoves a project's graph data.
list_projectsReads
search_graphReads
trace_pathReads
detect_changesReadsMaps a git diff to affected symbols.
query_graphReadsCypher-like, read-only.
get_code_snippetReads
get_file_outlineReads
search_codeReads
manage_adrWritesCreates and updates architecture decision records.
ingest_tracesWrites

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.

AdvisorySeveritySummaryAffectedFixed in
GHSA-8xwq-xv2x-853r · CVE-2026-114495HighHeap buffer overflow on artifact import via int-truncated decompression capacity< 0.9.00.9.0
GHSA-vpgh-g3jg-ggx9 · CVE-2026-114494HighStack out-of-bounds write in query_graph projection handling< 0.9.00.9.0
GHSA-cjhf-76h2-4hwg · CVE-2026-114499ModerateCatastrophic backtracking in .gitignore glob matching lets a repository stall the indexer< 0.10.00.10.0
GHSA-r2qv-x3rg-p49m · CVE-2026-114497ModerateUI process-kill route skipped the ownership check on Windows, allowing termination of arbitrary processes< 0.9.1-rc.10.9.1-rc.1
GHSA-2vj2-hwgx-6f23 · CVE-2026-114496Moderategit option injection through base_branch in detect_changes allows writing a file outside the project< 0.9.00.9.0

What stands out

Safe-install checklist

Install command from the project's docs: npm install -g codebase-memory-mcp.

  1. 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.
  2. Keep secrets out. Start it with a clean environment, so it does not inherit your shell's keys.
  3. Install a pinned npm or pip package or verify the release archive, rather than piping a script to bash.
  4. Run 0.10.0 or later. Turn off the watcher if you do not want background indexing.
  5. Deny the tools you do not need. In Claude Code, deny rules in .claude/settings.json use the form mcp__<server name>__<tool>, where the server name is whatever you called it in your config. Example, if you named it codebase-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"
        ]
      }
    }
  6. Snapshot the tool list. Save the tools/list output 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.
  7. 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.

Get the free checklist

A 9-page worksheet plus starter files for Claude Code and Codex. It maps what your agent can reach and shrinks it. Download it on Gumroad. This site does not collect email.

Get the free checklist

Before you install anything, try the MCP tool diff checker. See all 54 servers.

More server pages