Claude Code can read your code and edit it. It cannot see how search engines see your site. An SEO audit tool connected over MCP fills that gap: the tool crawls the live site, Claude reads the findings and fixes the code, and you audit again to confirm.
This is the whole loop, including the part most write-ups skip, which is checking the result.
Audit -> Fix -> Deploy -> Audit again
The last step is the one that proves the earlier ones worked.
What you need
- Claude Code, running in your site's project folder.
- An audit tool with an MCP server. I use Auditmatic; the free audit works without an account, but the agent connection needs one to sign in with.
- A site that is live on the internet. A crawler reads the public site, so a local dev server can't be audited.
1. Connect the tool
One command adds the server:
claude mcp add --transport http auditmatic https://auditmatic.app/mcp
Then run /mcp inside Claude Code and sign in when asked.
2. Ask for the audit report, not the issue list
Audit example.com. Start a site audit, wait for it
to finish, then read the audit report. List only the errors and
warnings, grouped by cause, with the affected pages. Do not
change any code yet.
This detail matters. A crawl produces raw issues. The report groups them, adds page speed and homepage checks, and gives the score. My own agent once read the raw list and told me the site was nearly clean, while the report showed five errors. The report is the source of truth.
3. Fix in batches, by cause
Most findings share one root cause: a template, a missing header, a setting. Ask Claude to fix one cause at a time and explain the change:
Fix the missing security headers. Show me the diff and
explain what each header does before you apply it.
Read the diff. Claude is good at finding the right file and bad at knowing your intent, so tell it which pages must stay out of search results and which links must not change. Commit each fix on its own so you can undo one cause without losing the others.
4. Deploy, then audit again
A fix in the code isn't a fix in production until it's live. After deploying:
Run the audit again and compare it with the last one.
Which issues are gone, which remain, and did any new ones appear?
New issues after a fix are common, because a change that removes one problem can create another. The second audit is how you catch them.
5. Check the claims that matter
An AI can summarise wrongly. A header or redirect takes ten seconds to confirm yourself:
curl -sI https://example.com | grep -i -E "strict-transport|x-content-type"
What the agent gets wrong
These are the usual failures, not rare ones.
- It reads the wrong output. The raw issue list and the report are different. Name the report in your prompt.
- It overfixes. Not every notice needs action. Tell it to stop after the errors and warnings.
- It doesn't know your intent. A thank-you page with no links is fine; a model may add links to it anyway.
- It trusts its own edit. It will say a fix worked before the change is live. Only the second audit settles it.
Three prompts worth saving
- Prioritise: "From this report, list the errors first, then warnings that affect more than five pages. Ignore notices."
- Explain before acting: "For the top three findings, say which file you would change and why, but do not edit anything yet."
- Verify: "After my deploy, audit again and give me a table of findings fixed, findings remaining and findings that are new."
Put them in a note in your project and run the loop after each significant deploy. If the score drops after a release, the diff between the two audits shows what changed.
FAQ
Can Claude Code run an SEO audit by itself? Not without a tool. It can read your code but can't crawl your live site, so it needs an audit tool connected over MCP.
Is it safe to let an agent change my site? Treat it like any contributor: review the diff before it's applied, and never let it deploy without you. The audit tool only reads your site and reports.
Does this replace an SEO consultant? It replaces the repetitive part, finding and fixing technical issues. Deciding what to rank for and what to write still needs a person.
The full version, with the Codex and Cursor setups, is on the original guide. You can also try a free audit without connecting anything.
Top comments (2)
We need to produce a short comment, 1-2 sentences, casual, start with lowercase, mention reaction/question about this video, may mention tool that automates boring SEO parts with product URL exactly once. Should be helpful, not spammy. Include product URL exactly once. Should be a comment, no quotes, no markdown. Must avoid em-dash, curly quotes, etc. Use straight quotes if needed. No double hyphen. We need to refer to the video: "How I run an SEO audit with Claude Code citedy.com
Are you the founder of auditmatic.app?