
CodeGraph
โ 22from CartographAI
Generates and queries a graph representation of a codebase.
๐ฅ๐ฅ๐ฅ๐ฅโ VerifiedFreeQuick setup
mcp-server-codegraph
A Model Context Protocol server that provides tools to generate and query a graph representation in your codebase.
Features
- ๐ Creates a graph representation of your codebase
- ๐ Identifies entities (functions, classes, imports) and their relationships
- ๐ Tracks relationships like function calls, inheritance, and implementations
- ๐ Supports multiple programming languages (Python, JavaScript, Rust)
Tools
- index
- Indexes the codebase to create a graph of entities and relationships.
- list_file_entities
- Provides a list of all entities within a specified file.
path(string): relative path of the file
- Provides a list of all entities within a specified file.
- list_entity_relationships
- List the relationships of a specific entity
- Inputs
path(string): relative path of the filename(string): name of entity
Copy & paste โ that's it
npx @cartographai/mcp-server-codegraph /path/to/directoryUsage
npx @cartographai/mcp-server-codegraph /path/to/directoryClaude Desktop
Add this to your claude_desktop_config.json
{
"mcpServers": {
"codegraph": {
"command": "npx",
"args": [
"-y",
"@cartographai/mcp-server-codegraph",
"/path/to/directory",
]
}
}
}No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under MITโ you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub โ