Your code graph, as native tools.
The Graphify MCP server exposes your repo's knowledge graph over the Model Context Protocol: 10 tools, stdio or streamable HTTP, runs entirely on your machine.
Once /graphify . has mapped your repo into graphify-out/graph.json, the MCP server makes that graph a first-class tool surface. Instead of shelling out to the CLI, your assistant calls query_graph or shortest_path natively and gets structured answers with confidence-tagged edges. Any MCP client works; nothing leaves your machine.
The 10 tools
Seven graph tools and three PR tools. Every tool also accepts an optional project_path for multi-project setups. Parameters for each are in the MCP tools reference.
query_graphSearch the graph with BFS or DFS; returns relevant nodes and edges as text context.
get_nodeFull details for one node, by label or ID.
get_neighborsAll direct neighbors of a node, with edge details.
shortest_pathThe shortest path between two concepts in the graph.
get_communityEvery node in a community, by community ID.
god_nodesThe most connected nodes: the core abstractions of the codebase.
graph_statsSummary statistics: node count, edge count, communities, confidence breakdown.
list_prsOpen GitHub PRs with CI status, review state, and graph impact per PR.
get_pr_impactDetailed graph impact for one PR: files changed, communities affected, nodes touched.
triage_prsAll actionable open PRs with impact data, for review priority and merge order.
The server also exposes 6 read-only resources: the full graph report, graph stats, god nodes, surprising cross-community connections, a confidence audit, and suggested questions for the codebase.
Run the server
The server ships in the graphifyy package behind the mcp extra. Two transports: stdio (default) for a per-developer local server, and streamable HTTP for one shared process a whole team points at.
# install with the mcp extra, then serve the graph:$ uv tool install "graphifyy[mcp]"$ python -m graphify.serve graphify-out/graph.json # stdio is the default transport: one local server per developer# one shared process for the whole team (streamable HTTP):$ python -m graphify.serve graphify-out/graph.json --transport http --port 8080 # expose beyond localhost: bind 0.0.0.0 AND set a key$ python -m graphify.serve graphify-out/graph.json --transport http --host 0.0.0.0 --api-key "$SECRET" # clients point at: http://<host>:8080/mcpHTTP flags: --host (default 127.0.0.1, loopback only), --port (8080), --path (/mcp), --api-key (or GRAPHIFY_API_KEY) for bearer-token auth, plus --stateless and --json-response for load-balanced or CI deployments.
Connect your assistant
All stdio configs are the same shape: run python -m graphify.serve with the path to your graph.json. Pick your client:
Claude Code
# one-liner:$ claude mcp add graphify -- python -m graphify.serve graphify-out/graph.json # or declaratively, in .mcp.json at the project root:{ "mcpServers": { "graphify": { "command": "python", "args": ["-m", "graphify.serve", "graphify-out/graph.json"] } }}Cursor
Add to .cursor/mcp.json in the project (or ~/.cursor/mcp.json globally):
{ "mcpServers": { "graphify": { "command": "python", "args": ["-m", "graphify.serve", "graphify-out/graph.json"] } }}Codex
Add to ~/.codex/config.toml:
[mcp_servers.graphify]command = "python"args = ["-m", "graphify.serve", "graphify-out/graph.json"]Gemini CLI
Add to ~/.gemini/settings.json (or the project's .gemini/settings.json):
{ "mcpServers": { "graphify": { "command": "python", "args": ["-m", "graphify.serve", "graphify-out/graph.json"] } }}Any client, over HTTP
Running the shared HTTP server? Point any MCP client at the URL instead of a command:
{ "mcpServers": { "graphify": { "url": "http://localhost:8080/mcp" } }}Related pages
The MCP tools referencedocuments every tool's parameters and the server flags in full. Separately, Graphify hosts a docs-search MCP server (one tool, search_graphify_docs) so your agent can search this documentation in-editor; that one is hosted and needs nothing installed. New to Graphify entirely? Start with what is Graphify or the tutorial.
Common questions
What is the Graphify MCP server?
Which tools does it expose?
Which transports does it support?
How do I install it?
Does it send my code anywhere?
Is this the same as the docs MCP server?
Try it on your own repo.
92,570 stars on GitHub. Read the code.Evaluating for a team? See Graphify Enterprise →