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)

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", ] } } }
-
security - not tested
A
license - permissive license
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CartographAI/mcp-server-codegraph'

If you have feedback or need assistance with the MCP directory API, please join our Discord server