Skip to main content

SEO MCP Setup: One Guide for Claude Code, Cursor, Codex, Windsurf, Cline, Kiro and Grok

An SEO MCP server connects to Claude Code, Cursor, Codex and other AI coding tools. This guide covers setup for each tool and what to run after connecting.

By Kaivalya Deshpande, Founder, RankBrain AI·Published ·Updated ·8 min read·2 sources cited

The short version

  • One MCP server covers Cursor, Claude Code, Codex, Windsurf, Cline, Kiro and Grok.
  • The dashboard holds a separate setup prompt for each tool, with your key already filled in.
  • Paste the prompt in your project chat; the AI writes the config and rule files.
  • Each SEO fix is shown as a before and after and applied only when you approve it.

An SEO MCP server is a tool that connects to your AI coding environment and lets you run SEO checks and apply fixes without leaving your editor.

RankBrain AI is one MCP server that works with seven AI coding tools. Every tool gets its own tab in the dashboard with a paste-once setup prompt; your key is already filled in. Pick your tool from the list below and paste the prompt into your project chat. Each SEO fix is shown as a before and after and applied only after you approve.

Which SEO MCP server do you need

There are three kinds of SEO MCP server, each built for a different job.

  1. Data API servers pull keyword volumes, backlink counts, and other research data. All output goes to chat.
  2. Search Console servers read your impressions, clicks, and positions from Google Search Console and return them in chat.
  3. Fix-and-audit servers read the live site, check titles, descriptions, schema markup, link text, and AI crawler access, then give the exact replacement for each issue and apply it to the project file after you approve. RankBrain AI is this kind.

Pick by the job. If you need keyword research, connect a data API server. If you need to audit and fix the site, connect a fix-and-audit server. Many people connect one of each and use both in the same chat session.

How the SEO MCP setup works

The process is the same for every tool. Sign up for RankBrain AI, then open the dashboard. Choose the tab for your tool. Copy the setup prompt. Your key is already in it.

Open your project in the coding tool, start a new chat, and paste the prompt. The AI writes the MCP config file, the AGENTS.md block, and any tool-specific rule files so every new chat in that project connects to the server automatically. Restart the tool and confirm the server shows as connected with tools.

The plan is free for 3 days, then $5.00 a month. Start your free trial.

Claude Code: paste once and restart

The setup prompt writes an entry in ~/.claude.json. The entry runs npx -y mcp-remote https://rankbrain.app/api/mcp --header "Authorization: Bearer YOUR_KEY". Paste the prompt in a Claude Code chat in your project, let it write the files, then restart Claude Code MCP and confirm the maitreya-labs-seo-mcp server is connected. Claude Code MCP documentation

For the full step-by-step walkthrough, see the SEO MCP for Claude Code guide.

Cursor: paste once and reload

The setup prompt writes .cursor/mcp.json with the server URL and your key in the headers, and a .cursor/rules file with alwaysApply. Paste the prompt in a Cursor chat in your project, let the AI write the files, then reload the window or run MCP: Restart servers and confirm the server is connected. Cursor MCP documentation

For the full walkthrough, see the Cursor SEO MCP guide.

Codex: environment variable and launcher

The setup prompt does four things on Windows. It sets the user environment variable MCPAPP_TWO_API_KEY to your key. It saves a .cmd launcher in an mcp-launchers folder in your user profile; the launcher calls npx -y mcp-remote and reads the key from that variable. It merges a [mcp_servers.maitreya-labs-seo-mcp] entry into ~/.codex/config.toml with the env var, a startup timeout of 60 seconds and a tool timeout of 120 seconds. It adds the AGENTS.md block to your project. Fully quit and restart Codex, then check the tool list to confirm the server is connected.

For Codex users, Codex SEO covers the environment variable setup and audit steps.

Windsurf: merged config file

The setup prompt merges an entry for maitreya-labs-seo-mcp into ~/.codeium/windsurf/mcp_config.json. The entry contains the server URL https://rankbrain.app/api/mcp and your key in the Authorization header. The prompt also adds the AGENTS.md block to your project so every new Windsurf chat in the project connects to the server. Paste the prompt in a Windsurf chat in your project, let the AI write the files, then restart Windsurf and confirm the server shows as connected.

Cline: merged VS Code config

The setup prompt merges an entry for maitreya-labs-seo-mcp into cline_mcp_settings.json. The entry runs npx -y mcp-remote https://rankbrain.app/api/mcp --header "Authorization: Bearer YOUR_KEY". The prompt also adds the AGENTS.md block to your project so the server is active in every new chat. Paste the prompt in Cline's chat in your project, let the AI write the files, then restart VS Code and confirm the server is connected.

Kiro: remote MCP settings

The setup prompt merges an entry for maitreya-labs-seo-mcp into Kiro's remote MCP settings. The entry uses the server URL https://rankbrain.app/api/mcp and your key in the Authorization header, the same format as Windsurf. The prompt also adds the AGENTS.md block to your project so every new Kiro chat connects to the server automatically. Paste the prompt in a Kiro chat in your project, let the AI write the files, then restart Kiro and confirm the server shows as connected.

Grok: stdio transport and rules file

Grok's plain HTTP URL transport skips the Authorization header, so the setup prompt uses stdio mcp-remote instead. The prompt edits ~/.grok/config.toml, adding a [mcp_servers.maitreya-labs-seo-mcp] block with command = "npx", the mcp-remote arguments, enabled = true, a startup timeout of 60 seconds and a tool timeout of 120 seconds. It clears the server from disabled_mcp_servers, writes .mcp.json and a .grok/rules file. Quit and reopen Grok once, then refresh /mcps and check that RankBrain AI shows as ready.

Where each tool keeps the config

Config the setup prompt writes
ToolFile or settingConnection type
Claude Code~/.claude.jsonstdio (npx mcp-remote)
Cursor.cursor/mcp.jsonHTTP URL + Authorization header
Codex~/.codex/config.toml, env var MCPAPP_TWO_API_KEY, .cmd launcherstdio (npx mcp-remote via env var)
Windsurf~/.codeium/windsurf/mcp_config.jsonHTTP URL + Authorization header
Clinecline_mcp_settings.jsonstdio (npx mcp-remote)
KiroKiro remote MCP settingsHTTP URL + Authorization header
Grok~/.grok/config.tomlstdio (npx mcp-remote)

Five prompts to run after connecting

Paste these into your project chat once the server is connected.

  • "Audit the SEO of https://example.com and list the fixes." Runs a site audit and lists SEO fixes.
  • "Rewrite the title and meta description of my pricing page and show before and after." Shows a rewritten title and description, before and after.
  • "Add Organization schema to my home page and show the diff." Adds schema to the home page and shows the diff.
  • "Check whether GPTBot and ClaudeBot can read my site." Checks whether AI crawlers can read the site.
  • "Fix the link text on my blog index." Proposes replacements for the blog index link text.

How RankBrain AI applies changes

RankBrain AI shows every proposed change as a before and after. Each change waits for your approval before it is written. Each fix is a plain file edit — a title tag rewritten, a schema block added, or a link text updated. Approvals happen one fix at a time; each fix needs its own confirmation before the AI writes it to your project files.

After the AI writes a fix, run git diff to see the full change in your repository. Run git revert to undo it.

Troubleshooting

  • Restart the tool after the config is written; the server shows up only after a full restart.
  • Check that the server shows as connected with tools before sending a prompt.
  • In Grok, open ~/.grok/config.toml and confirm the server is absent from disabled_mcp_servers.
  • In Codex, confirm the MCPAPP_TWO_API_KEY user environment variable exists before restarting.

What this guide does not cover

These steps come from the RankBrain AI dashboard setup prompts and were not checked against each tool's own current documentation on 2026-11-20. Each tool's menus and settings can change. For tools beyond those listed, the Universal tab in the dashboard detects the tool and generates a setup prompt for it.

For more context on AI SEO audits, see free AI SEO audit tools and the comparison of SEO MCP vs SEO SaaS. Run a check on your site now with the AI SEO checker, or see pricing for the full plan.

Check my site free

RankBrain AI does not guarantee rankings.

Frequently asked questions

What is the best MCP server for SEO?

The best MCP server for SEO depends on the job. Data API servers give keyword and backlink research. Fix-and-audit servers read the live site, return the exact replacement for each issue, and apply it after approval. Rankings are not guaranteed by any tool.

What is an SEO MCP server and how does setup work?

An SEO MCP server is a server that connects to your AI coding tool and handles SEO tasks in chat. To set one up, sign up at rankbrain.app, open the dashboard, copy the setup prompt for your tool, paste it into a new chat, and restart the tool.

How do I set up an SEO MCP server?

Sign up at RankBrain AI and open the dashboard. Choose the tab for your coding tool. Copy the setup prompt. Your key is already in it. Paste the prompt into a new chat in your project. The AI writes the config and rule files. Restart the tool and confirm the server is connected. The plan is free for 3 days, then $5.00 a month.

Which AI coding tools work with RankBrain AI?

The dashboard has a tab for Cursor, Claude Code, Grok, Codex, OpenCode, Antigravity, Kiro, Windsurf and Cline, plus a Universal option. Each tab holds a setup prompt for that tool. For tools beyond those listed, the Universal tab detects the tool and generates the right setup prompt.

Where do I find the setup prompt?

Open the dashboard and choose the tab for your coding tool. Each tab has a setup prompt with your key already filled in. Copy it and paste it into a new chat in your project. The AI writes the config files.

Do I need to edit config files myself?

The setup prompt writes the config files. Paste the prompt into your project chat and the AI writes the MCP config and rule files for your tool. For Codex, the prompt also sets the Windows environment variable and saves the launcher file. Restart the tool and the server connects.

Does the SEO MCP change my files without asking?

Every proposed change is shown as a before and after. The AI writes the change only after you approve it. Each fix needs its own approval. After writing, run git diff to see the change and git revert to undo it.

Can I try it free?

Yes. The plan starts with a 3-day free trial, then $5.00 a month. Sign up at rankbrain.app to get your API key. The dashboard opens right after sign-up with the setup prompt for your tool.

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]
    Connect Claude Code to tools via MCP

    Anthropic · docs.claude.com · Official documentation · read 2026-11-19

  2. [2]
    Model Context Protocol (MCP)

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

Keep reading

An SEO MCP server is a tool that connects to your AI coding environment and lets you run SEO checks and apply fixes without leaving your editor.

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.