
Claude SEO: how to do SEO work with Claude and Claude Code
Claude SEO done properly: what Claude Code can fix in your repo, what it cannot know without search data, how to connect it over MCP, and a worked session.
On this page
Claude SEO means using Claude, and most usefully Claude Code, to do search work on your own site: finding what to fix, making the change in the repo and checking whether it worked. Claude is very good at the editing half of that. It is blind on the other half, because it cannot see how people search or how your pages perform unless you connect the data.
This guide covers what to hand it, what it cannot know alone, how to connect search data over MCP, and what a real session looks like.
What Claude Code is good at in SEO work
Claude Code runs in your repository. It reads the pages, the templates and the config, so it can do the jobs that are tedious by hand:
- Titles and meta descriptions. Rewrite one page or every page from a template, in your voice, within a length limit. The title tags guide has the rules worth giving it.
- Internal links. Find every page that mentions a topic and link it to the page that should rank for it, with descriptive anchor text.
- Structured data. Add or repair JSON-LD in the template that generates a page type, using the fields the page already renders.
- Page structure. Move the answer to the top, add a missing section, merge two thin pages into one and redirect the old URL.
- Technical checks it can do by reading code. Canonical tags, robots.txt, sitemap generation, pages that render their main text only on the client.
- Consistency. One product name, one price, one description across the site.
All of that is real SEO work and Claude does it quickly. The question is which page to do it to.
What Claude cannot know without data
Ask Claude with nothing connected "which page should I fix first?" and it will answer. It will read the repo, pick pages that look thin and suggest keywords that sound right. None of that is based on what happens in search.
Three things are invisible from inside a repo:
- Demand. How many people search a phrase. A model has no lookup for this, so a volume it states from memory is a guess.
- Rankings. Which queries each page is shown for and at what position. This lives in Google Search Console and nowhere else.
- What already works. Which pages bring clicks and which bring signups. Rewriting a title on a page that earns most of your traffic, without knowing which queries it wins, is how a tidy pull request loses clicks.
The fix is not a better prompt. It is giving the agent the numbers.
Connect search data to Claude over MCP
MCP (Model Context Protocol) is how Claude calls outside tools. An MCP server for search data lets it query your numbers in the middle of a task and read the result itself.
AgentGrown is one such server: it syncs your Google Search Console and GA4 data, adds Google keyword data (search volume, US and English), and serves it all to the agent. Setup, from the docs:
- Sign in with Google at agentgrown.com and pick your sites from the Search Console properties it lists. The last 60 days arrive within a couple of minutes, then the full 16 months Google keeps.
- In your terminal:
claude mcp add --transport http agentgrown https://agentgrown.com/mcp
- In Claude Code, run
/mcp, pick agentgrown, sign in with Google in the browser tab it opens and choose the site.
Claude.ai, Cursor, Codex and other clients that support remote MCP servers use the same URL. For CI, create an API key and reference it from .mcp.json.
What the agent can then ask for: a check-in on the last 28 days, any breakdown of queries and pages from Search Console, organic sessions and key events by landing page from GA4, keyword volumes and ideas, the site's AI visibility report, and notes it saved in earlier sessions. What it still cannot get from this connection: a crawl of your site, backlink data, or the keywords another site ranks for. If you would rather wire Google's API yourself, the Search Console API guide covers that route, and Search Console over MCP explains the tradeoffs.
A worked Claude Code SEO session
Say the site is example.com and you start with one question.
Claude calls the check-in first, then asks Search Console for queries ranking just off the top with real impressions. It picks /pricing-guide and, before touching it, asks which queries that page already wins (example data):
# gsc_query · example.com · 2026-11-03 → 2026-11-30 · data through 2026-11-30
| query | clicks | impressions | ctr | position |
| ---------------------------- | -----: | ----------: | ---: | -------: |
| saas pricing models | 84 | 12,600 | 0.7% | 11.3 |
| usage based pricing examples | 126 | 4,200 | 3.0% | 4.8 |
| per seat pricing | 57 | 3,800 | 1.5% | 7.9 |
| pricing page examples | 12 | 2,400 | 0.5% | 14.6 |
Rows: 4 of 31 shown
Now it has something to reason from. "saas pricing models" is shown 12,600 times at position 11.3 and the page title does not contain the phrase. "usage based pricing examples" already earns clicks at position 4.8, so that phrase has to survive the edit.
From here the session goes:
- Claude searches "saas pricing models", reads the top three results and notes that each opens with a comparison table the page lacks.
- It proposes a new title that leads with the phrase and keeps "usage based", plus a comparison table near the top. You approve.
- It edits the page in the repo the way the repo builds pages, and opens a pull request with the evidence in the description.
- It saves a note: the page, the query, the change and the date.
Step 4 matters more than it looks. A new session starts with no memory of the last one. The note comes back in the next check-in, so four weeks later Claude can compare the page before and after and tell you whether it worked. That loop is the page-two wins use case from start to finish.
Use the built-in workflows
You do not have to write the steps yourself. Six workflows ship with the server as MCP prompts, and in Claude Code they are slash commands. Type /mcp__agentgrown__ and pick one:
| Workflow | What it does |
|---|---|
checkin |
What moved in the last 28 days, why, and three next actions |
striking-distance |
Queries ranking 5 to 20, why the top results win, the change that closes the gap |
decay |
Pages losing clicks and whether the cause is rankings, demand or click-through |
ai-visibility |
Where the site is missing from AI answers and what to write, rewrite or merge |
setup |
Interviews you about the business and saves the answers as site notes |
autopilot |
The scheduled run described below |
Run setup once, early. An agent that knows which pages make money, what to avoid and how you write makes better choices in every later session. For prompts to paste when a workflow is more than you need, see the SEO prompt library.
Run Claude as an SEO agent on a schedule
Claude Code can run headless, so the same loop can run without you. The autopilot workflow is written for that: it reads the check-in and the notes, collects candidates from page-two queries and decaying pages, picks the one change worth the most, checks why the top results win, makes the change and opens a pull request. It never merges. You review it like any other PR.
AgentGrown does not start your agent; scheduling happens where the agent runs. Each workflow is plain text at a public URL, so the command is short:
claude -p "$(curl -fsS https://agentgrown.com/workflows/autopilot.md) The site is example.com." \
--permission-mode acceptEdits \
--allowedTools "mcp__agentgrown,WebSearch,WebFetch,Bash(git *),Bash(gh pr create *)"
Put that in cron or a scheduled GitHub Actions job. The docs have a full workflow file, and SEO autopilot covers how to review what it opens and when to trust it with more.
Rules that keep an AI SEO agent honest
A few instructions are worth putting in your CLAUDE.md or your first message:
- Every number comes from a tool call. If it states a volume or a position, it should be able to point to the output.
- Check a page's queries before editing it. Keep the phrases that already bring clicks.
- One change per page per cycle. Otherwise the before and after tell you nothing.
- Never invent facts, prices or customers. Take them from the repo.
- Check demand before writing a new page, and never add a page that competes with one you already have. Keyword demand is the check.
- Record what shipped. A change with no note cannot be judged later.
Questions
Can Claude do SEO?
Claude can do the editing side well: titles, headings, internal links, structured data and rewrites in your repo. It cannot know search demand, your rankings or which pages bring clicks unless you connect that data, for example over MCP.
What is the difference between using Claude and Claude Code for SEO?
Claude in the chat app works on text you paste in. Claude Code runs in your repository, so it can read every page, make the change across files and open a pull request. Both can use the same MCP data connection.
How do I connect Search Console to Claude Code?
Add an MCP server that serves your Search Console data. With AgentGrown the command is claude mcp add --transport http agentgrown https://agentgrown.com/mcp, then run /mcp in Claude Code and sign in with Google.
Can Claude Code run SEO on a schedule?
Yes. Claude Code can run headless from cron or a scheduled CI job with a prompt. AgentGrown's autopilot workflow is written for that: it picks one change from the data, makes it and opens a pull request for you to review.
Will Claude make up keyword volumes?
Without a data source it has no way to look them up, so any volume or ranking it states is an estimate from training data. Connect real Google keyword data and ask it to cite the tool output for every number.
Keep going. SEO autopilot
Use caseSEO automation: one reviewed change per run, as a pull requestSEO automation that is safe to run: a scheduled agent reads your search data, makes the one change worth the most and opens a pull request for you to review.
ComparisonA Semrush alternative for teams that ship with coding agentsLooking for a Semrush alternative? What Semrush costs and includes, what AgentGrown does instead, where Semrush is the better pick, and three other options.
ComparisonAn Ahrefs alternative for sites built with coding agentsLooking for an Ahrefs alternative? What Ahrefs costs and includes, what AgentGrown does instead, where Ahrefs is the better pick, and three other options.