Skip to content

kilianpaquier/codebase-memory-mcp

v0.12.0MIT

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph.

codebase-memory-mcp

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph.

MCP server

This plugin registers the codebase-memory-mcp server with direct binary call codebase-memory-mcp.

It indexes a repository into a code graph and exposes tools to search symbols, trace callers and callees, read exact snippets and query the architecture.

Hooks

Hooks route the agent through the graph (non-blocking). Lifecycle events delegate reminder and index state to codebase-memory-mcp hook-augment while searches (tool events) only provide a simple reminder to use the CLI or MCP to search the codebase.

EventOutputAgent Runtimes
PreToolUse, before grep or globa reminder to use the codebase-memory skill, or the CLIClaude Code, Codex
PostToolUse, after grep or globthe same, where PreToolUse carries no context backCopilot, Cursor
SessionStartwhether the repo is indexed, and to search the graph before grepClaude Code, Codex, Copilot, Cursor
SubagentStartthe same, for every subagent spawnedClaude Code, Codex, Copilot

Skills

SkillDescription
codebase-memoryActivated to answer structural code questions through the knowledge graph: which tool answers which question, the graph's edge types, Cypher query examples and common pitfalls. The same tools run as one-shot commands (codebase-memory-mcp cli <tool>) when the MCP server is unavailable or blocked, so no separate CLI skill is needed.

Installation

[!warning] The codebase-memory-mcp binary is needed in PATH environment variable to work, see the installation methods.

Native plugin (recommended):

my-agent plugin install codebase-memory-mcp@one-for-all

APM package:

apm install kilianpaquier/ai-integration/plugins/codebase-memory-mcp -g

APM plugin:

apm marketplace add kilianpaquier/ai-integration
apm install codebase-memory-mcp@one-for-all -g

Compatibility table

Agent RuntimeManifestMCP configurationHook configuration
APMapm.ymlapm.yml.apm/hooks/hooks.json
Antigravityplugin.jsonmcp_config.json-
Claude Code.claude-plugin/plugin.jsonmcp.jsonhooks/claude.json
Codex.claude-plugin/plugin.jsonmcp.jsonhooks/claude.json
Copilotplugin.jsonmcp.jsoncom.github.copilot/hooks/hooks.json
Cursor.cursor-plugin/plugin.jsonmcp.jsonhooks/cursor.json
Devin.claude-plugin/plugin.jsonmcp.json-