MCP server for graph representation of a codebase
Codegraph MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP server for graph representation of a codebase.
A Model Context Protocol server that provides tools to generate and query a graph representation in your codebase.
Once Codegraph is connected, these are the calls the assistant has available:
index — Indexes the codebase to create a graph of entities and relationshipslist_file_entities — Provides a list of all entities within a specified filelist_entity_relationships — List the relationships of a specific entityInputs — path (string): relative path of the file@cartographai/mcp-server-codegraph on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Codegraph's toolset — index, list_file_entities, list_entity_relationships and 1 more — is a fair guide to whether it matches your workflow. It is maintained by CartographAI; worth a glance at recent repository activity before you build anything load-bearing on it.
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 |
|---|---|
| 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. |
| list_entity_relationships | List the relationships of a specific entity |
| Inputs | path (string): relative path of the file |
{
"mcpServers": {
"server-codegraph": {
"command": "npx",
"args": ["-y", "@cartographai/mcp-server-codegraph"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
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.