Claude Code for SEO: A Real Session and Two Months of Results
How to use Claude Code for SEO with real search data: the exact setup, which skill to run for each job, a full session on our own site with every tool call, and two months of Search Console results.
To use Claude Code for SEO, connect it to real search data through an MCP server, add skills that tell it how to run each job, and let it work in your site's repository. Claude Code on its own can read your code and fetch pages. It cannot see your Search Console, search volumes or who ranks for a query until a tool gives it that data. With the data connected, it can diagnose why a site gets no traffic, pick the next keyword, and fix titles, sitemaps and structured data in the code, then hand you a diff to review.
That combination is what people mean by an SEO agent: an AI client such as Claude Code, Cursor or Codex, connected to tools that read Search Console, live Google results, keyword metrics, competitor footprints and backlinks. You give it a goal and limits, and it decides which tools to call, reads the results, and keeps going until it has an answer or runs into one of the limits. It does research and diagnosis, and it edits code if you let it. It does not publish, and it does not rank you.
Below: the setup, a real session run on 2026-09-25 against our own site, harborrank.com, what the agent could not do, and what happened next, since the same setup has run our SEO ever since. Every tool named in the session is one the agent called, and every number is what came back.
Setup in Claude Code
You need Claude Code and a HarborRank account. Start free if you don't have one yet.
1. Install the plugin. Inside Claude Code:
/plugin marketplace add harborrank/harborrank-skills
/plugin install harborrank@harborrankThe plugin registers the HarborRank MCP server, which is where the data tools come from, and adds 18 skills: saved workflows the agent follows, one per job.
2. Sign in. Run /mcp, choose harborrank, and approve the sign-in in your browser. Authentication is OAuth, so there is no API key to paste.
3. Check the connection. Ask: "Which HarborRank projects can you see?" The agent should call whoami and list_projects and answer with your project names. Neither call uses credits.
4. Connect Search Console. Run /harborrank:seo-project-setup. It records your goals and positioning, matches your domain to a project (or sets one up), and walks you through connecting Search Console on the project's Integrations page in the app. HarborRank asks Google for read-only access.
To update the skills later, run /plugin marketplace update harborrank.
If you only want the data tools, without the skills, add the server with one shell command:
claude mcp add --transport http --scope user harborrank https://app.harborrank.com/mcp--scope user makes it available in every repository; use --scope local to keep it to the current one. Then run /mcp, pick harborrank and sign in. The MCP setup guide covers Claude Desktop, ChatGPT, Cursor and Codex too.
Which command for which job
Skills run as /harborrank:<name>, or as /<name> when no other installed skill uses the name. Each takes a sentence after it, for example /harborrank:keyword-research ev charger installation in Worcester, MA.
| Job | Command | What the agent does |
|---|---|---|
| First run on a new site | /harborrank:seo-project-setup | Sets up the project, goals and Search Console, then picks the first workflow |
| Not sure where to start | /harborrank:seo-coach | Asks what you're working on and recommends one next step |
| Technical audit or a traffic drop | /harborrank:seo-audit | Crawls the site, checks what Google indexed, compares Search Console periods, ranks the fixes |
| What to write next | /harborrank:keyword-research | Starts from your striking-distance queries, adds volume and difficulty, checks the results page |
| Which page targets which keyword | /harborrank:keyword-clustering | Groups keywords by what Google shows and maps each group to one page |
| Brief for one page | /harborrank:content-brief | Reads the live results page and writes intent, questions, outline and links |
| Structured data | /harborrank:schema-markup | Audits JSON-LD per page type and writes markup that matches the visible content |
| Two pages splitting a query | /harborrank:keyword-cannibalization | Finds the splits in Search Console and gives one fix for each |
| Who wins your market | /harborrank:competitive-landscape | Maps the domains, formats and directories that rank across your keywords |
| One competitor | /harborrank:competitor-analysis | Their ranking keywords and pages against your Search Console data |
| Links | /harborrank:link-prospecting | Finds pages that should link to yours, with contact paths and outreach drafts |
| AI answers | /harborrank:ai-search-visibility | AI referral traffic and where AI Overviews cite competitors instead of you |
| Local business | /harborrank:local-seo | Maps positions from a grid of points across the service area, and why the leaders win |
| Monthly report | /harborrank:client-seo-report | A one-page report from Search Console, Analytics and the rank tracker, with a share link |
The skills page shows a worked example, and the skills docs have each one's steps.
The session
The prompt was short: the site is not getting traffic, find out why, and build a content plan from the project data. In September there were eight skills, so the agent worked from the tools directly.
1. Search Console performance. get_search_console_performance, grouped by query and page, last 28 days.
{ "rowCount": 0, "rows": [] }Zero impressions. That ruled out "ranking badly" and pointed at "not ranking at all".
2. URL inspection. inspect_urls, ten URLs per call, across 19 URLs.
https://harborrank.com/ Submitted and indexed
https://harborrank.com/pricing URL is unknown to Google
https://harborrank.com/features/* URL is unknown to Google
https://harborrank.com/blogs/* URL is unknown to GoogleEighteen of nineteen had never been fetched. The agent then checked the live sitemap and robots.txt with plain HTTP requests and found both fine, so it moved on to whether the pages deserved a crawl.
3. Saved keywords. list_saved_keywords returned 69 keywords the project already held, tagged into five clusters: AI visibility, agencies, local and small business, MCP and developers, and alternatives. Volumes ran from 20 to 27,100 a month and difficulty from 0 to 60. This step costs nothing; the metrics were saved from earlier research.
4. Competitors across the whole set. find_serp_competitors over 40 of those keywords, our own domain excluded.
Reddit was in the top eight for 17 of them. GitHub was number one for every term containing "Claude" or "MCP". YouTube appeared on 29. Then the vendors: SE Ranking on 12, BrightLocal on 7, SEOptimer on 11. The agent's read: repositories win the developer terms, and tools with a free entry point win the local terms.
5. Individual SERPs. get_serp_results for 11 queries, batched. Two examples:
- "ai visibility checker" (320 searches a month): all twenty organic results are free checkers, including several from small sites with little authority. To rank there, a page needs a working checker on it.
- "seo agent" (27,100 a month): definitions from vendors and two Reddit threads asking whether any of it works. Nobody showed a session.
6. A competitor's footprint. get_domain_overview on one domain in our space: 166 organic keywords, about 4,400 monthly visits. get_ranked_keywords on the same domain: 85 of the 166 keywords land on a single free-tool page. Its blog and documentation account for almost none of the traffic.
7. Acting on it. With the diagnosis in hand, the agent edited the site's code: a noindex list for pages that were still template copies, a sitemap that drops those pages and stamps every remaining URL with a git lastmod, and a redirect from www to the apex domain. It ran the type check and the build, confirmed the sitemap went from 33 URLs to 16, and committed. Then it drafted the content plan: which cluster each rewrite targets, which pages to drop, and the one free tool worth building first.
Elapsed time, including the human reading along: about an hour. The SERP calls cost roughly 30 to 60 credits per keyword that day (the rate the tool listed in September; it now fetches 20 results and costs about 5), and the whole session used a small fraction of a Basic plan's 15,000 monthly credits.
Run the same diagnosis on your site
The session above takes four prompts in Claude Code. With the plugin installed and Search Console connected:
/harborrank:seo-auditwith "my site gets little search traffic, find out why". It reads Search Console, inspects the URLs that matter, and crawls the site.- "Of the pages Google hasn't indexed, which ones deserve a crawl, and what would make the others worth one?"
/harborrank:keyword-researchwith your topic. It starts from the queries where you already sit between positions 5 and 20.- "Fix the sitemap, titles and noindex issues you found, run the build, and show me the diff."
The crawl, Search Console reads, URL inspection and code edits use no credits. Keyword volumes, difficulty and live SERPs in step 3 do, and the audit asks before it checks live results for lost queries (about 5 credits a keyword). Start free and run step 1 on your own site.
What the agent could not do
- Rank checks run on a tracker.
get_rank_trackerreads existing tracker configs and their latest results,get_rank_historyreads past checks, andcheck_rankingschecks a tracker's keywords right now. New trackers are set up in the HarborRank app. - Research costs credits. Search Console reads, URL inspection, saved keywords, rank tracker reads and the site crawl use none; Lighthouse checks on paid plans cost about 4 credits a page. Third-party data does: about 50 credits for a keyword search of 150 to 300 results, about 80 for a domain overview (cached for 12 hours), and live SERP checks about 5 credits a keyword. The MCP guide lists every tool's typical cost. Tell the agent to work from Search Console first and to ask before any batch over a few hundred credits.
- Search Console is read-only. The agent can read performance data and inspect URLs. It cannot change anything in the property or request indexing.
- It does not publish. It wrote code and a plan. A person reviewed the diff, and a person deployed it.
- Its data is third-party data. Volumes, difficulty and competitor figures are estimates, and the agent treated them as such.
One failure came from our own system: a SERP call hit a billing check error during the session and succeeded on retry, and the agent noted the failure in its report.
What ranks for "claude code for seo"
On November 26 we ran the same check on this post's own query. get_serp_results for "claude code for seo" and "claude code seo" showed:
- Google's AI Overview cites an open-source audit plugin on GitHub, a plugin in Claude's marketplace, a Search Engine Land guide and a Reddit thread.
- The organic results are mostly plugin pages, skill directories, Reddit and Facebook threads, and videos. Related searches include "Claude Google Search Console" and "claude code seo github".
What that most-cited setup leaves out is the search data: it has no keyword volumes or live SERPs, and Search Console comes only through a Google API project you create and connect yourself. The most detailed setup guide we found fills the gap by wiring up four MCP servers: Search Console, Analytics, a keyword API on your own account, and Chrome DevTools.
HarborRank puts those sources behind one connection: Search Console, Analytics, a crawler, keyword and SERP data, backlinks and Maps results, all tied to one project.
When it is worth it
If you run SEO for one site or a few, the weekly loop is the same each time: read Search Console, inspect what moved, check the SERPs for the next target, write, publish, audit. In our session the agent did the reading and checking in about an hour and left the writing and the review to us.
If you have a team of analysts, you already run this loop. The agent speeds up the tool-call parts, such as pulling Search Console and checking results pages, and the judgment stays with your analysts.
Either way, the test is the one we ran on ourselves: connect the tools, ask why the traffic is what it is, and see whether the answer is specific enough to act on the same afternoon. Ours ended in the sitemap and noindex commit described above.
Two months later
Since this session, we have done most of harborrank.com's SEO the same way: Claude Code with the HarborRank tools, one measured pass at a time, each change reviewed by a person and deployed by a person. Each pass starts by reading Search Console and the rank tracker, checks what the last change did, and picks the next job from the numbers.
What Search Console shows (the site's first impression in Google was September 23, 2026):
| 28 days ending | Clicks | Impressions |
|---|---|---|
| October 17, 2026 | 40 | 561 |
| November 17, 2026 | 237 | 77,088 |
Almost all of those clicks are people searching for HarborRank by name: in the November window, Search Console named only 2 clicks from non-brand searches. Most impressions come from pages ranking on page five or lower for competitive terms. Google is testing the pages; rankings for competitive terms take months on a new domain.
What the agent found that we would not have guessed:
- Which pages Google tests first. A free backlink checker page drew over 47,000 impressions in 28 days, at an average position of 87. That told us where demand is, and that the head term is out of reach for now.
- Why pages weren't indexed. URL Inspection showed nine pages Google had found but never crawled. We linked them from the homepage and requested indexing in Search Console ourselves; within a week all nine were showing in search, while the three similar pages we left alone had 17, 10 and 0 impressions.
- What actually ranks for a query. For "claude seo" the top results were installable tools, not guides. Our guide sat at position 65, so on November 20 we rebuilt it as a comparison of those tools. It is too early to read the result.
Questions people ask
Can Claude Code do SEO on its own? It can edit titles, meta descriptions, sitemaps, robots.txt and JSON-LD in your code, and fetch your live pages to check them. Without a data connection it guesses at what Google sees. It has no access to your impressions, indexing status, search volumes or who ranks above you.
Is there a Claude Code MCP server for Search Console? Yes. HarborRank's server includes get_search_console_performance (clicks, impressions, CTR and position by query, page, country, device or date), inspect_urls and get_search_console_sitemaps. Connect Search Console once in the app and the agent reads it in any session. These reads use no credits.
Which skill should I run first? /harborrank:seo-project-setup on a new site, then /harborrank:seo-audit. If you'd rather be asked questions first, /harborrank:seo-coach picks the next step for you.
Can Claude Code build backlinks? It can find them. /harborrank:link-prospecting returns the pages that should link to yours, with contact paths and outreach drafts. You send the emails.
Can it track my rankings? It reads the rank tracker and its history, adds competitors to a tracker, and reports what moved. Starting a new check happens in the HarborRank app.
Does it work in Claude Desktop or claude.ai? The data tools do: add https://app.harborrank.com/mcp as a custom connector. The code changes need Claude Code, Cursor or Codex, since those run inside your repository.
What does it cost? Reading your own Search Console and crawling your site use no credits. Google Analytics reports (10 credits each), Lighthouse checks (about 4 a page) and keyword, SERP, domain and backlink data use credits. New accounts start with a 7-day free trial of Basic and work from 1,000 credits during it. Basic is $29 a month with 15,000 credits a month once the trial ends, unless you cancel first.
Start with your own site
Install the plugin, connect Search Console and run /harborrank:seo-audit. The first diagnosis reads your own data, so it costs few credits, and you'll know by the end of the session whether your problem is indexing, rankings or demand. Start free.
Related guides
Part of seo with ai assistants: SEO MCP servers compared
Ten AI visibility trackers priced, and a test of what AI answers say.
Eighteen MIT-licensed skills on live search data, with a worked example.
What an SEO agent does and how to run one.
What 50,000 API units buy, and HarborRank from $29.
GA4 next to Search Console, in one conversation.
Seven SEO MCP servers and what they really cost.
Features
AI agents
Resources