codebase-memory-mcp
Code-structure knowledge-graph over MCP (DeusData/codebase-memory-mcp, MIT, C/C++ static binary, local, zero-deps) — indexes a repo into a queryable graph (functions/classes/calls/imports, inheritance, data-flow, blast-radius/impact, call chains). A potential alternative to the already-adopted FastCode for OS code navigation. CONDITIONAL: A/B against FastCode before adopting — don't run two code-nav MCPs.
- License 许可
- MIT
- 最近更新
- 2026-10-09
- Stars
- ★ 2
- Forks
- 1
01 前言 Front Matter
- name
- codebase-memory-mcp
- license
- MIT
- metadata
- { "type": "code-navigation", "source": "https://github.com/DeusData/codebase-memory-mcp", "status": "CHOSEN code-nav MCP (2026-06-25) — supersedes fastcode-navigation" }
- description
- Code-structure knowledge-graph over MCP (DeusData/codebase-memory-mcp, MIT, C/C++ static binary, local, zero-deps) — indexes a repo into a queryable graph (functions/classes/calls/imports, inheritance, data-flow, blast-radius/impact, call chains). A potential alternative to the already-adopted FastCode for OS code navigation. CONDITIONAL: A/B against FastCode before adopting — don't run two code-nav MCPs.
03 SKILL.md 正文
DECISION (2026-06-25): codebase-memory-mcp is the chosen code-nav MCP; FastCode is demoted to reference. Why it wins for SEOSONA OS: no extra LLM (the harness agent is the intelligence), deterministic sub-ms graph queries, 158 languages (vs FastCode's 9), and 12 explicit edge types incl. impact/blast-radius (
detect_changes), data-flow, HTTP routes, ADRs, and runtime-trace validation. FastCode's edge (a bundled small LLM for NL Q&A) is a downside here — an extra model dep the OS doesn't need.
✅ OPERATIONAL (2026-06-25) — installed + indexed + wired
- Binary:
1_CORE/bin/codebase-memory-mcp/codebase-memory-mcp.exe(v0.8.1, gitignored — 269 MB, re-fetch from the release). Installed WITHOUT the auto-config installer (it would reconfigure 9 agents); wired only SEOSONA. - Indexed:
npm run codegraph:index→ projectD-SEOSONA-AI-SEOSONA-OS, 189,046 nodes / 383,835 edges / 21,783 functions over 12,404 files (~39 s). Re-run after big changes. - Wired:
.mcp.jsonat repo root registers thecodebase-memoryMCP server (stdio). Handshake verified (server 0.10.0, protocol 2024-11-05,toolscapability). Claude Code in this repo mounts it automatically; standalone:npm run mcp:codegraph. - Verified queries:
get_architecture(Python 1631 / TS 255 / HTML 238 files…),search_graph(13,567 Function nodes). Passproject: "D-SEOSONA-AI-SEOSONA-OS"to tools.
codebase-memory-mcp — code graph via MCP (FastCode alternative)
DeusData/codebase-memory-mcp (MIT, ~14k★,
single C/C++ static binary, fully local, SQLite graph at ~/.cache/codebase-memory-mcp/).
Indexes a codebase into a queryable knowledge graph and serves it over MCP: "what calls
this", cross-package call chains, blast-radius / impact analysis, inheritance hierarchies.
Distinct from 3_MEMORY, overlapping FastCode
- vs
3_MEMORY/memory_reflect: NO overlap — that's agent facts/episodes; this is a code call-graph. - vs
fastcode-navigation(already adopted): real overlap — both are code-navigation MCPs. codebase-memory-mcp's edge is graph-traversal depth (impact/blast-radius); FastCode does symbol/definition search + token-efficient retrieval.
Tools (14, all deterministic — no LLM)
index_repository, index_status, list_projects, delete_project; search_graph,
trace_path/trace_call_path (BFS calls, depth 1–5), detect_changes (git diff → affected
symbols + risk), query_graph (Cypher-like), get_graph_schema, get_code_snippet,
get_architecture (langs/packages/routes/hotspots/clusters/ADRs), search_code (grep),
manage_adr (ADR CRUD), ingest_traces (runtime traces → validate HTTP_CALLS edges).
Edge types: CALLS, IMPORTS, DEFINES, IMPLEMENTS, INHERITS, HTTP_CALLS, ASYNC_CALLS, EMITS,
LISTENS_ON, DATA_FLOWS, SIMILAR_TO, SEMANTICALLY_RELATED.
04 同仓库更多 Skills
web_crawler_katana
High-speed web crawling using Katana patterns for deep site mapping, URL discovery, and content extraction.
server_log_analyzer
Analyzes Nginx/Apache server logs to identify Googlebot crawl patterns, errors, and performance bottlenecks.
schema_markup_generator
Auto-generates JSON-LD structured data for any page type (Article, Product, FAQ, LocalBusiness, etc.).
internal_linking_optimizer
Analyzes and optimizes the internal link graph of a website for SEO authority distribution.
google_trends_analyzer
Detects trending topics and seasonal patterns using Google Trends data for content planning and keyword strategy.
brand_context_analyzer
Tracks brand mentions, sentiment, and online reputation across web sources.