mcp-server-codegraph

mcp-server-codegraph is a server that generates and queries a graph representation of entities and their relationships in a codebase. It supports multiple programming languages and tracks relationships such as function calls and inheritance. This tool helps visualize and understand the structure of code.

GitHub Stars

9

User Rating

Not Rated

Forks

3

Issues

1

Views

0

Favorites

0

README
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
  • list_entity_relationships
    • List the relationships of a specific entity
    • Inputs
      • path (string): relative path of the file
      • name (string): name of entity
Usage
npx @cartographai/mcp-server-codegraph /path/to/directory
Claude Desktop

Add this to your claude_desktop_config.json

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

6

Followers

9

Repositories

0

Gists

21

Total Contributions

Top Contributors

Threads