Codegraph MCP Server

MCP server for graph representation of a codebase

Local serverstdioPython

What is the Codegraph MCP Server?

MCP server for graph representation of a codebase

What you get

A Model Context Protocol server that provides tools to generate and query a graph representation in your codebase.

  • 📊 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)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
indexIndexes the codebase to create a graph of entities and relationships.
list_file_entitiesProvides a list of all entities within a specified file.
list_entity_relationshipsList the relationships of a specific entity

How to install the Codegraph MCP Server

{
  "mcpServers": {
    "server-codegraph": {
      "command": "npx",
      "args": ["-y", "@cartographai/mcp-server-codegraph"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • “Use Codegraph to index.”
  • “Use Codegraph to list file entities.”
  • “Use Codegraph to list entity relationships.”

Frequently asked questions

MCP server for graph representation of a codebase Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.