Fix Sanity SEO from Claude
Claude SEO on your real Search Console data, with fixes you approve in the same chat.

Each local area page used to take us half a day to create and optimize.
With SEOmatic, we can create hundreds of pages in the same time, which helps our clients make the best use of their budget.
It's transformed how we deliver scalable SEO solutions.
Will Hawkins
Marketing Director, Digi-Business UK
Agents read your Search Console data, do the work, and prove what actually moved. You decide what ships.
14-Day Trial for $1, credited to your first payment.

Claude Code reads your real Google Search Console data through SEOmatic, finds what is holding your Sanity documents back, stages the fix, and tells you whether it worked. In Approval mode nothing goes live on Sanity until you approve it.

November 2026
One claude mcp add command, then claude mcp login seomatic to sign in. A plugin adds 21 SEO skills.
Free to connect and to read your Search Console. Staged fixes are part of paid plans, with a 14-Day Trial for $1, credited to your first payment. See pricing.
Sanity is headless, so an SEO problem can live in two places: the documents in Sanity, or the front end that renders them. Claude Code fixes the front end in your repo. SEOmatic writes title, meta and content changes to the documents through the Sanity Content Lake API, after you approve, so each fix lands where it belongs.
You: Check /guides/toilet-keeps-running in Search Console and fix its title.
Claude Code: From Sep 13 to Oct 10 (28 days), /guides/toilet-keeps-running had 3,480 impressions and 31 clicks at position 8.6 for "toilet keeps running". That is a low click rate for page one, so the title is the first thing to test: it reads "Running Toilet". I staged a new title, "Toilet Keeps Running? 4 Fixes in Order of Likelihood", to be written to the SEO title field of that document. Approve it here or in SEOmatic and it goes live on Sanity.
An example on a demo site; your numbers come from your own Search Console.
Go to manage.sanity.io, open your project, and under API, then Tokens add a token with Editor permissions or higher. In SEOmatic, go to Connections and select Sanity. Paste the token along with your Project ID and dataset, then pick the document type to work in. The full walkthrough, with every screen, is on the Sanity integration page.
Run this in your terminal, then run claude mcp login seomatic. Sign in to SEOmatic in the browser and pick your site. Add --scope user to the command to use SEOmatic in every project, not just this one.
claude mcp add --transport http seomatic https://app.seomatic.ai/api/mcpOther ways to connect are on the Claude Code page.
Paste any of these into Claude Code. It answers from your data and stages the fix; you approve it before it reaches Sanity.
More that work well in Claude Code:
After you approve, SEOmatic writes the change through the Sanity Content Lake API and checks that it is live. Then it measures the result against the page's own baseline and your site's trend: 14 days after a title change, 28 after a content refresh, 90 after a new page. Each change is marked verified, ineffective or regressed, and a low-risk change that loses traffic is rolled back on its own. Ask Claude Code "Did my Sanity title changes work?" and it answers from those verdicts.
New documents written from research, plus rewrites of the title, slug and meta on ones already published.
Agents resolve where your meta and body actually live in the same query that finds the document, so nothing is guessed.
Sanity accepts any key you send, and a guessed name would create a field nothing renders. Canonical and noindex are only ever written to a field your document already has.
Sanity's schema lives in your Studio, not in the API, so a write to a guessed field name succeeds and quietly creates an orphan nothing renders. Agents resolve the document's real shape before they write.
Every field, limit and safeguard is on the Sanity integration page.
Sanity
A Sanity project and dataset, plus an API token with Editor permissions or higher, created under API > Tokens in manage.sanity.io. You will also need your Project ID and dataset name, usually production.
Claude Code
Claude Code and a free SEOmatic account. No API key and no Google Cloud project: the connection signs in through your browser.
Claude Code works the same way on WordPress, Webflow, Shopify, Ghost, Blogger, Wix, Squarespace, Framer, Drupal, BigCommerce, HubSpot CMS, Contentful, Strapi, Next.js, Lovable, GitHub, Craft CMS.
Can Claude Code fix SEO on my Sanity site?
Yes, through SEOmatic. Claude Code reads your Search Console data, finds the documents losing clicks and stages the fix, which SEOmatic writes to Sanity once you approve. The three setup steps are on this page.
What can Claude Code change on Sanity?
SEOmatic works on your documents through the Sanity Content Lake API: titles, descriptions and content first, and more where Sanity allows it. Every field and limit is listed on the Sanity integration page.
How do I know if a Sanity fix worked?
SEOmatic measures every change it ships against the page's own baseline and your site's trend, 14 days after a title change, 28 after a content refresh and 90 after a new page, and marks it verified, ineffective or regressed. Claude Code can read those verdicts for you.
What do I need on the Claude Code side?
Claude Code and a free SEOmatic account. No API key and no Google Cloud project: the connection signs in through your browser.
Will Claude Code publish to Sanity without asking?
No. By default every change SEOmatic proposes waits for your approval before it touches your site, and your assistant is told never to approve on its own. Approved changes are stored with the page's previous state, so any edit to an existing page can be rolled back. If you later want low-risk fixes to go ahead on their own, you can turn that on in your autonomy settings; changes to your URLs or indexing, and new content, still wait for you.
Is it free?
Connecting is free with no card. Search Console reports, page checks and 30-page site audits are free, as often as you like; live market data uses free questions, 5 a month plus a one-time 10 when you connect Search Console. Staging and publishing fixes is part of paid plans, which start with a 14-Day Trial for $1, credited to your first payment.
The same SEOmatic server and approval rules, from the agent you prefer.
Claude SEO on your real Search Console data, with fixes you approve in the same chat.
Hand Claude Cowork the SEO grunt work: it pulls your real numbers, writes the report into your files, and stages fixes you approve.
ChatGPT SEO on your real Search Console data, with fixes you approve in the same chat.
Two commands give Codex your Search Console data, so it fixes SEO where the bug lives: in your code.
Your real Search Console data in the Gemini app and in Gemini CLI, with fixes you approve.
An always-on SEO teammate: routines that read your Search Console and speak up when something changes.