Code Graph MCP Server
Repository knowledge graphs enable semantic search and dependency analysis for AI models.
Data last scanned today · Reviewed today
Overview
This MCP server provides an interface to interact with repository knowledge graphs stored within DeepGraph or CodeGPT accounts. By transforming standard GitHub repository structures into graph data, it allows developers to query complex code relationships directly through their AI-assisted development environments.
Our verdict
With a security score of 34/100, this server is currently classified as high-risk. This rating stems from the fact that it is a community-maintained project rather than an official vendor release, coupled with the lack of an editorial review and no documentation regarding its authentication or read-only protocols. Users should exercise caution and review the codebase before integration, as it is not suitable for environments requiring vetted or actively maintained software.
- Supports semantic searching of repository code and documentation
- Provides automated analysis of code functionality dependencies
- Includes only 3 direct dependencies reducing supply-chain surface
- Compatible with multiple MCP hosts including Claude and Cursor
- High-risk security profile due to lack of official maintenance
- Last repository commit occurred over 240 days ago
- Authentication and read-only implementation details remain unreviewed
- Small contributor base of only 2 individuals
Setup
{
"mcpServers": {
"mcp-code-graph": {
"args": [
"-y",
"mcp-code-graph"
],
"command": "npx"
}
}
}Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.
- No read-only mode — running this grants full read/write access.
- No built-in authentication — anyone with access to this config can invoke every tool it exposes.
Tools
| Tool | Description | Risk |
|---|---|---|
| list-graphs | Lists available repository graphs with basic information. | low |
| get-code | Retrieves the complete source code for a specific functionality from the graph. | low |
| find-direct-connections | Explores the direct relationships of a functionality within the code graph. | low |
| nodes-semantic-search | Semantically searches for code functionalities using natural language. | low |
| docs-semantic-search | Semantically searches repository documentation. | low |
| get-usage-dependency-links | Analyzes and lists functionalities affected by changes to a code entity. | low |
| folder-tree-structure | Retrieves the tree structure of a folder in the repository. | low |
Compatibility
| Client | Local | Docker | Remote | Read-only |
|---|---|---|---|---|
| ChatGPT | ||||
| Claude Desktop | ||||
| Cursor | ||||
| VS Code | ||||
| Windsurf |
Frequently asked questions
›Do I need a CodeGPT account to use this server?
A CodeGPT account is only required if you intend to access private code graphs. You can access public graphs from DeepGraph without needing an account.
›What information is needed for private graph access?
To access private graphs, you must provide your CodeGPT API key. Providing an organization ID and a graph ID is optional.
›How do I reference a public repository for use with this server?
You can reference a public repository by using its username/repository-name format. You can also generate a DeepGraph URL by replacing 'github.com' with 'deepgraph.co' in the repository's web address.
›Can I use multiple repositories with a single server configuration?
Yes, you can specify multiple repository identifiers within the arguments list of your MCP configuration file.
›What specific tools does this server provide for code analysis?
The server provides tools for listing graphs, retrieving source code, performing semantic searches for code and documentation, finding direct connections, analyzing usage dependency links, and viewing folder structures.
Changelog
- FixRelease v1.1.1
2025-06-25
- FixRelease v1.1.0
2025-06-25
- NewRelease v1.0.16
2025-06-21
Badge
Maintain this server? Add the live badge to your README.