Code-Graph-RAG
Code-Graph-RAG is an MCP server that adds search and knowledge tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Knowledge-graph RAG for multi-language codebases: index, query and edit code in natural language. It has 5,355 GitHub stars, is released under the MIT license and runs locally with uvx code-graph-rag.
github.com/vitali87/code-graph-rag (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install Code-Graph-RAG
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"code-graph-rag": {
"command": "uvx",
"args": [
"code-graph-rag"
],
"env": {
"ORCHESTRATOR_API_KEY": "your-value",
"CYPHER_API_KEY": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env ORCHESTRATOR_API_KEY=your-value --env CYPHER_API_KEY=your-value --transport stdio code-graph-rag -- uvx code-graph-ragCursor
{
"mcpServers": {
"code-graph-rag": {
"type": "stdio",
"command": "uvx",
"args": [
"code-graph-rag"
],
"env": {
"ORCHESTRATOR_API_KEY": "your-value",
"CYPHER_API_KEY": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"inputs": [
{
"type": "promptString",
"id": "orchestrator_api_key",
"description": "ORCHESTRATOR_API_KEY",
"password": true
},
{
"type": "promptString",
"id": "cypher_api_key",
"description": "CYPHER_API_KEY",
"password": true
}
],
"servers": {
"code-graph-rag": {
"type": "stdio",
"command": "uvx",
"args": [
"code-graph-rag"
],
"env": {
"ORCHESTRATOR_API_KEY": "${input:orchestrator_api_key}",
"CYPHER_API_KEY": "${input:cypher_api_key}"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
ORCHESTRATOR_PROVIDER | No | LLM provider for the orchestrator agent (openai, anthropic, google, azure, cohere, ollama) |
ORCHESTRATOR_MODEL | No | Model name for the orchestrator agent |
ORCHESTRATOR_API_KEYsecret | No | API key for the orchestrator LLM provider (not needed for the default local ollama provider) |
CYPHER_PROVIDER | No | LLM provider for Cypher query generation (openai, anthropic, google, azure, cohere, ollama) |
CYPHER_MODEL | No | Model name for Cypher query generation |
CYPHER_API_KEYsecret | No | API key for the Cypher LLM provider (not needed for the default local ollama provider) |
MEMGRAPH_HOST | No | Hostname of the Memgraph database |
MEMGRAPH_PORT | No | Port of the Memgraph database |
TARGET_REPO_PATH | No | Path to the repository to analyze (auto-detected from working directory if not set) |
About Code-Graph-RAG
Code-Graph-RAG parses a multi-language codebase with Tree-sitter, sharpened by compiler-grade frontends and runtime traces where available, builds a knowledge graph of its structure in an embedded graph database that needs no server, and lets you query, edit, and optimise that code in plain English. It works across a monorepo of mixed languages under one unified graph schema.
- ai
- ast
- claude-code
- code-analysis
- code-understanding
- codebase-search
- developer-tools
- graph-database
- knowledge-graph
- llm
Similar MCP servers
More ai & search MCP servers
AutoRAG
Marker-Inc-Korea/AutoRAG
Your Personal Librarian Agent. Ask anything on your computer, organize files, remember important info and files.
Active · last commit Nov 14, 2026
AI & searchTypeScriptExa
exa-labs/exa-mcp-server
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Maintained · last commit Nov 3, 2026
OfficialAI & searchTypeScriptSemble
MinishLab/semble
Fast and Accurate Code Search for Agents.
Active · last commit Nov 8, 2026
AI & searchPythonHyperresearch
jordan-gibbs/hyperresearch
Convert Claude Code or Codex into the most intelligent Deep Research Agent.
Active · last commit Nov 12, 2026
AI & searchPythonSui Knowledge Base (kapa.ai)
MystenLabs/sui
Semantic search across Sui documentation and knowledge sources, powered by kapa.ai.
Active · last commit Nov 14, 2026
AI & searchRustSocraticode
giancarloerra/SocratiCode
MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs.
Active · last commit Nov 11, 2026
AI & searchTypeScript
How do I install the Code-Graph-RAG MCP server?
Add the command uvx code-graph-rag to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Code-Graph-RAG free?
The server is open source under the MIT license, so running it is free. It needs credentials (ORCHESTRATOR_API_KEY and CYPHER_API_KEY) for the service it connects to, which may require a paid account.
Is Code-Graph-RAG actively maintained?
The most recent commit was on Nov 16, 2026. The latest release is v0.6.62, published Nov 15, 2026. appsgit only lists MCP servers with a commit in the last six months.