mcp-server-codegraph

mcp-server-codegraph

3.4

If you are the rightful owner of mcp-server-codegraph and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

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

The Model Context Protocol (MCP) server, known as mcp-server-codegraph, is a powerful tool designed to create a comprehensive graph representation of a codebase. It is capable of identifying various entities such as functions, classes, and imports, and mapping out their relationships. This server is particularly useful for developers who need to understand the structure and interconnections within their code, as it tracks relationships like function calls, inheritance, and implementations. Supporting multiple programming languages including Python, JavaScript, and Rust, mcp-server-codegraph offers a versatile solution for code analysis. By indexing the codebase, it provides a detailed graph that can be queried to gain insights into the code's architecture. This tool is essential for maintaining and refactoring large codebases, as it helps in visualizing dependencies and potential areas for optimization.

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

  1. index

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

  2. list_file_entities

    Provides a list of all entities within a specified file.

  3. list_entity_relationships

    List the relationships of a specific entity.