# codebase-memory-mcp-pro-knowledge-graph

codebase-memory-mcp-pro-knowledge-graph is a Claude Code skill that maps a codebase into a syntax-tree graph. Agents find callers, trace call chains, and assess change impact.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 100 installs · ★ 9 repo stars
- Author: reason-machines
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/codebase-memory-mcp-pro-knowledge-graph/SKILL.md
- Updated: 2026-10-09
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/codebase-memory-mcp-pro-knowledge-graph

## What it does

codebase-memory-mcp-pro indexes a repository into a knowledge graph with function, class, and cross-file call nodes. This fork fixes incremental re-indexing—editing a file preserves inbound calls to its symbols instead of orphaning them.

The server exposes MCP tools: `explore` for one-call blast radius with callers and neighbors, `query_graph` for arbitrary Cypher queries, `detect_changes` with transitive caller analysis at configurable depth, and `trace_path` to build call chains between symbols. All results include line numbers. Built from source; the first build compiles 158 tree-sitter grammars and takes a few minutes, but incremental rebuilds are fast.

No precompiled binaries—you build locally to get all integrated fixes in one place.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill codebase-memory-mcp-pro-knowledge-graph -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/codebase-memory-mcp-pro-knowledge-graph/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/codebase-memory-mcp-pro-knowledge-graph/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill codebase-memory-mcp-pro-knowledge-graph -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/codebase-memory-mcp-pro-knowledge-graph/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill codebase-memory-mcp-pro-knowledge-graph -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/codebase-memory-mcp-pro-knowledge-graph/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install reason-machines/mcp-skills skills/codebase-memory-mcp-pro-knowledge-graph
```

2. **Manually: put the files in place**
- File: `.github/skills/codebase-memory-mcp-pro-knowledge-graph/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill codebase-memory-mcp-pro-knowledge-graph -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/reason-machines/mcp-skills --path skills/codebase-memory-mcp-pro-knowledge-graph
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/codebase-memory-mcp-pro-knowledge-graph/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add reason-machines/mcp-skills --skill codebase-memory-mcp-pro-knowledge-graph -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/reason-machines/mcp-skills/tree/HEAD/skills/codebase-memory-mcp-pro-knowledge-graph/SKILL.md

## When to use it
- find all functions that call a given symbol
- trace a call chain from request entry to database write
- estimate the blast radius of a code change
- identify unreferenced public functions
- explore graph structure with custom Cypher aggregations

## Example prompts
- Show me all callers of `processPayment` and flag hotspots
- How many different functions call `handleRequest` and where
- If I edit `src/payment/processor.ts`, which symbols does that impact two hops up the call stack

## Similar
- [ai-architect-mcp-codebase](https://affpapa.org/en/nevibecode/mcp/ai-architect-mcp-codebase.md) — MCP server · ★ 8 repo stars
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 49004 repo stars
- [agency-knowledge-graph-engineer](https://affpapa.org/en/nevibecode/skills/agency-knowledge-graph-engineer.md) — skill · ★ 85 repo stars
- [knowledge-graph-construction](https://affpapa.org/en/nevibecode/skills/knowledge-graph-construction.md) — skill · 103 installs
- [Tentra — Memory for AI Coding Agents](https://affpapa.org/en/nevibecode/mcp/tentra-memory-for-ai-coding-agents.md) — MCP server · ★ 6 repo stars
- [codegraph](https://affpapa.org/en/nevibecode/mcp/codegraph.md) — MCP server · ★ 166 repo stars

From the same set: [reason-machines/mcp-skills](https://affpapa.org/en/nevibecode/by/reason-machines/mcp-skills.md) — 98 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
