mcp-server-codegraph
Enables indexing and querying of JavaScript codebases to identify entities such as functions and classes and map their relationships.
Enables indexing and querying of Python codebases to identify entities such as functions and classes and map their relationships.
Enables indexing and querying of Rust codebases to identify entities such as functions and classes and map their relationships.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-codegraphFind all functions that call handle_request in server.py"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 filename(string): name of entity
Usage
npx @cartographai/mcp-server-codegraph /path/to/directoryClaude Desktop
Add this to your claude_desktop_config.json
{
"mcpServers": {
"codegraph": {
"command": "npx",
"args": [
"-y",
"@cartographai/mcp-server-codegraph",
"/path/to/directory",
]
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Codebase graphs, caller impact analysis, and recorded project context for AI coding agents.
Ask a codebase what calls what: search, blast radius, paths between symbols, and diffs.
AI-powered codebase analysis — call graphs, security, dead code, complexity. 150+ tools.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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.-

NervusDB MCP Serverofficial
FlicenseNot gradedqualityNot gradedmaintenanceEnables 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.426-- AlicenseNot gradedqualityCmaintenanceA graph-powered code intelligence engine that indexes codebases into a structural knowledge graph to provide AI agents with deep context on function calls, types, and execution flows. It offers local, zero-dependency tools for hybrid search, impact analysis, and dead code detection across Python, JavaScript, and TypeScript projects.811MIT
- AlicenseNot gradedqualityCmaintenanceProvides 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