Skip to content
appsgit

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

claude_desktop_config.json
{
  "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-rag

Cursor

.cursor/mcp.json
{
  "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

.vscode/mcp.json
{
  "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.

NameRequiredDescription
ORCHESTRATOR_PROVIDERNoLLM provider for the orchestrator agent (openai, anthropic, google, azure, cohere, ollama)
ORCHESTRATOR_MODELNoModel name for the orchestrator agent
ORCHESTRATOR_API_KEYsecretNoAPI key for the orchestrator LLM provider (not needed for the default local ollama provider)
CYPHER_PROVIDERNoLLM provider for Cypher query generation (openai, anthropic, google, azure, cohere, ollama)
CYPHER_MODELNoModel name for Cypher query generation
CYPHER_API_KEYsecretNoAPI key for the Cypher LLM provider (not needed for the default local ollama provider)
MEMGRAPH_HOSTNoHostname of the Memgraph database
MEMGRAPH_PORTNoPort of the Memgraph database
TARGET_REPO_PATHNoPath 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

FAQ

Code-Graph-RAG FAQ

Still curious? Email info@appsgit.com.

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.