codebase-memory-mcp icon

codebase-memory-mcp

by DeusData

communitystdiogithub
13.3kstars|967forks
Works withClaude DesktopCursorVS CodeWindsurf

About

Local MCP server that gives coding agents a persistent codebase knowledge graph for fast structural search and impact analysis.

Features

  • Indexes repositories into a local persistent knowledge graph
  • Supports tree-sitter parsing across 158 languages
  • Provides 14 MCP tools for search, trace, architecture, impact, and graph queries
  • Ships as a single static binary for macOS, Linux, and Windows
  • Runs locally without API keys for code analysis

Use Cases

Claude Code user

Give an AI coding agent fast structural context without loading entire files into the prompt.

Maintainer

Trace call chains, routes, and impact paths across a large repository.

Security reviewer

Inspect architecture and dead-code paths with local graph queries before making changes.

What This Server Can Do

MCP servers expose three types of capabilities to AI clients. Here's what codebase-memory-mcp supports.

Tools

Supported14 tools

Functions your AI client can call to perform actions — like querying a database, creating a file, or calling an API.

How to use: Tools run automatically when your AI client decides they're needed. Ask your AI assistant to perform a task, and it will invoke the right tool.

Resources

Not available

This server does not expose read-only data resources.

Prompts

Not available

This server does not provide pre-built prompt templates.

For the full list of available tools, resources, and prompts, check the README on GitHub.

Available Tools (3)

index_project

Index a repository into the local code knowledge graph.

search_code

Search indexed code symbols and structures.

trace_calls

Trace call chains and impact paths across indexed code.

Frequently Asked Questions