Skip to content
appsgit

CodeGraphContext

CodeGraphContext is an MCP server that turns code repositories into a queryable graph for AI agents. 🌐 Languages: - 🇬🇧 English - 🇨🇳 中文 - 🇰🇷 한국어 - 🇺🇦 Українська - 🇷🇺 Русский - 🇯🇵 日本語 - 🇮🇳 தமிழ் - 🇪🇸… It has 4,354 GitHub stars, is released under the MIT license and runs locally with uvx codegraphcontext.

github.com/CodeGraphContext/CodeGraphContext (opens in a new tab)

Data as of from the GitHub API; description from the project's repository. Report an error

Install CodeGraphContext

Generated from the server's published package. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "codegraphcontext": {
      "command": "uvx",
      "args": [
        "codegraphcontext"
      ],
      "env": {
        "NEO4J_PASSWORD": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env NEO4J_PASSWORD=your-value --transport stdio codegraphcontext -- uvx codegraphcontext

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "codegraphcontext": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codegraphcontext"
      ],
      "env": {
        "NEO4J_PASSWORD": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "neo4j_password",
      "description": "NEO4J_PASSWORD",
      "password": true
    }
  ],
  "servers": {
    "codegraphcontext": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codegraphcontext"
      ],
      "env": {
        "NEO4J_PASSWORD": "${input:neo4j_password}"
      }
    }
  }
}

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
NEO4J_URINoShown in the README's example configuration.
NEO4J_USERNAMENoShown in the README's example configuration.
NEO4J_PASSWORDsecretNoShown in the README's example configuration.
CGC_OUTPUT_FORMATNoShown in the README's example configuration.

About CodeGraphContext

Turn code repositories into a queryable graph for AI agents. 🌐 Languages: - 🇬🇧 English - 🇨🇳 中文 - 🇰🇷 한국어 - 🇺🇦 Українська - 🇷🇺 Русский - 🇯🇵 日本語 - 🇮🇳 தமிழ் - 🇪🇸 Español (Soon)

  • hacktoberfest2025
  • social-winter-of-code
  • codegraph
  • codegraphcontext

FAQ

CodeGraphContext FAQ

Still curious? Email info@appsgit.com.

How do I install the CodeGraphContext MCP server?

Add the command uvx codegraphcontext 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 CodeGraphContext free?

The server is open source under the MIT license, so running it is free. It needs credentials (NEO4J_PASSWORD) for the service it connects to, which may require a paid account.

Is CodeGraphContext actively maintained?

The most recent commit was on Oct 22, 2026. The latest release is v0.5.7, published Aug 8, 2026. appsgit only lists MCP servers with a commit in the last six months.