Claude SEO: audits and briefs that run as code
Claude SEO has two meanings: a chat window and an agent. Build the agent: an audit skill, a read-only connector, a headless run and a review gate.
Lam Hoang · Systems and engineering

A chat window forgets the audit when you close the tab. An agent keeps the instructions in a file, pulls live data through a connector, runs from a script and works inside a permission list. Most pages ranking for claude seo describe the chat window. This piece builds the agent version for one job: an SEO audit and a content brief that run on a schedule and cannot touch a client's live site.
The build has four parts: a skill file, a read-only connector, a headless run and a review gate. Each part has a job and a limit.
What does Claude SEO mean, and what is the agent version?
Claude SEO as an agent is a saved skill, live data connectors and a scripted run, with permissions set before the run starts. The chat version is a prompt you retype.
A skill is a folder with a SKILL.md file of instructions. The Claude Code docs open with a plain definition: "Skills extend what Claude can do." Claude loads the skill when it is relevant, or you call it by name.
A connector is an MCP server. MCP, the Model Context Protocol, is the standard way Claude calls outside tools and data sources. A headless run is Claude Code started from a script with no one at the keyboard.
The chat version pastes its instructions and data in each time, so results drift between runs. The agent version keeps one skill file in version control, reads from a connector, runs from a script, denies every tool not on its list, and returns JSON that matches a schema.
An open-source example shows the shape. The claude-seo plugin on GitHub describes itself this way: "Claude SEO is a free SEO plugin for Claude Code." It ships audit commands as skills, takes optional Google API keys, and states its own limit: without keys, Core Web Vitals are lab estimates. Read the code before installing anything like it.
The agent is not a strategist. StudioHawk, an agency, in its Claude SEO guide , puts the division of labor in two sentences: "Claude is not a strategy consultant. It is a workflow accelerator." That matches what the other AI SEO tools do: they run one step of a job and hand the rest back to a person.
How do you write an SEO audit skill?
An SEO audit skill is a short instruction file with a narrow description, a read-only tool list and manual-only invocation. Keep it under 20 lines.
The skills docs list the frontmatter fields. Four matter here. description tells Claude when the skill applies. disable-model-invocation: true stops Claude from loading the skill by itself, so it runs only when called with /seo-audit. allowed-tools names tools that run without a permission prompt. disallowed-tools removes tools from the session while the skill is active.
Use both tool fields, and know what each does. allowed-tools pre-approves the tools you list but blocks nothing. disallowed-tools removes tools while the skill is active. Both clear when you send your next message. In a single -p run that limit hardly matters. For a block that lasts across skills and prompts, add deny rules in your permission settings.
A working skill for one client, saved as .claude/skills/seo-audit/SKILL.md:
---
name: seo-audit
description: Audits one URL from saved crawl data and writes findings. Manual only.
disable-model-invocation: true
allowed-tools: Read Grep
disallowed-tools: Edit Write Bash
---
Audit the URL given as the argument. Read only the files in ./crawl.
Check: title length, H1 count, canonical, meta robots, internal links in,
status code, schema types present.
For each finding return: url, issue, evidence (file and line), severity
(high, medium, low), proposed fix as text.
Never propose a fix you cannot tie to a file in ./crawl.
If the crawl file is missing, return one finding: "no crawl data".
Two choices carry the design. The skill reads saved crawl files, so it never fetches a live page itself. And every finding has to point at evidence, which makes a wrong finding easy to catch.
How do you connect live data without giving Claude write access?
Connect read-only sources in a fixed order and check each server before it gets near a client account.
The order comes from RightBlogger's Claude SEO guide , a vendor page that compares its own product: "Connect your own Search Console data first, then add keyword data, and only then an audit skill." Claude has no view of your rankings or volumes until a connector supplies them.
Search Console is the first source, and Google does not publish a connector for it. Enrich Labs, another vendor, wrote in its Search Console MCP guide in October 2026: "Google does not ship an official Search Console MCP server". Every option is third-party code calling the public API. That makes vetting your job.
Prompt injection is text planted in a page or tool result that the model then reads and follows as if it were an instruction. The MCP docs say it directly: "Verify you trust each server before connecting it. Servers that fetch external content can expose you to prompt injection risk."
A read-only connector exists. SE Ranking's three-workflow guide says "SE Ranking’s MCP is read-only on your account data." Treat that as the vendor's claim and confirm it in the tool list.
Five questions to ask of any connector before installing it:
- Who maintains the code, and when was the last commit?
- Does the tool list include any write call, such as submitting a sitemap or editing a property?
- Does the credential have write scope? Create it with read scope only.
- Does the server fetch external pages? If so, its output is untrusted input.
- Can you list the exact tool names to put in the allow list, instead of allowing the whole server?
A connector that fails question 2 or 3 does not go on the audit agent.
How do you run an audit or brief headless, on a schedule?
Run claude -p with --bare, a tool allow list, a permission mode that denies prompts, and a JSON schema for the result.
The headless docs cover each flag. -p runs Claude Code without a person present. --bare skips auto-discovery of hooks, skills, plugins, MCP servers and CLAUDE.md, so the same run gives the same result on every machine. Without --bare, a -p session shows no workspace trust dialog and still runs the hooks in a project's settings and connects the servers in its .mcp.json. That is the wrong default for a client's folder.
Bare mode needs ANTHROPIC_API_KEY, since it never reads your subscription login. It also loads skills only from a folder passed with --add-dir, so keep the audit kit in its own directory and pass the connector with --mcp-config.
A weekly script for five URLs:
n=0
for url in $(cat urls.txt); do
n=$((n+1))
claude --bare -p "/seo-audit $url" \
--add-dir ./audit-kit \
--mcp-config ./gsc-readonly.json \
--allowedTools "Read Grep mcp__gsc__<read_tool>" \
--permission-mode dontAsk \
--permission-prompts none \
--output-format json \
--json-schema "$(cat audit.schema.json)" \
> "out/week-$n.json"
done
jq -s '[.[].total_cost_usd] | add' out/week-*.json
Replace <read_tool> with the exact name of each read-only tool your connector lists. Under dontAsk, any tool not on the allow list is denied, so the connector is unusable until you name its tools.
What each line buys:
--permission-mode dontAskdenies every call that would otherwise prompt, which the docs call useful for locked-down runs.--permission-prompts nonetells Claude nobody can approve a request, so it does not retry. That flag needs v2.1.259 or later.--json-schemareturns the result in astructured_outputfield. A run that ends without valid output has no such field, so the script must check it exists before using it.total_cost_usdis in the JSON, so the script sums spend per run. The docs call it a client-side estimate that can differ from the bill.
Unattended behavior is still moving. In November 2026, the Releasebot tracker listed a change so that scheduled tasks and /loop ask before running a skill that declares allowed-tools or hooks. It is a secondary tracker, so check Anthropic's own notes. The practical rule: pin the Claude Code version and re-run the five-URL test after every upgrade.
What keeps it safe on a client's site?
Three controls keep it safe: no write credentials on the agent, a denied-by-default tool list, and a person who approves every change.
The security docs set the baseline: "Claude Code starts with read-only permissions." In that mode, edits, tests and commands need approval. The working directory boundary prompts before file tools reach outside the starting folder. It is a prompt, not a wall: the docs add that an approved Bash command can still write anywhere the user account can. Sandboxing is the operating-system level fix.
Page content is the other risk. The audit reads a client's pages, and anyone who can edit a page can plant text in it. The connector warning above applies to every page the agent reads. Never pipe raw page HTML into a run that holds credentials. Pass saved crawl files, and give the run nothing it could misuse if it obeyed planted text.
The output is a checklist, not a change. Ahrefs, in its list of 35 Claude Code use cases , states the purpose: "The goal is to give someone a clear list of changes worth checking, not to let Claude edit the site on its own."
The review gate, as a checklist:
- A named reviewer opens each week's JSON and marks every finding approve, reject or defer.
- Approved fixes are applied by a person in the CMS, with a change log that records old value, new value and date, so each can be reversed.
- The agent holds no CMS, hosting or Search Console write credentials.
- Rejected findings go back into the skill as a rule, so the same false positive stops recurring.
The same split shows up in managed SEO services: the system proposes, a person signs. Which jobs belong in a scheduled run at all is the subject of the guide to what SEO automation is, and what to automate.
What to do this week
- Write one audit skill like the one above for one site. Set
disable-model-invocation: trueand listEdit Write Bashunderdisallowed-tools. - Export a crawl to
./crawl, then connect Search Console through a connector that passes all five vetting questions. - Run the script on five URLs with
--bareand--json-schema. Check thatstructured_outputis present in every file. - Have one person review the five JSON files and approve or reject each finding in writing.
- Record the summed
total_cost_usdand the Claude Code version. Re-run the test after the next upgrade.
FAQ
Can Claude audit a site on its own?
It can run an audit unattended, and it should not apply the fixes. The headless docs describe how to run Claude Code from a script with a locked tool list, and Ahrefs says the goal is a list of changes for someone to check. Treat the JSON as a proposal.
Is there an official Search Console connector for Claude?
Not as of October 2026. Enrich Labs' guide says Google does not ship an official Search Console MCP server, so every option is third-party code calling the public API. Check its tool list for write calls and give it a read-only credential.
Do I need Claude Code, or will the chat app do?
The chat app is enough for a one-off review of data you paste in. Claude Code is what you need for a repeatable run, because the skills docs and headless docs describe skill files, tool allow lists and scripted runs there. StudioHawk's guide makes the scheduling point: once Skills need to run on a schedule or pull data from tools like Search Console, you need Claude Code.
Sources you can check.
The references behind this article, with their publication and checked dates.
- AgriciDaniel/claude-seo: Universal SEO skill for Claude CodeGitHub (AgriciDaniel/claude-seo)
Published: undatedChecked:
- Claude SEO: How to Use Claude for SEO (and the 6 Tools Worth Connecting)RightBlogger
Published: Checked:
Where this fits
Managed SEO services led by Rob Garner. Improve existing pages, investigate technical issues and review progress with scope and approval before release.
Choose a Free Search Check to identify a useful first priority. See what the Free Search Check includes
More on SEO automation
All SEO automation notes


AI SEO tools: what they automate and what they miss
· 9 min read


