G
Graphify
graphify.homes
Claude Code setup

How to install Graphify for Claude Code

There are two supported ways to use Graphify in Claude Code. The hosted path connects Claude Code to Graphify's MCP server with OAuth and queries repositories already indexed in your workspace. The local path installs the open-source graphifyy CLI and registers the Claude skill, then builds a graph in the repository on your machine. Choose hosted for a managed graph; choose local for offline or on-machine extraction.

Published Updated

Graphify outputs
graph.html
graph.json
GRAPH_REPORT.md

Graphify stores inspectable artifacts so codebase knowledge can be reviewed by humans and reused by AI coding assistants.

A Claude Code terminal connected through a secure graph instrument to a codebase atlas

Hosted path

MCP + OAuth

Connect Claude Code to the graph Graphify builds and hosts for indexed repositories.

Local path

graphifyy CLI

Install the open-source package and register the Claude skill to build graph artifacts on your machine.

First question

Ask for evidence

Require file and symbol citations, and distinguish extracted relationships from inferred ones.

Which Claude Code setup should you choose?

Choose the hosted MCP path when your repositories are indexed in Graphify and you want no local graph build. Choose the local CLI path when you need the graph to stay on your machine, work offline, or use the open-source workflow. The two paths answer from different graphs, so pick one per question.

  • Hosted: fastest setup, managed indexing, OAuth, no local graph process.
  • Local: graphifyy CLI, repository build, local artifacts, optional MCP.
  • Do not mix answers from hosted and local graphs without labeling the source.

How do you connect the hosted Graphify MCP server?

Run the documented user-scope command in a terminal, then start Claude Code and authenticate through /mcp. The connection uses Streamable HTTP and OAuth; there is no API key to paste.

  • Run the command outside an active Claude Code session.
  • Use user scope when the connection should apply across projects.
  • Complete the browser sign-in when Claude Code asks.
  • Confirm that Graphify appears as an authenticated MCP server.

How do you install the local Graphify skill?

Install the graphifyy package with uv or pipx, run graphify install, then register Claude explicitly with graphify install --platform claude. The installer writes the Claude instructions and hooks it needs and reports the files it changes.

  • Use uv tool install --python 3.12 graphifyy for an isolated tool environment.
  • Run graphify install --platform claude for a user-level registration.
  • Use --project when the registration should be committed with the repository.
  • Review the installer output before committing project files.

How do you build the first local graph?

Open the repository in Claude Code, invoke the Graphify skill, and pass the project path. The documented first build uses /graphify . for the current directory. For a large monorepo, start with a representative subsystem so the first workflow can be verified quickly.

  • Open Claude Code in the repository root or target folder.
  • Use /graphify . and let the build finish.
  • Inspect graphify-out/ for the generated artifacts.
  • Ask a narrow question before expanding to the full repository.

How do you verify that the setup works?

Ask Claude to list the files, symbols, and relationship paths behind one answer. A useful check is an authentication or request-routing question where the expected path can be compared with source. The answer should cite evidence and state uncertainty instead of inventing a connection.

  • Ask for file paths and symbol names.
  • Ask which edges are extracted versus inferred.
  • Open the cited source before accepting the answer.
  • Run a compiler or test when the question affects behavior.

When should Claude use exact search instead of Graphify?

Use exact search for error strings, configuration keys, package versions, and recently edited text. Use Graphify for structure: callers, dependencies, containment, communities, and paths between known symbols. A strong workflow uses both and labels which evidence came from which tool.

  • Search for exact strings with ripgrep or the editor.
  • Use Graphify for relationship traversal.
  • Return to source for the final implementation detail.
  • Do not use semantic similarity as a substitute for exact matching.

How do you keep the local graph current?

Use update mode for controlled refreshes, watch mode for active repositories, or a git hook when freshness should follow commits. The graph is a snapshot; a stale graph can be useful for history but dangerous for a current refactor.

  • Refresh after large file moves or interface changes.
  • Record the commit or build time beside the graph.
  • Re-run registration after upgrading the CLI when instructions change.
  • Do not assume a graph built on another branch matches the current checkout.

What common installation problems should you check?

If the skill is missing, confirm that graphify is on PATH, the registration targeted the intended user or project scope, and the assistant was restarted. If the hosted server appears but is unauthenticated, complete OAuth through /mcp. If tools appear twice, remove the duplicate plugin or manual server entry.

  • Run uv tool update-shell or pipx ensurepath if the command is missing.
  • Re-run graphify install --platform claude after an upgrade.
  • Check /mcp for authentication state on the hosted path.
  • Open a new Claude Code session after changing the registration.

How should a team standardize the workflow?

Document whether Claude should use hosted or local Graphify, which repository is authoritative, how to verify citations, and when the graph must be refreshed. Put those rules in project instructions so every teammate gets the same behavior.

  • Name the graph source and build revision.
  • Require source citations for architecture claims.
  • Define the refresh trigger for structural changes.
  • Keep secrets and generated caches out of graph inputs.

When should Claude Code use a project-scoped Graphify install?

Use project scope when the graph setup belongs to one repository and teammates should inherit the same commands, artifacts, and instructions. Use user scope for personal experiments that should not change the shared project. Project scope is easier to review because the relevant registration and instructions travel with the repository, but it still requires a documented refresh and artifact-storage decision.

  • Choose project scope for repeatable team onboarding on one repository.
  • Choose user scope for temporary evaluation or personal workflows.
  • Confirm which registration file or local configuration changed.
  • Restart Claude Code after changing scope so it reloads the tools.
  • Document whether hosted, local, or both paths are supported.

Which Graphify files should be committed for Claude Code?

Commit human-readable instructions and the artifacts the team intentionally shares, such as a graph report and a project instruction file that points to it. Keep credentials, model caches, temporary extraction output, and machine-specific absolute paths out of Git. If graph.json is large or changes frequently, decide deliberately whether it belongs in the repository or an artifact store referenced by the project.

  • Commit the instructions that tell Claude when and how to use the graph.
  • Commit a report only when the team accepts its refresh cadence.
  • Keep OAuth state, tokens, caches, and local paths out of version control.
  • Check generated file size before adding a full graph to Git.
  • Record the graph revision beside any committed architecture decision.

How should a team test Claude's Graphify answers?

Run a small set of questions with known answers across a shared interface, a central service, and a documentation boundary. Require Claude to name files, symbols, and the graph revision behind each answer, then verify the claims in source and tests. A useful test measures whether the assistant follows the graph workflow and admits uncertainty, not whether it can produce a longer architecture narrative.

  • Use at least one question with a deliberately missing dependency.
  • Require source citations before accepting an architecture claim.
  • Ask the assistant to distinguish extracted and inferred relationships.
  • Compare answers after a branch refresh to test stale evidence behavior.
  • Review false positives with the engineer who owns the affected module.
Working commands

How do the setup commands fit together?

Connect the hosted MCP server

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

Install and register the local skill

Shell
uv tool install --python 3.12 graphifyy
graphify install --platform claude
graphify install --project --platform claude

Build in Claude Code

Claude Code
/graphify .
FAQ

Frequently asked questions

Do I need an API key for the hosted Claude Code connection?

No. The documented hosted server uses Streamable HTTP with OAuth. Complete the browser sign-in from /mcp.

Does the hosted server read my local repository?

The hosted server answers from repositories indexed in your Graphify workspace. Use the local CLI skill when you want a graph built from files on your machine.

What is the local install command?

Install graphifyy, then run graphify install --platform claude. Use --project when the registration should live with the repository.

Why is the Graphify skill missing?

Check PATH, confirm the registration scope, re-run the installer, and open a new assistant session. The CLI troubleshooting guide covers command-not-found cases.

Can hosted and local Graphify be used together?

Yes, but they answer from different graphs. Label which source produced each answer and do not compare results without checking the revision.

Does Graphify replace Claude Code's own memory?

No. Claude Code can keep its own preferences and session notes. Graphify adds shared project structure and, in the hosted product, team memory tied to indexed repositories.

Can Claude Code use local Graphify artifacts without MCP?

Yes. A local skill or direct project instructions can point Claude Code at graph artifacts and teach it how to query the CLI. MCP is useful when the graph is hosted or the team wants a structured tool interface. Without MCP, the project must still tell the assistant where the artifacts live and how to verify their revision.

Where should the Claude Code integration instructions live?

User-scoped preferences belong in the user's assistant configuration, while repository-specific scope, commands, artifact paths, and verification rules belong in the project instructions committed with the code. Do not put credentials or machine-specific paths in either place. Review the registration and instruction files together, because a correct server with the wrong project rules can still produce inconsistent answers.

How do I know the Claude Code connection is actually using Graphify?

Use a question that requires a specific graph relationship and ask Claude to name the tool or artifact it consulted, the repository revision, and the source files behind the answer. Then verify those files in the checkout. A tool appearing in the session is not enough; the response should show graph-derived evidence and disclose when the graph is missing or stale.

Key takeaways

What should you remember?

  • Use hosted MCP for a managed graph and local CLI for on-machine extraction.
  • Register the local Claude integration explicitly with --platform claude.
  • Verify graph answers with source citations and a refresh policy.
Sources

Where can you verify the details?

Related Graphify guides

Continue through the Graphify topic cluster with pages that explain assistant context, architecture review, documentation, and graph-based codebase understanding.

Turn this concept into a real project graph

Start from the use cases page or upload a project ZIP to build a graph that your team can inspect and reuse.