Skip to content
MCP

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_graph

    Search the graph with BFS or DFS; returns relevant nodes and edges as text context.

  • get_node

    Full details for one node, by label or ID.

  • get_neighbors

    All direct neighbors of a node, with edge details.

  • shortest_path

    The shortest path between two concepts in the graph.

  • get_community

    Every node in a community, by community ID.

  • god_nodes

    The most connected nodes: the core abstractions of the codebase.

  • graph_stats

    Summary statistics: node count, edge count, communities, confidence breakdown.

  • list_prs

    Open GitHub PRs with CI status, review state, and graph impact per PR.

  • get_pr_impact

    Detailed graph impact for one PR: files changed, communities affected, nodes touched.

  • triage_prs

    All 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.

terminal · stdio
# 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
terminal · shared HTTP
# 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/mcp

HTTP 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

terminal / .mcp.json
# 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):

.cursor/mcp.json
{  "mcpServers": {    "graphify": {      "command": "python",      "args": ["-m", "graphify.serve", "graphify-out/graph.json"]    }  }}

Codex

Add to ~/.codex/config.toml:

~/.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):

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:

mcp config (http)
{  "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?
A local Model Context Protocol server that exposes your repo's Graphify knowledge graph (graphify-out/graph.json) as 10 native tools, so any MCP client (Claude Code, Cursor, Codex, Gemini CLI, and others) can query code structure directly instead of grepping.
Which tools does it expose?
Exactly 10: query_graph, get_node, get_neighbors, shortest_path, get_community, god_nodes, graph_stats, list_prs, get_pr_impact, and triage_prs. It also serves 6 read-only resources, including the graph report and a confidence audit.
Which transports does it support?
stdio (the default: one local server per developer) and streamable HTTP (one shared process for a team; clients point at http://<host>:8080/mcp). The HTTP transport supports an API key via --api-key or the GRAPHIFY_API_KEY environment variable.
How do I install it?
The server ships in the graphifyy package behind the mcp extra: uv tool install "graphifyy[mcp]". Then run python -m graphify.serve graphify-out/graph.json. Build the graph first by running /graphify . in your assistant.
Does it send my code anywhere?
No. The server reads a local graph.json and runs on your machine (HTTP binds to 127.0.0.1 by default). There is no hosted backend and no telemetry.
Is this the same as the docs MCP server?
No. This page is about the graph server you run over your own repo. Graphify also hosts a separate docs-search MCP server at graphify.com/api/mcp with a single tool, search_graphify_docs, for querying the documentation.
Start in one command

Try it on your own repo.

Get started
92,570 stars on GitHub. Read the code.

Evaluating for a team? See Graphify Enterprise →