trackmcp
Back to directory
CartographAI

mcp-server-codegraph

View on GitHub

MCP server for graph representation of a codebase

15 stars JavaScriptAI & Machine Learning Updated Oct 3, 2025
agentsllmmodelcontextprotocol

Documentation

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
    • list_file_entities
      • list_entity_relationships

        Usage

        sh
        npx @cartographai/mcp-server-codegraph /path/to/directory

        Claude Desktop

        Add this to your `claude_desktop_config.json`

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

        Frequently asked questions

        What is mcp-server-codegraph?

        mcp-server-codegraph is MCP server for graph representation of a codebase

        How do I install mcp-server-codegraph?

        Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

        Is mcp-server-codegraph open source?

        Yes โ€” it is hosted on GitHub at https://github.com/CartographAI/mcp-server-codegraph and has 15 stars.

        Related MCP tools

        Run your own MCP server? See who uses it and what to fix.

        Measure it with TrackMCP