CodeGraph
Generates and queries a graph representation of a codebase.
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",
]
}
}
}
Related Servers
Hippycampus
Turns any Swagger/OpenAPI REST endpoint with a yaml/json definition into an MCP Server with Langchain/Langflow integration automatically.
MCP Rust CLI server template
A Rust template for creating MCP CLI servers, with support for JSON-based prompts, resources, and tools.
Script Generator Server
A simple note storage system with tools for adding notes and generating scripts from them.
Deepseek Thinking & Claude 3.5 Sonnet
Combines DeepSeek's reasoning capabilities with Claude 3.5 Sonnet's response generation through OpenRouter.
Remote MCP Server (Authless)
An example of a remote MCP server deployable on Cloudflare Workers, without authentication.
Prefect
Interact with the Prefect API for workflow orchestration and management.
Cargo MCP Server
Tools for managing Rust projects using the cargo command-line tool.
Juniper Junos MCP Server
An MCP server for interacting with Juniper Junos network devices using LLMs.
Python REPL
A Python REPL with persistent sessions and automatic dependency management using uv.
Sui MCP Tools
A toolkit for interacting with the Sui blockchain and integrating MCP SDK features, with support for multiple network environments.