NEWOur agents now make the SEO fixes on your site and check what worked →

Claude Code SEO: Audit and Ship Fixes from Your Terminal

Claude Code can fix a title template in seconds, once it knows which pages are losing clicks. Connect SEOmatic with one command and Claude Code runs SEO audits on your live site, reads your real Search Console data, and fixes what it finds in your repo, where the change belongs.

  • One command to connect, OAuth in the browser
  • Real Search Console data next to your code
  • Audit the live site, fix the template, check again
Connect Claude Code free
SEOmatic astronaut working in Claude Code
Claude Code logo
Claude Code

About SEOmatic for Claude Code

SEOmatic is a hosted MCP server Claude Code talks to over HTTP. It gives Claude Code SEO tools that run on your live site and your Search Console, so the fixes it writes in your code are aimed at real problems.

Last Updated

November 2026

Requirements

Claude Code and a free SEOmatic account. No API key and no Google Cloud project: the connection signs in through your browser.

Pricing

Free to connect. Search Console, audits and page checks have no limit; market data uses 5 free questions a month (plus a one-time 5 the first time you sign in from an assistant, and 10 more when you connect Search Console). Paid plans add agents that stage fixes for your approval. See pricing.

Full Docs

Endpoint, auth, every tool and what it costs: SEOmatic MCP server docs.

SEOmatic in Claude Code

What SEOmatic Does in Claude Code

Audit the Live Site

Crawl up to 30 pages and get duplicate titles, thin pages, noindex leaks, canonical and redirect problems and broken internal links.

Fix It in the Template

Claude Code traces a site-wide issue, like a duplicated title pattern, to the layout or metadata code and fixes it once.

Aim at Real Clicks

Search Console shows which pages earn impressions but lose clicks, so the work starts where traffic is waiting.

Check a Deploy

Analyze any public URL, including a publicly reachable preview deploy, before and after the change.

Indexing Questions

Inspect up to 50 URLs per call for coverage state, robots and canonical issues straight from Google's URL Inspection data.

Schema and Metadata Review

Read the live page's title, meta, headings and links as Google fetches them, then compare with what the code should output.

Most SEO problems on a code-built site live in a template, a layout or a routing rule, not in one page. Claude Code with SEOmatic is best for developers who want to find those problems from real data and fix them at the source in the same session.

Example: Ask Claude Code About Your Site

An example on the Acme Plumbing demo site. You ask Claude Code:

“Why does /drain-cleaning-cost get impressions but almost no clicks? Fix it in the repo.”

Claude Code calls SEOmatic:

  • gsc_performance: /drain-cleaning-cost by query, Sep 10 to Oct 9 (30 days)
  • site_pages: live title and meta for /drain-cleaning-cost
  • Read app/drain-cleaning-cost/page.tsx

Claude Code answers:

From Sep 10 to Oct 9 (30 days), /drain-cleaning-cost had 2,640 impressions and 21 clicks (0.8% CTR) at position 8.7. The top queries are "drain cleaning cost" and "how much to unclog a drain".

The live title is "Drain Cleaning | Acme Plumbing" because the page has no generateMetadata, so it falls back to the layout. I added one with the title "Drain Cleaning Cost: What You Will Pay | Acme Plumbing" and a description with the price range from the page.

Review the diff and deploy. Then ask me to re-check the live page.

Also try:

  • “Audit my live site and find the code behind each issue”
  • “Which pages ship a noindex by mistake?”
  • “Check the preview deploy before I merge”
  • “Which titles get seen but skipped?”

SEO Prompts to Try in Claude Code

Run these inside a Claude Code session in your site's repo. SEOmatic's five starter prompts also show up as slash commands: type / and pick one, like /seomatic:seo-audit or /seomatic:traffic-drop.

  • “Audit https://example.com with SEOmatic, then find the code responsible for each issue.”
  • “Which pages have high impressions and low CTR? Open their title logic and suggest better titles.”
  • “Check whether any page ships a noindex or a canonical pointing elsewhere, and fix it in the code.”
  • “Inspect these URLs in Google's index and tell me why the excluded ones are excluded.”
  • “Analyze the preview deploy at https://preview.example.com and compare it with production.”
  • “We are relaunching next week. Run a technical check on the preview and list what would hurt rankings.”

How It Works, Step by Step

  1. You add SEOmatic with one command and sign in once in the browser with claude mcp login seomatic.
  2. You ask Claude Code an SEO question from your repo.
  3. Claude Code calls SEOmatic to audit the live site, read Search Console or inspect indexing, and gets real results back as text, with the date range they cover.
  4. It maps each finding to the file that produces it and proposes the code change, which you review like any other diff.
  5. After you ship, it re-runs the check on the live URL to confirm the fix.

Claude Code loads MCP tools on demand through tool search, so SEOmatic's tools take little room in your session until Claude needs them.

How to Connect SEOmatic to Claude Code

One command, then a one-time sign-in from inside a session. About a minute, and no Google Cloud setup.

  1. Add the server. In your terminal, run: claude mcp add --transport http seomatic https://app.seomatic.ai/api/mcp
  2. Sign in. Run: claude mcp login seomatic. Your browser opens. Sign in or create a free SEOmatic account and pick your site. Inside a session you can also type /mcp, select seomatic and choose Authenticate when it shows Needs authentication.
  3. Allow the tools. Claude Code asks before each SEOmatic tool call. To stop the prompts for this server, add the allow rule mcp__seomatic__* in /permissions. If you installed the plugin, the rule is mcp__plugin_seomatic_seomatic__* instead. Approving a staged fix still asks you every time.
  4. Connect Search Console. If your SEOmatic workspace has no Search Console yet, Claude Code gives you a one-click link the first time it needs your data.
  5. Run your first check. Ask “Audit my site with SEOmatic and rank the fixes by impact.”

Or run npx seomatic mcp add in a terminal.

Claude Code setup
claude mcp add --transport http seomatic https://app.seomatic.ai/api/mcp
claude mcp login seomatic
# Optional: --scope user on the add command makes it work in every project

Running headless, in CI or in a container? The server also accepts a workspace API key as a Bearer token; create one in Settings, AI Agents, API Keys. Want the skills too? /plugin marketplace add Minh42/seomatic-mcp, then /plugin install seomatic@seomatic.

MCP server, plugin or skills: how should Claude Code connect?

RouteBest forHow
MCP serverMost developers: the lightest setup, OAuth in the browserclaude mcp add --transport http seomatic https://app.seomatic.ai/api/mcp, then claude mcp login seomatic.
PluginRegular SEO work: the server plus 21 SEO skills (SEO audit, striking distance, weekly brief and more)/plugin marketplace add Minh42/seomatic-mcp, then /plugin install seomatic@seomatic and /reload-plugins. Sign in through /mcp when SEOmatic asks.
API keyCI, containers and headless runs with no browserAdd --header "Authorization: Bearer smk_live_..." to the claude mcp add command. Keys live in Settings, AI Agents.
Claude connectorPeople who already connected SEOmatic in Claude on the web or desktopNothing to add: sign in to Claude Code with the same Claude account and SEOmatic shows in /mcp as claude.ai SEOmatic.
Skills onlyTeams that already run several agents from one skills foldernpx skills add Minh42/seomatic-mcp --full-depth -a claude-code. Installs SEOmatic's 21 SEO skills: the CLI skill runs with SEOMATIC_API_KEY, the other 19 use SEOmatic's MCP server. All of them: SEO skills.

Start with claude mcp add. It takes one line and a browser sign-in. If you end up running audits every week, install the plugin: same server, same sign-in, plus the skills that tell Claude Code how to run each SEO job well.

Fix SEO on Your CMS From Claude Code

Claude Code, Claude or Claude Cowork: Which One Is This?

This page is about Claude Code, Anthropic's coding agent in the terminal and in VS Code and JetBrains. It is the right pick when the SEO problem lives in your code: a layout, a metadata function, a robots rule.

  • Claude is the chat app on claude.ai, desktop and mobile. Use it to read your numbers and approve fixes without a terminal: Claude SEO.
  • Claude Cowork is the desktop agent for longer tasks across your files and apps, like a weekly report written into a doc: SEO with Claude Cowork.

All three use the same SEOmatic server and workspace, so your free questions and your approvals carry across.

What Is Free and What Is Paid

Connecting is free, and so is the SEOmatic account behind it: no card. Free covers the diagnosis with no limit: Search Console reports and insights, site audits of up to 30 pages, live page analysis, and your AI visibility results.

Live market data, like keyword volumes, backlink profiles and competitor domains, uses free questions: 5 a month, plus a one-time 5 bonus questions the first time you sign in from an assistant, and 10 more when you connect Google Search Console. One question covers up to 5 lookups.

Paid plans remove the question limit and add the treatment: agents stage fixes on your site (titles, descriptions, content updates, technical fixes, internal links) and run campaigns and fresh AI visibility scans. Every paid plan starts with a 14-Day Trial for $1, credited to your first payment. See pricing.

For code changes you make yourself, the free lane is often enough: diagnosis is free, and the fix happens in your repo. Paid plans matter when you want SEOmatic's agents to write changes into a CMS for you. Claude Code itself is billed by Anthropic, under your Claude plan or API account.

Nothing Changes on Your Site Without Your Approval

Claude Code edits your code the way it always does, with your review. On the SEOmatic side, anything that would change your live site through a connected CMS is staged, never pushed. A staged change is a proposal: it says what will change and why, and in Approval mode nothing touches your site until you approve it. The assistant records your decision, and it is told never to approve anything on its own judgment. Approved fixes start within seconds, the page's previous state is stored, and any applied change can be rolled back. Changes that could take a page out of Google, like a noindex, need an extra explicit confirmation.

Keep Exploring

Chatting instead of coding? See Claude SEO. Longer tasks across files and docs? See Claude Cowork. Other coding agents: Codex, Cursor and GitHub Copilot. Explore the site audit, technical SEO fixes and the MCP server. All assistants: AI assistants. Full reference: MCP docs.

Using another agent? See Claude, Claude Cowork, Codex, Cursor, or every AI agent.

Frequently Asked Questions

How do I connect SEOmatic to Claude Code?

Run claude mcp add --transport http seomatic https://app.seomatic.ai/api/mcp in your terminal, then claude mcp login seomatic and sign in through the browser. It takes about a minute and needs no API key. Already connected SEOmatic in Claude? Sign in to Claude Code with the same Claude account and it is already there.

Can Claude Code do an SEO audit?

Yes. With SEOmatic connected, Claude Code crawls up to 30 pages of your live site, reads your Search Console data and inspects indexing, then traces each issue to the code that causes it and proposes the fix.

Should I use the MCP server, the plugin or the skills?

Start with the MCP server, which is one command. The plugin, installed with /plugin marketplace add Minh42/seomatic-mcp and /plugin install seomatic@seomatic, adds 21 SEO skills on top of the same server, such as the SEO audit, traffic drop diagnosis and the weekly brief. Skills alone, through npx skills add Minh42/seomatic-mcp --full-depth -a claude-code, suit teams that share one skills folder across agents.

Are the numbers real, or does Claude Code guess them?

They come from your own Google Search Console through SEOmatic. Each answer names the exact date range it covers, like Sep 10 to Oct 9, 30 days, so you can check it against Search Console yourself.

Do I need a Google Cloud project to read Search Console?

No. You connect Search Console to SEOmatic with a normal Google sign-in. There is no service account to create and no JSON key file to manage.

Is it free?

Yes. The account is free with no card. Search Console reports, site audits and page checks are free with no limit. Live market data (keyword volumes, competitors, backlinks) uses free questions: 5 a month, plus a one-time 5 the first time you sign in from an assistant, and 10 more when you connect Search Console. Paid plans remove the limit and add agents that stage changes in your CMS. Claude Code itself is billed by Anthropic.

Can it change my site without asking?

No. Every fix your assistant stages waits for your approval before it touches your site, and your assistant is told never to approve on its own. Approved changes are stored with the page's previous state, so any edit to an existing page can be rolled back. SEOmatic's own scheduled agents can ship reversible work, including single new articles, without a click unless you pick Approval mode in your autonomy settings; changes to your URLs or indexing, and new page sets, always wait for you.

Claude Code does not see the SEOmatic tools. What should I check?

Run claude mcp list from the same folder. If seomatic is missing, you added it in another project: add it again with --scope user. If /mcp shows only check_site and connect_seomatic, or seomatic as needing authentication, you are not signed in yet: run claude mcp login seomatic. Then start a new session and name SEOmatic in your request, like “Use SEOmatic to audit my site.”

Can I run it headless, in CI or on a cron job?

Yes. Create a workspace API key in SEOmatic, then add the server with --header "Authorization: Bearer smk_live_..." on that machine. Claude Code's headless mode can then run an SEO check on every deploy or every Monday, for example claude -p "Audit my site with SEOmatic" --allowedTools "mcp__seomatic__*". Approving fixes never runs headless: it always waits for a person.

Can it audit localhost?

No. SEOmatic fetches pages from the public internet, like a search engine does, so it cannot reach localhost or a private network. Use a publicly reachable preview deploy instead.

Is Claude Code the same as Claude or Claude Cowork?

No. Claude Code is the coding agent for your terminal and editor. Claude is the chat app, and Claude Cowork is the desktop agent for longer tasks across files and apps. All three connect to the same SEOmatic server, so one account works in each.

digi-business-uk

Each local area page used to take us half a day to create and optimize.


With SEOmatic, we can create hundreds of pages in the same time, which helps our clients make the best use of their budget.


It's transformed how we deliver scalable SEO solutions.

will-hawkins

Will Hawkins

Marketing Director, Digi-Business UK

Give Your Site an SEO Team

Agents read your Search Console data, do the work, and prove what actually moved. You decide what ships.

  • You decide what ships
  • Verified live
  • One-click rollback

14-Day Trial for $1, credited to your first payment.