MCP Catalogs
Home

mcp-server-codegraph

by CartographAI·20·Score 37

MCP server that transforms codebases into interactive knowledge graphs with entity tracking and relationship mapping.

developer-toolsknowledge-graphai-llm
7
Forks
2
Open issues
8 mo ago
Last commit
2d ago
Indexed

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:

you:Codebase exploration and understanding in large projects
you:Dependency analysis for refactoring and modernization
you:Documentation generation based on code structure
you:What programming languages does this server support?
you:How can I query specific entities in my codebase?

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 README
  • index

    Indexes the codebase to create a graph of entities and relationships.

  • list_file_entitiespath (string): relative path of the file

    Provides a list of all entities within a specified file.

  • list_entity_relationshipspath (string): relative path of the file, name (string): name of entity

    List the relationships of a specific entity.

Comparable tools

mcp-server-codebasemcp-server-tree-sittersemantic-mcp

Installation

Install the server using npm:

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

For 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.