Overview of Code Graph MCP Server capabilities
stagingThe Code Graph MCP (Model Context Protocol) server provides AI coding agents with two primary types of capabilities for interacting with a codebase:
Structural tools (Deterministic, no LLM required): These tools allow agents to perform precise graph traversals and repository analysis without the overhead or unpredictability of an LLM. Tools include:
get_callers: Find upstream callers of a component.get_callees: Find downstream dependencies/calls.get_dependencies: Query multiple relationship types.impact_analysis: Perform variable-depth traversals to see what breaks if a change is made.find_path: Locate paths between entities.search_code: Perform code searches.index_repo: Build/update the graph index.
Ask tool (GraphRAG-powered, requires LLM): A natural language interface that converts questions into Cypher queries to provide grounded answers about the codebase. It returns the answer, the generated Cypher query (for transparency), and the context nodes used.