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.
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.
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>"}}}}