Skip to main content

Add RankBrain AI to Cursor: Paste One Prompt, Then Audit Your Site

RankBrain AI is a Cursor SEO MCP that sets up in one paste. Use it as a Cursor SEO agent to audit pages, get exact fixes, and apply them after approval.

By Kaivalya Deshpande, Founder, RankBrain AI·Published ·Updated ·6 min read·1 source cited

The short version

  • Connect RankBrain AI to Cursor in three steps: sign up, paste the setup prompt, reload.
  • The setup prompt writes .cursor/mcp.json and a Cursor rules file for you.
  • Each SEO finding shows the current content and the proposed replacement; nothing changes until you approve.
  • The same MCP server works in Claude Code, Windsurf and Codex through their own setup prompts.

You connect RankBrain AI to Cursor in three steps by pasting a setup prompt into Cursor chat. The AI writes .cursor/mcp.json with the server address and your key, and adds a Cursor rules file so every new chat calls the server. After that, ask for an audit in plain English. Each fix is proposed as a before and after, and applied after you approve.

What you need

A RankBrain AI account — sign up at rankbrain.app and check pricing. The first three days are free, then $5 a month. Cursor, installed and open on your project. A project folder for Cursor to work in.

The dashboard holds your API key on the Cursor tab, and the setup prompt carries it into .cursor/mcp.json. The config is written for you.

Add RankBrain AI to Cursor in 3 steps

Step 1: Sign up and copy the setup prompt. Go to rankbrain.app and create your account. Open the RankBrain AI dashboard and choose the Cursor tab. The tab shows a ready-to-paste setup prompt that already contains your API key. Copy it in full.

Step 2: Paste the prompt into a Cursor chat. Open Cursor with your project folder loaded. Start a new chat and paste the prompt. Cursor's AI reads it and writes two files: .cursor/mcp.json, which registers the RankBrain AI server with its URL and your key; and a Cursor rules file that has alwaysApply set, so every new chat in the project loads the server without an extra step.

Step 3: Reload and confirm the connection. Reload the Cursor window, or open the command palette and run MCP: Restart servers. Then open the Customize panel in the Cursor sidebar and look for maitreya-labs-seo-mcp in the list. When it shows as connected and lists its tools, the setup is done. Cursor loads only enabled servers; if it shows as disabled, toggle it on from that panel.

What .cursor/mcp.json holds

{
  "mcpServers": {
    "maitreya-labs-seo-mcp": {
      "url": "https://rankbrain.app/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_KEY"
      }
    }
  }
}

Cursor reads project config from .cursor/mcp.json in the repo root, and global config from ~/.cursor/mcp.json in your home folder. The setup prompt writes the project file, so the server applies to that project only. To use it in all Cursor projects, add the same block to ~/.cursor/mcp.json.

What to ask in Cursor chat

Once the server shows connected, open a new Cursor chat and type any of these. Use your own domain in place of example.com.

  1. Audit the SEO of https://example.com and list the fixes.
  2. Rewrite the title and meta description of my pricing page and show before and after.
  3. Add Organisation schema to my home page and show the diff.
  4. Check whether GPTBot and ClaudeBot can read my site.
  5. Fix the link text on my blog index.

The audit returns each finding with the current content and the proposed replacement. Each item is its own approval step: RankBrain AI applies the change to the file only after you confirm it. Ask for one fix at a time or run the full audit first.

What happens after you approve

RankBrain AI shows each finding as a pair: the current content on your page and the proposed replacement. Title tags, meta descriptions, schema blocks, link text — each one is its own item, with the before and the after written out.

The file is edited only when you approve that specific fix. When you approve, Cursor applies it as a plain file edit through the same editor you are already in. Run git diff afterwards and you see exactly what changed. Run git revert on that commit if you want to undo it.

The flow is the same as the SEO MCP for Claude Code guide: one server, two editors, the same approval step in each.

Cursor rules for SEO: what the setup prompt writes

The setup prompt writes a .cursor/rules file with alwaysApply set. This file tells every chat session in the project to use the RankBrain AI SEO server. You do not need to mention the server in each prompt: Cursor reads the rules file and uses the server automatically.

You can add your own SEO rules to the same file. These five rules are a good starting point:

  • Write one title and one meta description per page. Keep each unique across the site.
  • Add schema markup (JSON-LD) to home, about, pricing, and other key pages.
  • Use descriptive link text that names the destination page.
  • Show before and after for every SEO change before writing it to the project file.
  • Apply each change only after the user approves the before and after.

Cursor, Claude Code and others

The same RankBrain AI server works in several AI coding tools. Each one has its own setup prompt in the dashboard, and each prompt writes the config file for that tool.

Where the same server is set up
ToolConfig the setup prompt writes
Cursor.cursor/mcp.json
Claude Code~/.claude.json
Windsurfmcp_config.json
Codexown paste prompt
Clineown paste prompt

Switch between tools and the server stays the same; only the config location changes.

For the browser-based approach, see the free AI SEO audit tools guide and the AI SEO checker tool. For a broader comparison, the SEO MCP vs SEO SaaS and AI coding tools vs SEO tools posts cover the trade-offs.

Using another tool? See the SEO MCP server guide for every tool.

RankBrain AI finds each issue, shows the exact fix as before and after, and applies it through Cursor after you approve. Rankings are not guaranteed.

RankBrain AI also works with Codex: see SEO MCP for Codex for setup and audit steps.

RankBrain AI works with Claude Code, Codex, Windsurf and more: the SEO MCP server guide covers setup for every supported tool.

Frequently asked questions

What does a Cursor SEO agent do with RankBrain AI?

A Cursor SEO agent powered by RankBrain AI reads your live site, finds issues with titles, descriptions, schema markup, and AI crawler access, and returns the exact replacement for each one. Each fix goes into the project file after you approve it.

What do Cursor rules for SEO do?

Cursor rules for SEO are instructions in the .cursor/rules file that apply to every chat session in the project. The setup prompt writes this file with the SEO server already included. You can add your own rules to the same file to guide how the agent handles titles, schema markup, link text, and approvals.

How do I add an SEO MCP server to Cursor?

Sign up at rankbrain.app and open the Cursor tab in the dashboard. Copy the setup prompt. Open a Cursor chat in your project and paste it. Cursor's AI writes .cursor/mcp.json with the server address and your key. Reload the window and confirm the server shows connected in Cursor's Customize sidebar.

Where does Cursor store MCP settings?

Cursor reads project-level settings from .cursor/mcp.json in your project root. It also reads global settings from ~/.cursor/mcp.json in your home folder. The setup prompt writes the project file. If you want the server available in every project, copy the same block to the global file.

Does the Cursor SEO MCP change my files without asking?

Every fix requires approval before Cursor applies it. RankBrain AI shows the current content and the proposed replacement for each finding. The file is edited only when you approve that specific fix. You can approve some fixes and skip others in the same audit.

Can I try the SEO MCP in Cursor free?

Yes. Sign up at rankbrain.app for a 3-day free trial. After three days the plan is $5 a month. The setup follows the same three steps on the trial: sign up, paste the prompt into Cursor, reload the window.

Does it work with Claude Code and Windsurf too?

Yes. The same RankBrain AI server has setup prompts for Claude Code, Windsurf, Codex, Cline and others. Each prompt writes the config file for that tool. Open the dashboard, choose the tab for the tool you use, and paste the prompt into a chat.

Do rankings improve after the fixes?

Rankings depend on many factors and are not guaranteed. RankBrain AI finds and fixes the technical and content issues that make a page harder to rank: title tags, meta descriptions, schema markup, link text. The fixes give the page a clearer signal, but results vary by site and by search term.

Sources

Every figure on this page traces to one of these. Dates are when we last read each page: prices and features change, so check anything older than a few months.

  1. [1]
    Model Context Protocol (MCP)

    Cursor Docs · cursor.com · Official documentation · read 2026-11-19

Keep reading

You connect RankBrain AI to Cursor in three steps by pasting a setup prompt into Cursor chat. The AI writes .cursor/mcp.json with the server address and your key, and adds a Cursor rules file so ever…

This site is not a part of the Facebook website or Meta Platforms, Inc. Additionally, this site is not endorsed by Meta in any way. Facebook and Instagram are trademarks of Meta Platforms, Inc. This site is also not a part of Google LLC and is not endorsed by Google in any way. Google and YouTube are trademarks of Google LLC. Maitreya Labs runs this site and its offers on its own.