Skip to content
MrKeyword
AI search

Claude SEO MCP: how to connect Claude to your SEO data, step by step

A Claude SEO MCP setup lets Claude answer SEO questions from real data instead of guesses. This guide walks through connecting Claude Code, Claude Desktop or Cursor to an SEO MCP server, what you can ask once it works, and the permission settings worth checking before you do. The worked example is MrKeyword's own server; the steps carry over to any SEO MCP server.

A person asking an AI assistant a question at a laptop
The short version
  • An SEO MCP server gives Claude a set of tools it can call to read your search data, so answers come from Search Console rows rather than the model's memory.
  • Setup takes three steps: create a token in the SEO tool, add the server URL to your client, and check the tool list before you ask anything.
  • In Claude Code it is one command: claude mcp add --transport http with an Authorization header. Claude Desktop and claude.ai use a custom connector; Cursor uses mcp.json.
  • Start with a read-only token. MrKeyword's tokens are read-only unless you tick “Allow this token to make changes”, which unlocks 5 action tools.
  • MCP passes data, not judgement: tools return averages and dates, and a good prompt asks Claude to quote the tool and date behind every number.

What is a Claude SEO MCP server?

A Claude SEO MCP server is an SEO tool that speaks the Model Context Protocol, so Claude can call its functions and read its data while it answers you. The protocol's own documentation describes MCP as an open standard for connecting AI applications to external systems, and compares it to a USB-C port for AI applications: one plug shape, many devices.

In MCP terms, Claude Code, Claude Desktop or Cursor is the host. For each server you add, the host runs a client that keeps a connection to that server. A server can offer three kinds of things:

  • Tools: functions the model can call, such as “get rankings for this site”.
  • Resources: data the client can read as context, such as a file or a record.
  • Prompts: reusable templates, such as a ready-made weekly review.

Remote SEO servers usually use the Streamable HTTP transport, which MCP's architecture page says supports standard HTTP authentication such as bearer tokens, API keys and custom headers. That is why most SEO MCP setups come down to two values: a URL and a token.

Without a server, Claude can explain SEO concepts but cannot see your site's clicks, positions or crawl errors. With one, “which pages lost clicks this week?” becomes a question it can actually answer, with the numbers taken from your account.

What you need before you start

You need an MCP-capable client, an account with an SEO tool that runs an MCP server, and a site connected to that tool. The server can only return what the tool has.

  • A client. Claude Code (the terminal and IDE tool), the Claude desktop app or claude.ai, or Cursor. Other MCP clients work the same way if they support remote HTTP servers.
  • An SEO MCP server and a token. For MrKeyword, the endpoint is https://app.mrkeyword.io/mcp, and tokens are created in Settings → Connections → API & MCP Tokens. The Free plan is enough to connect, and connecting an assistant has no separate charge.
  • Data in the account. Connect Google Search Console (and Bing Webmaster Tools if you use it) to the workspace first. A brand-new workspace with no synced data will answer most questions with “no data yet”, which is the honest answer.

How to connect Claude to an SEO MCP server, step by step

Create a token, add the server to your client with that token in an Authorization header, then confirm the tools loaded. The steps below use MrKeyword's server; swap in your own tool's URL and token format if you use a different one.

  1. Create a read-only token

    In MrKeyword, open Settings → Connections → API & MCP Tokens, give the token a label (for example “Claude Code, laptop”) and create it. Leave “Allow this token to make changes” unticked. The value starts with mk_ and is shown once; MrKeyword stores only a hash of it, so copy it somewhere safe now.

  2. Add the server to your client

    Use the command or configuration for your client in the next section. Each one needs the same two things: the URL https://app.mrkeyword.io/mcp and the header Authorization: Bearer mk_….

  3. Check that it connected

    In Claude Code, run /mcp to see the server's status. In Claude Desktop and Cursor, open the client's tools or connector list. You should see tools such as list_sites, get_rank_summary and get_site_audit.

  4. Ask a first question

    Start with “List my sites in MrKeyword”, which calls list_sites. Every other site tool needs a site id from that list, so Claude usually calls it first anyway.

Claude Code: one command

In Claude Code, add a remote SEO MCP server with claude mcp add --transport http, the server name, the URL and a --header carrying the token. Claude Code's documentation recommends the HTTP transport for remote servers and lists SSE as deprecated.

Add MrKeyword's MCP server to Claude Code

claude mcp add --transport http mrkeyword \
  https://app.mrkeyword.io/mcp \
  --header "Authorization: Bearer mk_your_token"
Replace mk_your_token with your own token. Then run /mcp inside Claude Code to confirm the server connected.

Two options are worth knowing. Scope: by default a server is added at local scope, for the current project only, stored in ~/.claude.json. --scope user makes it available in every project. --scope project writes it to .mcp.json in the repository so teammates get it too, which is a bad place for a personal token. Management: claude mcp list shows configured servers and their health, and claude mcp remove mrkeyword takes one out.

Claude Desktop and claude.ai: a custom connector

In the Claude apps, a remote MCP server is added as a custom connector: Customize → Connectors, then + Add → Add custom connector, with a name and the server URL. Anthropic's help centre says custom connectors are available on Free, Pro, Max, Team and Enterprise plans, with Free users limited to one, and that the feature is in beta.

  • Authentication. Besides OAuth, Anthropic's article says connectors can send fixed credentials, such as a bearer token, in request headers, stored encrypted. For MrKeyword that header is Authorization: Bearer mk_….
  • Where the connection comes from. Custom connectors connect from Anthropic's cloud, not from your computer, so the server must be reachable over the public internet. MrKeyword's endpoint is.
  • Team and Enterprise. An owner adds the connector in Organization settings → Connectors, and members connect it. Anthropic notes that with fixed credentials every user shares that credential's access, so on a team plan use a read-only token for one workspace.

Claude Desktop also reads a local claude_desktop_config.json (under Settings → Developer → Edit Config). Anthropic's documentation describes that file only for local servers that Claude Desktop starts on your machine, so MrKeyword, a remote server, goes in through the connector route above. The developer reference lists the exact values to enter.

Cursor and other MCP clients

In Cursor, add the server to .cursor/mcp.json in a project, or ~/.cursor/mcp.json for every project, with a url and a headers object. Cursor's documentation supports environment variable interpolation in url and headers, which keeps the token out of the file.

~/.cursor/mcp.json

{
  "mcpServers": {
    "mrkeyword": {
      "url": "https://app.mrkeyword.io/mcp",
      "headers": { "Authorization": "Bearer ${env:MRKEYWORD_TOKEN}" }
    }
  }
}
Set MRKEYWORD_TOKEN in your shell profile or system environment. Cursor's docs say envFile is not supported for remote servers.

Any other client, or a plain script, can talk to the same endpoint: it is JSON-RPC 2.0 over a single HTTP POST. A tools/list request with your token returns the exact tools your token can use, which is the authority if a page, including this one, disagrees.

What can you ask Claude once the SEO MCP server is connected?

Ask questions about your own site's search performance, rankings and technical health; Claude picks the tools, calls them and writes the answer from what they return. These are example prompts with the MrKeyword tools they usually lead to. They are examples, not recorded answers.

Example SEO prompts for Claude and the MCP tools behind them

Ask ClaudeTools it callsWhat comes back
“Which keywords dropped this week, and by how much?”get_rank_summary, get_rankingsAverage position and its change, top-3 and top-10 counts, biggest gains and drops
“Show me the queries I'm on page two for.”get_search_queries (filter almost_there)Real Search Console queries at average positions 11–20, with page, clicks and impressions
“Which queries get impressions but no clicks?”get_search_queries (filter seen_not_clicked)Rankings whose title and description are not earning the click
“What is hurting my site today?”get_daily_issuesStale syncs, pages and keywords that lost position, cannibalisation, high-severity crawl findings
“What should I fix first this week?”get_opportunity_inboxFixes ranked by clicks at stake, each with its evidence and a brief
“What did the last crawl find?”get_site_audit, get_audit_issuesHealth score and its formula, issues by category and severity, affected pages and fixes
“Which pages should link to this one?”get_internal_link_suggestionsSource page, exact anchor words, the sentence they sit in, and the target
“Write a brief for the page I'm rewriting.”get_page_keywords, get_page_briefThe queries the page already earns, so the rewrite keeps them
“Does ChatGPT name us for our customers' questions?”get_ai_visibilityMention rate, share of voice, citations and gaps from your tracked AI visibility questions
Tool names from MrKeyword's MCP server on 29 October 2026. Your client's tool list is the authority for what your token can call.

The server also offers four MCP prompts, ready-made workflows a client can show as commands: weekly_seo_review (what moved and five actions for the week), fix_my_top_issues (the latest crawl, grouped by category with fix steps), find_keyword_opportunities (near-miss Search Console queries turned into a prioritised list) and client_report (a client-ready report from rankings, queries and the latest audit). Claude Code lists server prompts as slash commands, so with the server named mrkeyword, typing /mcp__mrkeyword__weekly_seo_review runs the weekly review.

Three habits make the answers better. Name the site and the period (“last 28 days”). Ask Claude to cite the tool and date range behind every number. And ask for a short list of actions, not a dump of rows.

Want the shorter version?The Claude SEO page shows the one-line setup and the questions people ask most, side by side.

See SEO with Claude

Security and permissions: what to check before you connect

Treat an MCP token like a password, start read-only, connect only servers you trust, and review each tool call before you approve it. Anthropic's help centre warns that custom connectors are not verified by Anthropic, that malicious servers may use prompt injection, and that server behaviour can change without notice. Claude Code's documentation says servers that fetch external content can expose you to prompt injection risk.

  • Least privilege. MCP's security guidance recommends minimal, low-risk scopes first. In MrKeyword, every token gets the 20 read tools; only a token created with “Allow this token to make changes” (the actions scope) can call the 5 action tools, and an existing token cannot gain it later.
  • Approvals. Claude Code shows a permission prompt for MCP tool calls unless a rule allows them. Its permission rules name MCP tools as mcp__<server>__<tool>, so mcp__mrkeyword__get_* can auto-approve the read tools while action tools still ask. Cursor also asks for approval before running an MCP tool by default.
  • Keep tokens out of repositories. Do not commit a token in .mcp.json or a project mcp.json. Use user scope or environment variables.
  • Revoke and rotate. One token per client makes it easy to revoke the right one. MrKeyword tokens stop working on the next call after revocation, when an optional expiry passes, or when the person who created them is removed from the workspace.

MrKeyword MCP tools by permission

TypeToolsNeeds
ReadSites, Search Console summaries and queries, rankings and keyword history, daily issues, opportunity inbox, internal link suggestions, AI visibility, site audit and issues, page templates, page audits and briefs, work items, reports, account usageAny token
Actiontrack_keywords, set_target_page, add_annotation, start_site_audit, run_reportA token with the actions scope; each call is written to the workspace audit log
Action tools change data inside MrKeyword only. No tool can edit your website, your Google account or your billing.

The server allows 120 calls a minute per token; going over returns HTTP 429 with a Retry-After header. Starting a crawl or tracking keywords uses the same plan allowances as doing it in the app.

Troubleshooting a Claude SEO MCP connection

Most failures are a wrong header, a missing transport flag or a site id that belongs to another workspace.

SymptomLikely causeFix
HTTP 401, error -32001Token missing, mistyped, revoked or expiredCheck the header reads Authorization: Bearer mk_…; create a new token if needed
Claude Code treats the URL as a commandNo transport givenAdd --transport http; in JSON config, add "type": "http"
A GET to the endpoint returns 405Expected: the server takes POST onlyNothing to fix; use an MCP client or a JSON-RPC POST
“Site not found in this workspace”The token belongs to a different workspaceCall list_sites and use an id from it, or create a token in the right workspace
An action tool is refusedThe token is read-onlyCreate a new token with “Allow this token to make changes” ticked
“No completed site audit yet”No crawl has runRun a site audit in the app, or call start_site_audit with an actions token

What MrKeyword's MCP server does not do

It reads one workspace's first-party data and queues a few in-app jobs; it is not an autonomous SEO agent and it has no web-scale index.

  • No live SERP ranks. Positions are period averages from Search Console or Bing Webmaster Tools, never a scrape of the results page. The server's own instructions tell the model to say so.
  • No backlink or competitor data. There are no tools for other sites' links, rankings or traffic, and the built-in prompts tell Claude not to discuss them.
  • No market-wide keyword volume by default. Keyword volume tools appear only when live Keyword Planner lookups are switched on, and each call spends lookup credits.
  • No changes to your site. No tool edits pages, publishes content or touches Google settings. The judgement and the publishing stay with you.
  • No resources, sampling or SSE stream. The server advertises tools and prompts only, and answers one JSON-RPC POST per call.

Other SEO MCP servers. Several SEO suites now list MCP access, often with their own keyword and backlink databases. Our AI SEO tools comparison lists which ones, and the Semrush alternative and Ahrefs alternative pages cover what web-scale data adds.

Check the numbers before you send them on. A model can still phrase a figure loosely. Ask Claude which tool and date range each number came from before it goes into a client report.

Questions and answers

Claude SEO MCP guide questions

What is the best way to connect Claude to SEO data?

Use an SEO tool that runs an MCP server and connect it to your Claude client. In Claude Code that is one claude mcp add --transport http command with an Authorization header; in Claude Desktop or claude.ai it is a custom connector; in Cursor it is an entry in mcp.json.

Do I need to be a developer to use a Claude SEO MCP server?

No. You create a token in the SEO tool, paste one command or fill in the connector form, and ask questions in plain English. The JSON-RPC details matter only if you call the endpoint from your own scripts.

Is there an SEO API for Claude?

MCP is the standard way to give Claude an SEO API: the server describes its tools and Claude calls them. MrKeyword's MCP endpoint is https://app.mrkeyword.io/mcp, and the same bearer token also works on its REST API under /api.

Can Claude change my website through an SEO MCP server?

Not through MrKeyword's. No tool touches your website, Google account or billing. A token is read-only unless you tick “Allow this token to make changes”, which unlocks five in-app actions such as tracking keywords or starting a crawl, each written to the audit log.

Does the MCP connection show live Google rankings?

MrKeyword's does not. It returns the average positions Search Console and Bing Webmaster Tools report for a period. If you need daily positions checked on the live results page, you need a SERP rank tracker.

Does connecting Claude cost extra?

Not with MrKeyword: connecting an assistant has no separate charge on any plan, including Free. Claude's own plan limits, such as one custom connector on Claude's Free plan, still apply.

About this article

Written by the MrKeyword team, who build an SEO workspace on first-party Search Console and Bing data. Outside facts link to their original source below. We update this page when the product or the sources change.

Sources

  1. What is the Model Context Protocol (MCP)? — modelcontextprotocol.io, checked 29 October 2026
  2. MCP architecture overview — hosts, clients, servers, primitives and the Streamable HTTP transport
  3. MCP security best practices — scope minimisation and token handling
  4. Connect Claude Code to tools via MCP — claude mcp add, scopes, /mcp, SSE deprecation, prompt injection warning
  5. Claude Code permissions — mcp__server__tool permission rules
  6. Get started with custom connectors using remote MCP — Anthropic Help Centre: plans, setup, fixed-credential headers, security
  7. Connect to local MCP servers — claude_desktop_config.json for local servers
  8. Model Context Protocol in Cursor — mcp.json locations, headers, env interpolation, tool approval
  9. MrKeyword MCP developer reference — endpoint, tokens, tool list, scopes and limits
Keep reading

Put this into practice.

Related guides and tools for the same job.

Give Claude your real search data to work from.

Connect Google Search Console to MrKeyword, create a read-only token and add one line to Claude. Free plan for one website, no card; paid plans from $10 a month.