Skip to content
Integrations

Give Claude Code a graphof your codebase.

Connect Graphify in Claude Code from the Claude directory, or run the Graphify CLI locally with CLAUDE.md.

Setup guide · Claude directory · CLAUDE.md

Connect Graphify in Claude Code from the Claude directory. The Graphify connector points Claude Code at 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. This page is Claude Code: the CLI, the IDE extensions and the desktop Code tab. For Claude on the web, desktop and mobile, see Graphify for Claude.

If Claude Code is signed in with the same Claude account, open /mcp after you connect in the directory. You can also add the server in a terminal:

terminal
claude mcp add --transport http --scope user graphify https://api.graphify.com/mcp

Adding the server does not sign you in. Open /mcp, select graphify, and choose Authenticate. Prefer local? The open-source Graphify CLI (uv tool install graphifyy) wires it into CLAUDE.md.

Prefer local

The bare graphify install command targets Claude Code: it installs the /graphify skill and registers it in ~/.claude/CLAUDE.md.graphify claude install (or graphify install --project) adds the CLAUDE.md section and the PreToolUse hooks that steer Claude Code toward the graph before it reaches for grep.

  1. Install the CLI. If graphify is not found afterwards, run uv tool update-shell and open a new terminal.
  2. Register with Claude Code: graphify install, then graphify claude install in the repo for the CLAUDE.md section and the hooks. Prefer a repo-local setup your team can commit? graphify install --project writes all of it into the repo, under .claude/ and CLAUDE.md, and prints a git add hint.
  3. Build the graph: type /graphify . in a Claude Code session. It writes graphify-out/ with graph.html (interactive), GRAPH_REPORT.md (highlights, suggested questions), and graph.json (the queryable graph).
  4. Ask something structural and watch it answer from the graph.
terminal
$ uv tool install graphifyy
$ graphify install
$ graphify claude install
in Claude Code
/graphify .

What graphify install writes for Claude Code

~/.claude/CLAUDE.md (section added by graphify install)
# graphify
- **graphify** (`~/.claude/skills/graphify/SKILL.md`) - any input to knowledge graph. Trigger: `/graphify`
When the user types `/graphify`, use the installed graphify skill or instructions before doing anything else.

How Claude Code queries the graph during a session

The skill defines the workflow, and the hooks keep it honest: before Claude Code greps or opens files one by one, the hook-guard reminds it to try graphify query "<question>" (a scoped subgraph), graphify path "<A>" "<B>" (the dependency path between two symbols), or graphify explain "<concept>" (everything connected to a node). Results come back with file:line citations and every edge tagged EXTRACTED (parsed from the AST), INFERRED (resolved by Graphify, with or without a model), or AMBIGUOUS (flagged by the model pass), so the agent knows where each link came from.

Want more than a nudge? graphify install --project --strict blocks the first raw source read of a session and redirects it to the graph, then reverts to the soft nudge. Toggle at runtime with GRAPHIFY_HOOK_STRICT=1 or 0, no reinstall needed.

After Claude Code edits files, graphify update . re-extracts only what changed (AST-only, no API cost), and graphify hook install makes git do that automatically on commit and checkout.

Optional: a local MCP server for a graph on your machine

This is for a graph you build on your machine, not the hosted server above. The skill and CLI need no local MCP at all. If you want that local graph exposed as native tools instead (ten of them: query_graph, shortest_path, god_nodes, graph_stats, the PR-triage set, and more; see the MCP tools reference), add the server to .mcp.json in your project root:

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

The stdio server ships as an extra: uv tool install "graphifyy[mcp]". For several clients sharing one graph, run it once with --transport http instead.

Troubleshooting

  • graphify: command not found: the uv or pipx tool bin dir (~/.local/bin) is not on your PATH yet. Run uv tool update-shell (or pipx ensurepath) and open a new terminal.
  • /graphify does nothing: check that ~/.claude/skills/graphify/SKILL.md exists and that the graphify section is in CLAUDE.md, then start a new Claude Code session so both are picked up.
  • ModuleNotFoundError: No module named 'graphify': usually a plain pip install on Mac or Windows. The skill resolves Python from graphify-out/.graphify_python, which can point at a different environment than pip used. Install with uv or pipx instead; both isolate the package.
  • Hooks stopped firing after an upgrade: hook commands embed the absolute executable path at install time. Re-run graphify claude install, and graphify hook install for the git hooks.
  • PowerShell: type graphify ., not /graphify .; the leading slash parses as a path separator there.

From the blog

Claude Code FAQ

Do I need an API key to connect Claude Code to Graphify?

No. The Claude directory connector and claude mcp add both sign in with OAuth in your browser. There is no key to paste or store.

Does graphify install overwrite my existing CLAUDE.md?

No. The installer replaces or appends only its own graphify section and leaves the rest of the file alone. graphify uninstall removes exactly that section again (and deletes the file only if graphify created it).

Does my code leave my machine when Claude Code uses Graphify?

With the open-source engine, no. Source code is parsed locally across about 40 languages, mostly with tree-sitter; building code edges never requires an API call. Non-code files such as docs and PDFs are read by the model you already use in Claude Code. The engine sends Graphify no telemetry and needs no account. If you use Graphify Cloud instead, it builds the graph from the repositories you connect.

Do I need the MCP server, or is the skill enough?

For the hosted product, yes: connect Graphify from the Claude directory, or run claude mcp add, then sign in from /mcp. The Graphify CLI path does not need a hosted MCP connection. The skill plus the CLI is the complete local setup, and a local MCP server is optional if you want those tools in Claude Code.

Can my whole team get this from the repo?

Yes. graphify install --project writes the skill, the CLAUDE.md registration, and the hook settings under the repo (.claude/skills/graphify/SKILL.md and .claude/settings.json) and prints a git add hint. Teammates only need the graphifyy CLI installed.

How does the graph stay current while Claude Code edits code?

Run graphify update . to re-extract only changed files (AST-only, no API cost). graphify hook install adds post-commit and post-checkout git hooks that do this automatically; re-run it after upgrading graphify so the embedded interpreter path stays fresh.

How do I remove it?

graphify claude uninstall removes the Claude Code pieces; graphify uninstall removes every platform at once. Add --purge to also delete the graphify-out/ directory.

Next steps

The quickstart covers the full CLI, and the MCP tools reference documents every tool the server exposes. Using Cursor as well? The same graph plugs into it through one always-on rule: see Graphify + Cursor, or browse all 20+ assistants on the integrations page. Choosing what else to install? See the best Claude Code plugins, picked by job. For a wider look at MCP servers in this assistant, see the best MCP servers for Claude Code.

Try Graphify now.

Try for free