- Claude Code is Anthropic's agentic coding tool. For SEO it works on files and connected data: audits, schema, bulk on-page fixes, keyword spreadsheets and report prep.
- Start with one client folder, git, a short CLAUDE.md and read-only data from the ZeusSEO MCP connector.
- Add parallel agents later, with one lead session that plans the work and filters what reaches you.
Claude Code for SEO means using an AI agent that reads your site's files, edits them, runs commands and, through an MCP connector, reads your Search Console, Analytics and Google Business Profile data. Start small: one folder under git, a rule that you read every diff, and read-only data access. Once that loop is reliable, add parallel agents and then several sessions with a lead.
Some people call this "vibe coding SEO" or "vibe SEO": describe the outcome in plain words and let the AI write the code. It is an informal label, not an Anthropic or Google term, and it is only safe with the checks below. Related labels include "Claude SEO", "Claude Code SEO" and "MCP SEO". To start now, connect the ZeusSEO connector, which is included on every plan: the Google Business Profile MCP guide has the setup, and the MCP section below adds the Claude Code commands. If you would rather read about a ready-made expert than build a workflow, there is also Athena, the ZeusSEO AI SEO expert (in early access).
- What Claude Code is, and what it can do for SEO
- Recommended and suggested tools
- Git and local folders: your undo button
- Five SEO workflows to start with
- MCP: connect ZeusSEO to Claude Code
- API usage: keys, costs and scripts
- Permissions and hooks: set the guardrails once
- AI agents for SEO: subagents in parallel
- One agent acting as lead
- Advanced: several sessions, one lead, you as the last gate
- Safe practice and what Google says about AI content
- A sensible order to adopt all of this
What Claude Code is, and what it can do for SEO
Anthropic describes Claude Code as an agentic coding tool that reads your codebase, edits files, runs commands and integrates with your development tools. It runs in a terminal, an IDE, a desktop app and a browser, and most surfaces need a Claude subscription or an Anthropic Console account.
For SEO, "codebase" means any folder of text: templates, markdown posts, schema snippets, robots.txt, redirect maps and CSV exports. "SEO with Claude" often means chatting in a window; Claude Code works inside a folder on your machine, so it can open files, change them and run checks. It has no view of Google until you add one, as exports or through a connector.
Recommended and suggested tools
Install from the official overview, as a terminal tool, the VS Code extension or the desktop app. Every surface uses the same engine, so your CLAUDE.md files, settings and MCP servers carry over.
| Tool | Use it for | Note |
|---|---|---|
| Claude Code | Reading, editing and checking files | Terminal, VS Code, JetBrains, desktop or browser |
| git | Checkpoints, branches, diffs | Claude Code can stage, commit and create branches |
| ZeusSEO MCP connector | Search Console, Analytics, Google Business Profile, crawl and rank data | Full tool reference |
| Argus and Kronos | Crawl issues and a free on-page audit | See Argus, read through the connector |
Run /init to draft a CLAUDE.md, then cut it down. The memory guide says to aim for under 200 lines, so keep only rules Claude cannot guess.
A starter CLAUDE.md for a client folder might say:
- Which folders hold templates, content and exports.
- Never edit robots.txt or the redirect map without asking.
- Never invent facts, prices, reviews or statistics.
- Propose Google Business Profile changes; never publish them.
Git and local folders: your undo button
Every change should be a diff you can read and undo. Git does that; Claude Code's own checkpoints do not replace it.
Give each client one folder for site files, exports and reports, and start Claude Code there. In Manual mode it asks before reading or writing outside the folder where it started, as the security page explains.
- Use git, even for exports. No repo for a CMS site? Keep drafts and CSVs in a folder and run
git init. - One branch per task, and commit before every run.
- Read
git diffbefore you accept. Claude Code can commit for you, but the review is yours.
The checkpointing docs say /rewind restores edits made through Claude's file tools, not changes made by shell commands, and that checkpoints are not a replacement for version control. Commit before any bulk run.
Five SEO workflows to start with
Pick jobs where the output is text you can diff and the success test is a check you can run.
Use one repeatable AI SEO workflow for all five Claude Code SEO jobs: scope, pull data, plan, change files on a branch, run a check, read the diff, commit. Anthropic's best practices recommend planning before coding and giving Claude a check it can run, so it can iterate until the check passes.
1. Technical audit of a site's files
Ask Claude to read templates, robots.txt and sitemap config in plan mode and list findings by file and line. Google says robots.txt is not a way to keep a page out of Google, so flag any Disallow used for that. Our technical SEO audit guide covers the live side.
2. Writing and checking schema
Google's structured data introduction recommends JSON-LD in most cases and says markup must describe content users can see. Have Claude draft it per template, then validate it yourself.
3. Bulk on-page fixes in a repo
Give Claude a CSV of URL and new title and let it edit the matching files. Test on a handful first, then use /batch, which splits a change across 5 to 30 subagents that each work in their own worktree.
4. Keyword-cluster spreadsheets
Export queries to a CSV and ask Claude to write and run a script that groups them by topic and proposes a page for each group.
5. Report prep
Pull numbers through the connector and ask for a short narrative per client. See our SEO ranking report guide for what a client report should hold.
| Workflow | Check before you accept |
|---|---|
| Technical audit | Every finding names a file and line |
| Schema | Rich Results Test shows no errors |
| Bulk on-page | Diff of 5 files first; no unrelated edits |
| Keyword clusters | 10 clusters spot-checked by hand |
| Report prep | Each number traced to a source |
MCP: connect ZeusSEO to Claude Code
One connector URL gives Claude Code your Search Console, Analytics, Google Business Profile, crawl and rank data. Start with the read tools.
MCP, the Model Context Protocol, is an open standard for connecting AI tools to external data sources, and Claude Code supports remote MCP servers over HTTP. MCP for SEO means your agent reads live client data instead of a pasted export. The ZeusSEO connector has one URL and more than 100 tools.
- Add the server in a terminal, not inside a session:
- Check it.
claude mcp listshows "Needs authentication" until you sign in, as the MCP quickstart describes. - Sign in. Start
claude, type/mcp, pickzeuseoand choose Authenticate. Your browser opens to the sign-in step described in the Google Business Profile MCP guide.
Add --scope user to use it in every project. If you added the connector in Claude and use that same account for Claude Code, the MCP docs say Claude connectors load automatically, unless an API key is your login. Our sign-in is a standard OAuth flow with PKCE that accepts Claude Code's local callback address.
| SEO job | Connector tools | Mode |
|---|---|---|
| Queries and indexing | gsc_top_queries (position filters), gsc_underperforming_pages, gsc_inspect_url, gsc_sitemap_diff | Read-only; never requests indexing |
| Crawl and audit | argus_crawl_status, seo_list_page_issues, kronos_run_audit | Reads cached crawl; Kronos is free |
| Traffic | ga4_traffic_sources, ga4_top_pages | Read |
| Keywords and ranks | metis_list_keywords, nike_rank_overview | Read; live research is billed |
| Google Business Profile | gbp_list_locations, gbp_list_reviews; gbp_publish_post, gbp_reply_review | Writes need your confirmation |
| Reports and tasks | reports_list_saved, daedalus_generate_report, hermes_create_task | Generating is a write |
Reading your own data costs no Staters, ZeusSEO's prepaid usage credits. A few named tools that call our paid providers or AI, such as keyword research and SERP competitor lookups, spend them, and the assistant is told to warn you first. Its instructions also say to confirm content and targets before any publish, edit, delete or reply, and a read-only seat is refused on writes. A free trial has a fair-use cap of 100 API calls. See Staters and AI credits, pricing, and the Search Console and Analytics MCP guides.
Anthropic does not audit MCP servers, and its docs warn that servers fetching external content can expose you to prompt injection. Review text, page content and search queries are written by strangers, so treat what a tool returns as data, never as instructions.
API usage: keys, costs and scripts
Two kinds of API sit around Claude Code: how Claude itself is billed, and the data APIs your scripts call. Keep keys out of prompts and out of git.
You sign in with a Claude subscription or an Anthropic Console account. The costs page says the dollar figure in /usage is a local estimate and that subscribers have usage included in their plan.
For scripts, claude -p runs a prompt without an interactive session and accepts piped input, a pattern from the overview:
In --bare mode Claude Code does not use your subscription login, so set ANTHROPIC_API_KEY, as the programmatic usage page explains. If Claude writes scripts that call a data API, keep the key in an environment variable and add the deny rule Read(./.env). For Google data, the connector skips the application wait of your own API project; see Google API vs MCP.
The permissions docs say Read deny rules cover Claude's file tools and recognized file commands, not a script that opens files itself. For OS-level enforcement, turn on the sandbox. ZeusSEO can also issue a static access key; prefer OAuth, and never commit a key.
Permissions and hooks: set the guardrails once
Instructions in a prompt or CLAUDE.md shape what Claude tries, but permission rules are enforced by Claude Code, not by the model. Rules are checked in order: deny, then ask, then allow. The permission modes below set how often Claude asks. With Claude Code 2.1.283 or later, auto mode is the built-in starting mode for interactive terminal and VS Code sessions, so for client work press Shift+Tab to reach Manual mode, or start with claude --permission-mode default.
| Permission mode | What it does | SEO use |
|---|---|---|
Manual (default) | Asks before most edits, shell commands and network access | Client files, first weeks |
| Plan | Explores and plans; does not edit source | Audits |
| acceptEdits | Auto-approves file edits | Bulk fixes, on a branch |
| auto | A classifier model reviews actions instead of you | Routine, well-checked work; not client files |
| dontAsk | Denies anything that would prompt | Unattended runs |
| bypassPermissions | Runs everything | Isolated containers only |
- Allow the read tools:
mcp__zeuseo__gsc_*,mcp__zeuseo__ga4_*andmcp__zeuseo__argus_*. Thezeuseoprefix is the server name you chose when you added it. - Keep write tools out of allow rules, so Manual mode asks every time. In auto mode a classifier reviews the call instead, so add an ask rule in
/permissionsif you want a prompt regardless. - Deny secrets:
Read(./.env). - Hard blocks: a PreToolUse hook that exits with code 2 stops edits to protected files. The hooks guide says hooks are deterministic, unlike CLAUDE.md.
When you paste the same checklist twice, make it a skill: a folder in .claude/skills/ holding a SKILL.md, run with /skill-name. The skills docs say its body loads only when used.
AI agents for SEO: subagents in parallel
Parallel agents help when jobs are independent. They multiply tokens, so earn them.
A subagent runs in its own context window with a custom prompt, specific tools and independent permissions, then returns a summary. Define one as a markdown file in .claude/agents/, such as a schema reviewer limited to Read, Grep and Glob so it cannot edit. Anthropic lists several ways to run agents in parallel, including:
| Approach | Who coordinates | Note |
|---|---|---|
| Subagents | Claude, inside one session | Report back to the session that started them |
Agent view (claude agents) | You dispatch sessions | Research preview |
| Agent teams | A lead session | Experimental, off by default |
| Dynamic workflows | A script | Dozens to hundreds of agents per run |
"More agents always finish faster." Anthropic says agent teams add coordination overhead and use significantly more tokens, and that sequential or same-file work suits one session or subagents better. Start with 3 to 5, not 30.
One agent acting as lead
The overview describes a lead agent that coordinates the work, assigns subtasks and merges results. Subagents report only to the conversation that spawned them, so that conversation is your single point of contact.
- Brief the lead: "Use read-only subagents to audit /product, /locations and /blog in parallel. Report by file and line."
- Merge and edit: the lead removes duplicates, ranks by severity and is the only one that edits, so workers cannot collide.
- Review: run a fresh reviewer, such as the bundled
/code-reviewskill, on the diff.
Advanced: several sessions, one lead, you as the last gate
When one session is not enough, run several, but keep one lead as the only session that talks to you.
This is a working pattern built from documented features, not a built-in mode. The docs describe a built-in lead only for agent teams, which are experimental and off by default; there, teammate permission prompts surface in the lead session, at a higher token cost.
- Same logic: project CLAUDE.md files and permission settings can be shared through version control.
- Separate files:
claude --worktree schema-fixesstarts a session on its own branch under.claude/worktrees/; the worktrees docs suggest adding that folder to.gitignore. - Messages: cross-session messaging lets Claude list your other sessions and send them plain text. It needs Claude Code 2.1.224 or later (2.1.234 on native Windows).
| Role | How it starts | May do | Hands back |
|---|---|---|---|
| Lead | The one session you talk to, --name lead | Plan, message workers, review diffs | A short decision list |
| Worker | Own worktree and branch | Edit only its files; read tools | A commit and a summary |
| You | The lead's window | Approve, reject, merge | Nothing else |
- Commit the rules and split by files: every session starts the same, and no two sessions share a file.
- Name sessions with
--nameor/rename; check them with/list-agents, or mention one with@name. - The lead assigns by message; workers commit and message a summary back.
- The lead reviews each diff, runs the checks and rejects out-of-scope edits. You review its short list.
A message from another session can never approve a permission prompt for you or change configuration. A worker's permission prompts still appear in its own window, so pre-approve its read tools and keep publishing in the lead's window.
Safe practice and what Google says about AI content
Review diffs, commit often, restrict permissions, never paste secrets, and publish only what helps people.
- Read every diff. Anthropic's security page says you are responsible for reviewing proposed code and commands.
- Least privilege, no secrets: allow reads, ask for writes, and never put keys or passwords in prompts, CLAUDE.md or committed config.
"Google penalizes anything written by AI." Google's guidance on generative AI content does not ban it. It says using AI to generate many pages without adding value may violate the scaled content abuse policy, and asks you to fact-check content and review titles, descriptions, structured data and alt text.
Google's spam policies treat scaled content abuse as many pages made mainly to manipulate rankings, however they are created. Thousands of near-duplicate pages is the risk of vibe SEO at scale. For content that answers questions well, see answer engine optimization.
A sensible order to adopt all of this
- Install Claude Code, open one client folder and run
git initif needed. - Write a short CLAUDE.md, deny
Read(./.env)and switch to Manual mode for client files. - Run a read-only audit in plan mode.
- Connect ZeusSEO and allow only the read tools.
- Make one bulk change on a branch, with a check.
- Add a read-only reviewer subagent, then a second session in its own worktree, then a named lead.
Managing many locations? The same approach fits our guides on multiple locations, profile optimization and review replies. Your next step is the Google Business Profile MCP guide, which connects the ZeusSEO connector. If you would rather read about a ready-made expert than build your own, there is also Athena (in early access).
- Claude Code works on files and data, so give it a folder, git and a data source.
- Start read-only; make every write a reviewed diff or a confirmed action.
- Use subagents for independent jobs and one lead for coordination.
- Several sessions are a pattern you build; agent teams are the experimental built-in.
Facts about Claude Code come from Anthropic's official documentation and facts about Google from Google's documentation, all linked inline and checked on 2026-10-20. ZeusSEO product details were checked against the product itself. The guide was drafted with AI assistance and reviewed by the ZeusSEO team; see our editorial standards.
