Skip to main content
Glama

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)

Related MCP server: NervusDB MCP Server

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",
      ]
    }
  }
}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables querying and analyzing code relationships by building a lightweight graph of TypeScript and Python symbols. Supports symbol lookup, reference tracking, impact analysis from diffs, and code snippet retrieval through natural language.
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables building and querying code knowledge graphs for project analysis, with tools for exploring code relationships, managing workflows, and automating development tasks. Integrates with Git and GitHub for branch management and pull request creation.
      42 npm
      6
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides semantic code search and code insights via a knowledge graph, enabling AI to understand, navigate, and modify complex projects with deep dependency and architecture analysis.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to query and analyze code across multiple repositories through a unified knowledge graph, with tools for symbol search, impact analysis, and graph algorithms.
      54 npm
      MIT