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
- Provides a list of all entities within a specified file.
- list_entity_relationships
- List the relationships of a specific entity
- Inputs
path(string): relative path of the filename(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",
]
}
}
}
Code Graph Server
Project Details
- CartographAI/mcp-server-codegraph
- MIT License
- Last Updated: 5/4/2025
Recomended MCP Servers
Omnisend MCP server
An MCP service for Ant Design components query | 一个 Ant Design 组件查询的 MCP 服务,包含组件文档、API 文档、代码示例和更新日志查询
服务器管理仓库
An implementation of Anthropic's Model Context Protocol for the Apache Unomi CDP
A Model Context Protocol (MCP) server that connects to multiple social media platforms
A macOS menu bar application that helps manage MCP (Model Context Protocol) servers for Claude Desktop.
A code reasoning MCP server, a fork of sequential-thinking
A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI's API.
python mcp LINE
This read-only MCP Server allows you to connect to Databricks data from Claude Desktop through CData JDBC Drivers....





