> Graphify: shared context of codebase for agents and developers. Canonical: https://graphify.com/integrations/cursor · Full index: https://graphify.com/llms-full.txt

Integrations

# Set up a knowledge graph for Cursor.

Connect Cursor to Graphify at api.graphify.com/mcp, or run the Graphify CLI locally with a Cursor rule.

Setup guide · hosted MCP · Cursor rule

Add the [Graphify plugin for Cursor](https://cursor.com/marketplace/graphify) from the Cursor marketplace, or type /add-plugin graphify in Cursor. You can also add https://api.graphify.com/mcp to your MCP settings. Graphify connects Cursor to the [code graph](https://graphify.com/concepts), Memory and PR review status. Sign in with OAuth: no API key, and nothing to build on your machine. The Wiki lives in the Graphify app and is not served over MCP. Start free at [app.graphify.com](https://app.graphify.com).

The plugin adds the Graphify MCP server and a Graphify rule. To add only the MCP server, use [Add MCP to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=graphify&config=eyJ1cmwiOiJodHRwczovL2FwaS5ncmFwaGlmeS5jb20vbWNwIn0=) (needs the Cursor desktop app), then confirm the graphify server. Cursor shows Needs login next to graphify until you finish the one time sign in in your browser. To add it by hand, put this in ~/.cursor/mcp.json for every project, or in .cursor/mcp.json at the repository root:

~/.cursor/mcp.json

```
{
  "mcpServers": {
    "graphify": {
      "url": "https://api.graphify.com/mcp"
    }
  }
}
```

Prefer local? The open-source Graphify CLI (uv tool install --python 3.12 graphifyy) writes a Cursor rule so the agent queries a graph on your machine. (Comparing the two approaches side by side? See [Graphify vs Cursor](https://graphify.com/vs/cursor).)

## Prefer local

Graphify can also build a local graph in graphify-out/ and wire Cursor to it with a single always on rule, so the agent queries that graph before it greps.

1. Install the CLI. If graphify is not found in Cursor's terminal afterwards, run uv tool update-shell and restart Cursor.
2. From the project root: graphify cursor install.
3. Build the graph with /graphify . if you have not already; the install reminds you to. It produces graphify-out/graph.json plus the interactive graph.html and GRAPH_REPORT.md.
4. Ask Cursor a structural question and watch the agent query the graph first.

terminal

```
$ uv tool install --python 3.12 graphifyy
$ graphify cursor install
```

## The rule Graphify writes into Cursor

graphify cursor install creates exactly one file: .cursor/rules/graphify.mdc, with alwaysApply: true in its frontmatter, so Cursor includes it in every conversation. No hooks and no background process; Cursor does not expose PreToolUse-style hooks, so an always-on rule is the native mechanism (this is also why Cursor's setup differs from [Claude Code's](https://graphify.com/integrations/claude-code)).

.cursor/rules/graphify.mdc (excerpt)

```
---
description: graphify knowledge graph context
alwaysApply: true
---

This project has a graphify knowledge graph at graphify-out/.

**MANDATORY: Before using Read, Grep, Glob, or Bash to explore the
codebase, you MUST run graphify first:**
```

## What a query looks like inside Cursor

Say you ask how the request handler reaches ModelField in a FastAPI-sized codebase. Instead of opening files, the agent runs a path query in the terminal and gets the route hop by hop:

Cursor agent terminal

```
$ graphify path "FastAPI" "ModelField"
Shortest path (3 hops):
  FastAPI --uses--> DefaultPlaceholder <--references-- get_request_handler() --references--> ModelField
```

For broad questions, graphify query returns a scoped subgraph under a token budget; for one symbol's full neighborhood, graphify explain lists every edge. Results carry file:line citations, and each edge is 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. The full command set is in the [CLI reference](https://docs.graphify.com/reference/overview).

## Optional: a local MCP server in .cursor/mcp.json

This is for a graph you build on your machine, not the hosted server above. The rule plus the CLI is the complete local setup. If you would rather expose that local graph to Cursor as native MCP tools, register the server in your project's .cursor/mcp.json (or ~/.cursor/mcp.json globally):

.cursor/mcp.json

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

That serves ten tools over the graph (query_graph, shortest_path, god_nodes, graph_stats, the PR-triage set, and more), documented in the [MCP tools reference](https://docs.graphify.com/reference/mcp-tools). The stdio server ships as an extra: uv tool install --python 3.12 "graphifyy[mcp]".

## Keeping the graph current

After edits, graphify update . re-extracts only the files that changed (AST-only, no API cost); the rule tells Cursor's agent to run it itself after modifying code. For hands-off freshness, graphify hook install adds post-commit and post-checkout git hooks that refresh the graph as you work.

## Troubleshooting

- The agent ignores the graph: confirm .cursor/rules/graphify.mdc exists and its frontmatter says alwaysApply: true, then start a new conversation so the rule is loaded.
- The agent runs graphify but gets command not found: Cursor's terminal does not have the uv or pipx bin dir on PATH. Run uv tool update-shell (or pipx ensurepath) and restart Cursor.
- ModuleNotFoundError: No module named 'graphify': usually a plain pip install on Mac or Windows pointing at a different Python than the one recorded in graphify-out/.graphify_python. Install with uv or pipx instead.
- The agent still greps: that is by design when graphify-out/graph.json does not exist yet. The rule permits raw reads in that case, so build the graph first.

## From the blog

- [Graphify is now an official Cursor Plugin](https://graphify.com/blog/graphify-cursor-plugin): The Graphify Cursor plugin is in the Cursor Marketplace. Install it and ask Cursor who calls a function and what a change reaches, with the source cited.
- [AI code review tool: pick by what it can see past the diff](https://graphify.com/blog/ai-code-review-tools): Compare each AI code review tool by what it reviews against, where it runs, and how you set it up, including Graphify PR reviews.
- [What is the Graphify skill, and how do you use it?](https://graphify.com/blog/graphify-skill): The Graphify skill lets your coding agent build and query a local knowledge graph, and this guide shows how to install and use it.

## Cursor FAQ

### Do I need an API key to connect Cursor to Graphify?

No. Cursor signs in with OAuth in your browser the first time it connects. There is no key to paste or store.

### Does Graphify replace Cursor's built-in codebase indexing?

No. Cursor's own retrieval keeps working exactly as before. Graphify adds something different: a typed graph of functions, classes, modules, and their call, import, and reference edges, parsed locally with tree-sitter, that the agent queries explicitly. Similarity search tells the agent what looks relevant; the graph tells it what actually connects to what, with a confidence tag on every edge.

### Should I commit .cursor/rules/graphify.mdc?

Yes. The rule is a plain project file and is meant to be committed, so one install covers the whole team. Teammates need the graphifyy CLI installed and a built graph (graphify-out/graph.json) for the queries to work.

### Does the rule apply to Cursor's subagents?

The rule instructs the agent to include the same query-first guidance in every subagent prompt that involves code exploration, so spawned agents are pointed at the graph too.

### Do I need the MCP server in Cursor?

For the hosted product, yes: the Graphify plugin for Cursor adds it for you, or use Add MCP to Cursor, or add https://api.graphify.com/mcp to mcp.json, then sign in with OAuth. The Graphify CLI path does not need a hosted MCP connection. graphify cursor install writes a rule that queries a local graph, and a local MCP server is optional if you want those tools in Cursor.

### Does my code leave my machine?

With the open-source engine, no. Source code is parsed locally with tree-sitter (about 40 languages, 33 with tree-sitter grammars); building code edges never requires an API call. Non-code files such as docs and PDFs are read by the model you already use. 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.

### How do I remove it?

graphify cursor uninstall deletes the rule file; graphify uninstall removes Graphify from every platform at once. Add --purge to also delete the graphify-out/ directory.

## Next steps

The [quickstart](https://docs.graphify.com/quickstart) walks the whole flow from install to first query, and the [CLI reference](https://docs.graphify.com/reference/overview) covers every command the rule points Cursor at. Running Claude Code alongside Cursor? The same graph serves both: see [Graphify + Claude Code](https://graphify.com/integrations/claude-code), or browse all 20+ assistants on the [integrations page](https://graphify.com/integrations). For a wider look at MCP servers in this editor, see the [best MCP servers for Cursor](https://graphify.com/blog/best-mcp-servers-for-cursor).

## Try Graphify now.

[Try for free](https://graphify.com/signup)

[Graphify](https://graphify.com/)

Shared context of codebase for agents and developers. Hosted, or open source on your own machine.

[SOC 2 Type II Audit in progress](https://trust.graphify.com)

Ask AI about Graphify

- [ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Perplexity](https://www.perplexity.ai/search?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Google AI](https://www.google.com/search?udm=50&q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Grok](https://grok.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [DeepSeek](https://chat.deepseek.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)

© 2026 Graphify Labs. All rights reserved.

Hosted or on-device · Apache 2.0
