# CodeGraph by codegraph-ai

CodeGraph builds a semantic graph of source code and exposes structural code context to AI assistants through MCP tools.

Canonical URL: https://a2a-mcp.org/entry/codegraph

Language: en

Category: MCP Servers

Updated: 2026-09-14

## About

CodeGraph builds a semantic graph of source code and exposes structural code context to AI assistants through MCP tools.

## Key Features

- Explore functions, classes, imports and call relationships.
- Use repository context and persistent memory in coding workflows.

## Use Cases

Provide repository context for code review, impact analysis or implementation planning.

## Limitations

This listing identifies codegraph-ai/CodeGraph explicitly because several unrelated projects use the CodeGraph name.

## Sources

- Project documentation: https://github.com/codegraph-ai/CodeGraph

## MCP Setup

### Prerequisites

- Rust stable for building the server.
- Node.js 18+ and VS Code 1.90+ only for building/using the optional VS Code extension.

### Client setup

#### Claude Desktop

Transport: `stdio`

```json
{
  "mcpServers": {
    "codegraph": {
      "command": "/path/to/codegraph-server",
      "args": [
        "--mcp"
      ]
    }
  }
}
```

- Clone https://github.com/codegraph-ai/CodeGraph.git
- Build the server from the repository: cargo build --release -p codegraph-server
- Replace the executable path. The server indexes its current working directory.

Setup docs: https://github.com/codegraph-ai/CodeGraph

## Tags

- MCP
- code-intelligence
- knowledge-graph

## Also known as

- CodeGraph by codegraph-ai

## Alternatives

- CodeGraphContext
- Srclight

## Sources

- [Project website](https://github.com/codegraph-ai/CodeGraph)
- [Project documentation](https://github.com/codegraph-ai/CodeGraph)

Last checked: 2026-09-14
