MCP ExplorerExplorer

Mcp Server Codegraph

@CartographAIon a year ago
2 MIT
FreeCommunity
AI Systems
#agents#llm#modelcontextprotocol
MCP server for graph representation of a codebase

Overview

What is Mcp Server Codegraph

mcp-server-codegraph is an MCP server that generates and queries a graph representation of a codebase, enabling better understanding and navigation of code structures.

Use cases

Use cases include visualizing complex codebases, analyzing dependencies between functions and classes, facilitating code reviews, and improving onboarding processes for new developers.

How to use

To use mcp-server-codegraph, run the command npx @cartographai/mcp-server-codegraph /path/to/directory in your terminal. You can also configure it in Claude Desktop by adding the appropriate command to your claude_desktop_config.json file.

Key features

Key features include creating a graph representation of the codebase, identifying entities (functions, classes, imports) and their relationships, tracking relationships like function calls, inheritance, and implementations, and supporting multiple programming languages such as Python, JavaScript, and Rust.

Where to use

mcp-server-codegraph can be used in software development environments, code analysis tools, and educational platforms where understanding code structure and relationships is essential.

Content

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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers