Scrubby
Integration

Scrubby + Cursor

Cursor is one of the most widely adopted AI editors, and its agent is one of the most prolific code generators on most teams. Scrubby plugs into Cursor through Model Context Protocol so the agent stops guessing your codebase from filenames and starts writing code that fits.

What you get

Setup

1. Add the MCP server

Open Cursor Settings › MCP and add a new server with this configuration:

{
  "mcpServers": {
    "scrubby": {
      "url": "https://mcp.scrubby.ai/mcp"
    }
  }
}

Alternatively, drop the same JSON in .cursor/mcp.json at your project root if you want the config to travel with the repo.

2. Authenticate

The first time Cursor connects to Scrubby, it'll prompt you to authenticate via GitHub OAuth. Sign in with the GitHub account you used for Scrubby.

3. Index your repository

Ask Cursor's agent to index your repo:

"Index this repo with Scrubby — it's owner/repo-name."

Indexing takes 1–3 minutes. After that, indexing is incremental and stays current as commits land.

4. Use it naturally

Cursor's agent reads Scrubby's MCP tool descriptions and decides when to call them. You don't have to prompt it specially — though if you want to nudge it, you can:

Tools available to Cursor

ToolPurpose
scrubby_indexIndex a repository for the first time, or re-index after major changes
scrubby_reviewGet domain, conventions, connected files, and git history for a specific file
scrubby_review_changesetCheck changed files for missing co-changes and convention violations
scrubby_get_domainsList all architectural domains discovered in the repository
scrubby_get_segmentsList code segments with their conventions and file summaries
scrubby_get_networkGet the domain connection graph showing how areas of the codebase relate
scrubby_get_findingsRetrieve findings from previous reviews
scrubby_report_findingsReport findings so Scrubby can refine its connection weights

Tips for Cursor users

Keep .cursor/mcp.json in source control.

If you check the file into your repo, every developer who clones it gets Scrubby wired up automatically. They authenticate once and they're done.

Combine Scrubby with Cursor's repo indexing.

Cursor's own context engine handles file-level retrieval, while Scrubby handles domain-level architecture. They cover different layers and don't conflict.

Train the network as you go.

When you ask Cursor to review code, ask it to call scrubby_report_findings with what it found. Each call strengthens or weakens connection weights, so the system gets sharper for your repo over time.

Troubleshooting

Stop rewriting Cursor's suggestions.

Join the Scrubby beta Read the setup docs →