Skip to content

kilianpaquier/codebase-memory-mcp

v0.5.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, all of them delegating to codebase-memory-mcp hook-augment (non-blocking).

EventOutputAgent Runtimes
PreToolUse, before grep or globthe graph symbols matching what it searchedClaude Code, Codex, Devin
PostToolUse, after a file readthe parts of that file the graph does not knowClaude Code, Codex, Devin
SessionStartwhether the repo is indexed, and to search the graph before grepClaude Code, Codex, Copilot, Hermes Agent
SubagentStartthe same, for every subagent spawnedClaude Code, Codex, Copilot

Skills

codebase-memory

Activated 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.

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
Claude Code.claude-plugin/plugin.jsonmcp.jsonhooks/claude.json
Codex.claude-plugin/plugin.jsonmcp.jsonhooks/claude.json
Copilot.plugin/plugin.jsonmcp.jsoncom.github.copilot/hooks/hooks.json
Antigravityplugin.jsonmcp_config.json-
Devin.claude-plugin/plugin.jsonmcp.json-
Hermes Agentplugin.yamlmanual, ~/.hermes/config.yaml (not bundled)__init__.py