Analyze and visualize code graphs using CodeGPT.
Analyze and visualize code graphs using CodeGPT. The mcp code graph mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 8 defined tools rather than through you.
This MCP allows you to interact with knowledge graphs available in your CodeGPT account or with public graphs from DeepGraph.
Everything the assistant can do here goes through one of these:
list-graphs — Lists available repository graphs with basic informationget-code — Retrieves the complete source code for a specific functionality from the graphfind-direct-connections — Explores the direct relationships of a functionality within the code graphnodes-semantic-search — Semantically searches for code functionalities using natural languagedocs-semantic-search — Semantically searches repository documentationget-usage-dependency-links — Analyzes and lists functionalities affected by changes to a code entityfolder-tree-structure — Retrieves the tree structure of a folder in the repositorySetup — Commit to your project's git: bash git add .claude/commands/ git commit -m "Add custom Claude Code commands for Deep Graph MCP"You will need 3 environment variables: CODEGPT_API_KEY, CODEGPT_ORG_ID, CODEGPT_GRAPH_ID. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Installation goes through your MCP client rather than a global install: point it at Add on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MCP Code Graph's toolset — list-graphs, get-code, find-direct-connections and 5 more — is a fair guide to whether it matches your workflow.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| list-graphs | Lists available repository graphs with basic information. |
| get-code | Retrieves the complete source code for a specific functionality from the graph. |
| find-direct-connections | Explores the direct relationships of a functionality within the code graph. |
| nodes-semantic-search | Semantically searches for code functionalities using natural language. |
| docs-semantic-search | Semantically searches repository documentation. |
| get-usage-dependency-links | Analyzes and lists functionalities affected by changes to a code entity. |
| folder-tree-structure | Retrieves the tree structure of a folder in the repository. |
| Setup | Commit to your project's git: bash git add .claude/commands/ git commit -m "Add custom Claude Code commands for Deep Graph MCP" |
{
"mcpServers": {
"Deep Graph MCP": {
"command": "npx",
"args": ["-y" , "mcp-code-graph@latest",
"username/repository-name", // DeepGraph repository URL
"username2/repository-name2" // Add more repositories if needed
]
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| CODEGPT_API_KEY | Credential the server authenticates with. | Yes |
| CODEGPT_ORG_ID | Configuration value read at startup. | Optional |
| CODEGPT_GRAPH_ID | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.