Best for
- Development teams analyzing multilingual codebases
- Users adopting Memgraph and knowledge graphs for code retrieval
- Claude Code users who need to query or edit a repository
The supplied materials describe an MIT-licensed open-source stdio MCP server for natural-language querying, retrieval, and editing of multilingual codebases through a Memgraph knowledge graph. No concrete MCP tool identifiers are supplied, so the tool list remains empty.
Strongest · Documentation 13/20 Weakest · Reliability 7/20
Test out of dateListed 2026-07-29
Read the FMRS scoring method →Runtime:Python · Docker
ORCHESTRATOR_API_KEY
Required API key for the orchestrator LLM provider; obtain it from the chosen provider.
CYPHER_API_KEY
Required API key for the Cypher LLM provider; obtain it from the chosen provider.
ORCHESTRATOR_PROVIDER
LLM provider for the orchestrator agent (openai, anthropic, google, azure, cohere, ollama); defaults to anthropic.
ORCHESTRATOR_MODEL
Model name for the orchestrator agent; defaults to claude-sonnet-4-20250514.
CYPHER_PROVIDER
LLM provider for Cypher query generation; defaults to anthropic.
CYPHER_MODEL
Model name for Cypher query generation; defaults to claude-sonnet-4-20250514.
MEMGRAPH_HOST
Hostname of the Memgraph database; defaults to localhost.
MEMGRAPH_PORT
Port of the Memgraph database; defaults to 7687.
TARGET_REPO_PATH
Path to the repository to analyze; auto-detected from the working directory if not set.
Run the PyPI package code-graph-rag with uvx and the mcp-server argument. Configure the required ORCHESTRATOR_API_KEY and CYPHER_API_KEY, and make Memgraph available; optionally set the target repository path. The server uses stdio transport.
{"mcpServers":{"code-graph-rag":{"command":"uvx","args":["code-graph-rag","mcp-server"],"env":{"ORCHESTRATOR_PROVIDER":"anthropic","ORCHESTRATOR_MODEL":"claude-sonnet-4-20250514","ORCHESTRATOR_API_KEY":"<required>","CYPHER_PROVIDER":"anthropic","CYPHER_MODEL":"claude-sonnet-4-20250514","CYPHER_API_KEY":"<required>","MEMGRAPH_HOST":"localhost","MEMGRAPH_PORT":"7687","TARGET_REPO_PATH":"<optional-repository-path>"}}}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"code-graph-rag": {
"command": "uvx",
"args": [
"code-graph-rag",
"mcp-server"
],
"env": {
"ORCHESTRATOR_PROVIDER": "anthropic",
"ORCHESTRATOR_MODEL": "claude-sonnet-4-20250514",
"ORCHESTRATOR_API_KEY": "<required>",
"CYPHER_PROVIDER": "anthropic",
"CYPHER_MODEL": "claude-sonnet-4-20250514",
"CYPHER_API_KEY": "<required>",
"MEMGRAPH_HOST": "localhost",
"MEMGRAPH_PORT": "7687",
"TARGET_REPO_PATH": "<optional-repository-path>"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add code-graph-rag -e ORCHESTRATOR_PROVIDER=anthropic -e ORCHESTRATOR_MODEL=claude-sonnet-4-20250514 -e 'ORCHESTRATOR_API_KEY=<required>' -e CYPHER_PROVIDER=anthropic -e CYPHER_MODEL=claude-sonnet-4-20250514 -e 'CYPHER_API_KEY=<required>' -e MEMGRAPH_HOST=localhost -e MEMGRAPH_PORT=7687 -e 'TARGET_REPO_PATH=<optional-repository-path>' -- uvx code-graph-rag mcp-server
Run it in a terminal; replace any <…> placeholders with your own values first.
Start the packaged Memgraph stack with cgr daemon up, parse a repository with cgr start --repo-path, then confirm the code-graph-rag MCP server connects in your client and that a natural-language question about the codebase returns an answer grounded in the graph.
Once connected, you can ask your AI assistant things like:
Listed from the project's documentation, not tested by this site.
Code-Graph-RAG uses Tree-sitter to parse multilingual codebases, stores functions, classes, methods, modules, and relationships in a Memgraph knowledge graph, and supports natural-language code querying, retrieval, editing, and optimization. It provides one graph schema for mixed-language monorepos.
Upstash's official server providing up-to-date third-party library docs for AI coding assistants
AI-powered NPM package analysis MCP server
An independent control layer that gives AI coding agents budgets, brakes, and receipts
GitHub's official MCP server for managing repos, issues, PRs, and workflows via natural language
Source revision 842080fe4094 Data synced 2026-10-19 Read the FMRS scoring method