Skip to content
Integrations

Graphify for Pi

The Graphify CLI adds a native Pi guard that checks the graph before Pi searches.

Setup guide · hosted MCP · Graphify CLI

Connect Pi to the hosted MCP server at https://api.graphify.com/mcp, where it can use the code graph, Memory and PR review status. Wiki lives in the Graphify app at app.graphify.com; it is not served over MCP. Sign in with OAuth: no API key, and nothing to build on your machine.

terminal
pi mcp add graphify --url https://api.graphify.com/mcp
pi mcp login graphify
~/.pi/agent/mcp.json
{
  "mcpServers": {
    "graphify": {
      "url": "https://api.graphify.com/mcp"
    }
  }
}

Remote servers that use OAuth need no credentials in the file. If /mcp shows that graphify needs sign in, select Sign in, or run pi mcp login graphify. Pi opens the authorization page.

Prefer local? The open-source Graphify CLI (uv tool install graphifyy) wires it in with graphify pi install: installs the skill in ~/.pi/agent/skills/. Optional: graphify pi guard install adds the native guard (Pi 0.58.4 or newer).

What Graphify adds to Pi

Graphify maps your codebase into a graph of nodes (functions, classes, modules, config, schemas, docs) and typed edges (calls, imports, defines, references). When Pi needs to know how something works, it asks the graph and gets back connected structure (a path it can follow) rather than a pile of text it has to skim. That means fewer tokens per question, answers that survive more than one or two hops, and a real basis for reasoning about change. See why a graph beats similarity search for the longer argument.

Prefer local

Prefer to build the graph on your machine? Wire Pi up with two commands:

  1. uv tool install graphifyy: installs the Apache 2.0-licensed Python package on your machine.
  2. graphify pi install: installs the skill in ~/.pi/agent/skills/. Optional: graphify pi guard install adds the native guard (Pi 0.58.4 or newer).

graphify pi guard install registers a native Pi extension that runs graphify hook-guard before Pi's read, grep, find and search-style bash calls. It needs Pi 0.58.4 or newer. Install Graphify persistently (uv tool install graphifyy or pipx install graphifyy, not uvx), and restart Pi after installing. The same package loads in Oh My Pi: omp plugin install "$(graphify pi guard path)".

For a graph you build locally, you can also install the mcp extra and add graphify-mcp /absolute/path/to/graph.json to a local MCP config. That is separate from the hosted server at https://api.graphify.com/mcp. Details are in the local MCP docs.

What you can ask

Once you are connected, or once a local graph is built, you can ask Piquestions it previously couldn't answer without reading half the repo:

  • "What calls chargeCustomer, and what would break if I change its signature?"
  • "Trace the path from the checkout endpoint to the database table it writes."
  • "Which modules read the STRIPE_KEY config value?"
  • "Explain how the auth subsystem hangs together before I touch it."

The same questions are answerable from the CLI (graphify query, path, explain, prs) or the Python package, so whatever Pi can reach, you can reach by hand too.

Why you can trust the answers

Every edge Graphify hands Pi carries a confidence tag, so the assistant (and you) know how a relationship was established:

  • EXTRACTED: written in the source and parsed straight from the code's AST with tree-sitter. Deterministic; no model guessed it.
  • INFERRED: worked out by Graphify, with or without a model, such as a call matched to a definition no import proves, or a doc linked to the service it describes. Each carries a confidence score, so check it before relying on it.
  • AMBIGUOUS: flagged by the model pass as uncertain. When the parser finds a call it cannot pin to one target, it leaves it out rather than guess.

This is the part a vector store can't offer: a similarity score tells you two chunks look alike, not whether a relationship was found or guessed. The glossary defines the rest of the vocabulary.

On-device by default

Prefer to keep it local? Run the open-source engine and code is parsed with tree-sitter on your machine; reading your source never requires an API call. Non-code files are read by the model you already use, and nothing is sent to Graphify: there is no telemetry and no account. The graph lives on your machine next to the repo it describes, and the engine is free and Apache 2.0-licensed.

Troubleshooting

  • /mcp says graphify needs sign in: Select Sign in, or run pi mcp login graphify. Pi opens the authorization page.
  • The guard stops working after a Python or venv change: The registered path contains the Python version and venv. Re-run graphify pi guard install, then remove the old entry with pi remove <old path>.

Pi FAQ

Does Graphify work with the Pi coding agent?

Yes. Connect Pi to the hosted server with pi mcp add graphify --url https://api.graphify.com/mcp and pi mcp login graphify, or install the open-source Graphify CLI and run graphify pi install.

What does the Pi guard do?

It runs graphify hook-guard before Pi's read, grep, find and search-style bash calls, so Pi checks the graph first. It is the Pi version of the hooks Graphify adds to Claude Code.

Which Pi version do I need?

Pi 0.58.4 or newer for the guard.

Checked against docs.pi.dev/latest/mcp on 2026-11-27.

Other assistants

Graphify also works with OpenClaw, Claude Code, and GitHub Copilot. See the full list on the integrations page.

Try Graphify now.

Try for free