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 "Install 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)
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
Claude Desktop
Add this to your claude_desktop_config.json