# CodeGraphContext (MCP server)

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

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

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/CodeGraphContext/CodeGraphContext |
| GitHub stars | 4,354 |
| License | MIT |
| Language | Python |
| Transport | stdio |
| Packages | pypi: codegraphcontext |
| Remote URL | none |
| Needs API key | yes |
| Official | no |
| Works with | Claude Desktop, Claude Code, Cursor, VS Code |
| Category | Developer tools |
| Latest release | v0.5.7 (Aug 8, 2026) |
| Last commit | Oct 22, 2026 |

## Install

### Claude Desktop (claude_desktop_config.json)

```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

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

### Cursor (.cursor/mcp.json)

```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)

```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 2026-10-07.

## Environment variables

- `NEO4J_URI`: Shown in the README's example configuration.
- `NEO4J_USERNAME`: Shown in the README's example configuration.
- `NEO4J_PASSWORD` (secret): Shown in the README's example configuration.
- `CGC_OUTPUT_FORMAT`: Shown in the README's example configuration.

## Similar MCP servers

- [Firebase MCP Server](https://appsgit.com/mcp-servers/firebase-mcp-server): Gives AI development tools Firebase-specific capabilities and expertise. (4,482 stars, MIT)
- [NotFair](https://appsgit.com/mcp-servers/notfair): OAuth MCP for Google, Meta, X, LinkedIn, Reddit, TikTok, GSC, GA4, WordPress and GHL. (4,062 stars, MIT)
- [XcodeBuildMCP](https://appsgit.com/mcp-servers/xcodebuildmcp): XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities. (6,508 stars, MIT, official)
- [Sem](https://appsgit.com/mcp-servers/sem): Entity-level code intelligence: semantic diff, impact analysis, blame, and context for AI agents. (3,425 stars, Apache-2.0, official)
- [Unity MCP Server](https://appsgit.com/mcp-servers/unity-mcp-server): Make 3D games in Unity Engine with AI. MCP Server + Plugin for Unity Editor and Unity games. (4,531 stars, Apache-2.0)
- [Cortex](https://appsgit.com/mcp-servers/cortex): Cortex - Generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI, GraphQL, gRPC, OpenRPC, and Markdown. (3,289 stars, MIT)

---

Canonical page: https://appsgit.com/mcp-servers/codegraphcontext
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
