mcp-server-codegraph
by CartographAI·★ 20·Score 37
MCP server that transforms codebases into interactive knowledge graphs with entity tracking and relationship mapping.
Overview
mcp-server-codegraph is a specialized MCP server that analyzes source code to create a graph representation of codebases. It identifies programming entities like functions, classes, and imports, then maps their relationships including function calls, inheritance chains, and implementation dependencies. The server supports multiple programming languages including Python, JavaScript, and Rust, making it versatile for different development environments. This tool bridges the gap between code analysis and AI comprehension by transforming static code into a navigable graph structure.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server when you need to understand complex codebase relationships across multiple languages and want to leverage AI for code analysis and refactoring.
When NOT to choose this
Avoid this if you need real-time code analysis or are working with very large codebases that might exceed the graph's performance limits.
Tools this server exposes
3 tools extracted from the READMEindexIndexes the codebase to create a graph of entities and relationships.
list_file_entitiespath (string): relative path of the fileProvides a list of all entities within a specified file.
list_entity_relationshipspath (string): relative path of the file, name (string): name of entityList the relationships of a specific entity.
Comparable tools
Installation
Install the server using npm:
npx @cartographai/mcp-server-codegraph /path/to/directoryFor Claude Desktop, add to your claude_desktop_config.json:
{
"mcpServers": {
"codegraph": {
"command": "npx",
"args": [
"-y",
"@cartographai/mcp-server-codegraph",
"/path/to/directory"
]
}
}
}FAQ
- What programming languages does this server support?
- Currently supports Python, JavaScript, and Rust with plans to expand to more languages.
- How can I query specific entities in my codebase?
- Use the list_file_entities tool to see all entities in a file, then list_entity_relationships to explore connections between specific entities.
Compare mcp-server-codegraph with
Last updated · Auto-generated from public README + GitHub signals.