CodeGraph
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CodeGraphfind the function that validates email addresses"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CodeGraph
A code knowledge graph and search system for AI agents. Indexes your codebase into a graph database, embeds symbols and documentation, and exposes search through a Model Context Protocol (MCP) server.
What it does
Search code by meaning — vector embeddings + cross-encoder reranking find the function, class, or interface you describe, even when you don't know the name. Internal benchmark: MRR 0.969, Success@1 94%, Success@5 100%, ~447ms latency on a project of ~2.3K nodes.
Understand structure — tree-sitter parsers extract Functions, Classes, Interfaces, Variables, and Types across 5 first-class languages (TypeScript, Python, Go, Rust, Markdown), with tree-sitter coverage for additional languages via the generic plugin.
Track decisions over time — bitemporal knowledge graph stores facts with
valid_at/invalid_attimestamps, supporting point-in-time queries ("what was true on March 1st?").Plug into AI agents — exposes 4 MCP tool groups (
search,knowledge,codebase,query) for use in Claude Desktop, Cursor, Claude Code, or any MCP client.
Related MCP server: ContextAtlas
Quickstart
git clone https://github.com/Phoenixrr2113/codebase-graph.git
cd codebase-graph
pnpm install
pnpm build
# Option A — embedded database (no Docker required)
brew install redis # macOS — FalkorDBLite needs redis-server
echo "CODEGRAPH_DRIVER=falkordblite" > .env
echo "CODEGRAPH_DB_PATH=.codegraph/falkordb" >> .env
# Option B — FalkorDB via Docker
# pnpm docker:db
# echo "CODEGRAPH_DRIVER=falkordb" > .env
# Index a project
pnpm --filter @codegraph/cli start configure --projects /path/to/your/project
pnpm --filter @codegraph/cli start reindex
# Run the MCP server (stdio transport)
pnpm --filter @codegraph/mcp-server startUse with an MCP client
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"codegraph": {
"command": "node",
"args": ["/absolute/path/to/codebase-graph/packages/mcp-server/dist/index.js"],
"env": {
"VOYAGE_API_KEY": "your-key",
"JINA_API_KEY": "your-key"
}
}
}
}Claude Code
claude mcp add codegraph node /absolute/path/to/codebase-graph/packages/mcp-server/dist/index.jsMCP tools
Four persona-based tool groups by default. Set CODEGRAPH_RAW_TOOLS=1 to expose the underlying handlers individually.
Tool | What it does |
search | Find code/symbols by name or meaning; get context for a file or symbol |
knowledge | Store and recall entities, relationships, and facts (with bitemporal queries) |
codebase | Configure projects, reindex, check status/stats, read source code |
query | Execute read-only Cypher against the graph (power users) |
See CLAUDE.md for the complete tool reference (parameters, examples, workflows).
Architecture
Graph storage: FalkorDB (Docker) or FalkorDBLite (embedded), with HNSW vector indexes per node type.
Embeddings: pluggable — Voyage AI (
voyage-code-3, 1024-dim), OpenRouter, or local nomic-embed via@huggingface/transformers(768-dim, runs on CPU).Reranker: cross-encoder via Jina (
jina-reranker-v2-base-multilingual) or Voyage.Indexer: tree-sitter for AST parsing, SHA-256 file-hash incremental change detection.
MCP server: 4 persona tools by default; raw mode exposes the underlying handlers.
Configuration
Environment variables (set in .env at the repo root):
# Embedding provider (auto-detected from API keys)
CODEGRAPH_EMBEDDING_PROVIDER=voyage # voyage | local | openrouter
VOYAGE_API_KEY=...
# Reranker provider (auto-detected from API keys)
CODEGRAPH_RERANK_PROVIDER=jina # jina | voyage
JINA_API_KEY=...
# LLM (for knowledge extraction + chain-of-thought search)
LLM_PROVIDER=cerebras
CEREBRAS_API_KEY=...
# Graph driver
CODEGRAPH_DRIVER=falkordblite # falkordblite | falkordb
CODEGRAPH_DB_PATH=.codegraph/falkordb # for falkordblitePackages
Package | Description |
Indexer, search pipelines, service layer, git sync | |
Graph DB driver abstraction, knowledge operations, Cypher templates | |
Embeddings, reranker, entity resolution, conversation/document ingestion | |
MCP server with 4 persona tools | |
Express REST API for the dashboard | |
CLI wrapper around the core service | |
TS/JS/JSX tree-sitter plugin | |
Python tree-sitter plugin | |
Go tree-sitter plugin | |
Rust tree-sitter plugin | |
Markdown parser | |
Tree-sitter fallback for additional languages | |
Shared extraction utilities (complexity, AST helpers) | |
Plugin registry coordination | |
Structured logging + tracing decorator | |
Shared TypeScript type definitions |
Plus apps/web (Next.js dashboard with Graph Explorer + Operations tabs at localhost:3000).
Development
pnpm install # Install dependencies
pnpm build # Build all packages
pnpm dev # Start dev mode
pnpm test # Run all tests
pnpm docker:db # Start FalkorDB via DockerStatus
Active development. Public on 2026-04-25. No releases yet — install from source.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceProvides AI coding agents with five intelligence layers (dependency graph, git history, documentation, architectural decisions, code health) via nine MCP tools, enabling deep codebase understanding and reducing exploration cost.Last updated2114,558AGPL 3.0
- Alicense-qualityCmaintenanceEnables AI coding agents to retrieve and manage code context with hybrid search, project memory, and observability via MCP tools.Last updated30MIT
- Alicense-qualityCmaintenanceProvides code intelligence for AI coding agents by indexing repositories into a hybrid knowledge graph, enabling agents to query dependencies, impact, and context through 28 MCP tools.Last updated2Apache 2.0
- Alicense-qualityDmaintenanceEnables AI coding assistants to semantically search and retrieve relevant code patterns, documentation, and implementations from a codebase via MCP tools.Last updated6MIT
Related MCP Connectors
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Your memory, everywhere AI goes. Build knowledge once, access it via MCP anywhere.
Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Phoenixrr2113/codebase-graph'
If you have feedback or need assistance with the MCP directory API, please join our Discord server