Fix Sanity SEO from Cursor
Cursor reads your real Google Search Console data through SEOmatic, finds what is holding your Sanity pages back, and stages the fix. Nothing goes live on Sanity until you approve it, and any edit to an existing page can be rolled back.
- Your real Search Console data
- Fixes staged in Sanity
- Nothing goes live until you approve

About Sanity in SEOmatic
SEOmatic connects to your Sanity project with an API token. Agents write new documents and improve existing ones, resolving where your titles and meta actually live in the same query that finds the document.
Last Updated
October 2026
Requirements
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.
How to Fix Sanity SEO from Cursor
Step 1: Connect Sanity to SEOmatic
SEOmatic connects to your Sanity project through the Content Lake API, then works on the documents you already have.
Step 1: Go to manage.sanity.io, open your project, and under API > Tokens add a token with Editor permissions or higher.
Step 2: 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.
Step 3: Agents read your Search Console data, find what is holding those documents back, and propose the changes with the reasoning attached.
Step 4: You approve what you want. Approved work is patched into your dataset, logged as a diff you can read, and undone in one click if you change your mind.
Step 2: Connect SEOmatic to Cursor
Add this to ~/.cursor/mcp.json for every project, or .cursor/mcp.json in one repo, or add the same URL in Settings, Tools & MCP. Approve the SEOmatic sign-in in your browser and pick your site. Or install SEOmatic from the Cursor Marketplace by typing /add-plugin seomatic in Agent chat.
{
"mcpServers": {
"seomatic": { "url": "https://app.seomatic.ai/api/mcp" }
}
}Other ways to connect are on the Cursor page.
Step 3: Ask Cursor, Then Approve
Paste any of these. Cursor answers from your data and stages the fix; you approve it before it reaches Sanity.
- “Which of my Sanity pages lost the most clicks this month, and why?”
- “Stage new titles for my Sanity pages with high impressions and low CTR.”
- “Find Sanity pages Google has not indexed and tell me what is blocking them.”
- “Audit my Sanity homepage and rank the fixes by impact.”
What Cursor Can Change on Sanity
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.
The agent arrives switched off and starts in approval mode. It earns more rope only when you give it.
A before and after view with the reasoning attached, so you see what changed and why.
Any change rolls back to its previous value. Low-risk edits that cost you traffic revert on their own.
Meta is patched at its exact path, so updating a title leaves the description and everything beside it intact.
Sanity keeps drafts as separate documents. Agents respect that split rather than pushing work live by accident.
Everything goes through the Content Lake, so whatever renders your content keeps rendering it the same way.
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.
Full details on the Sanity integration page.
Requirements
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.
Cursor
Cursor and a free SEOmatic account, which you can create during sign-in. Use OAuth, not an API key: Cursor does not send a configured Authorization header.
Fix Sanity SEO from Another Agent
- Fix Sanity SEO from Claude
- Fix Sanity SEO from Claude Code
- Fix Sanity SEO from Claude Cowork
- Fix Sanity SEO from ChatGPT
- Fix Sanity SEO from Codex
- Fix Sanity SEO from Gemini
- Fix Sanity SEO from Grok Bot
- Fix Sanity SEO from Perplexity Computer
- Fix Sanity SEO from OpenClaw
- Fix Sanity SEO from Hermes Agent
- Fix Sanity SEO from Manus
Use Cursor on Another Platform
- Fix WordPress SEO from Cursor
- Fix Webflow SEO from Cursor
- Fix Shopify SEO from Cursor
- Fix Ghost SEO from Cursor
- Fix Blogger SEO from Cursor
- Fix Wix SEO from Cursor
- Fix Squarespace SEO from Cursor
- Fix Framer SEO from Cursor
- Fix Drupal SEO from Cursor
- Fix BigCommerce SEO from Cursor
- Fix HubSpot CMS SEO from Cursor
- Fix Contentful SEO from Cursor
- Fix Strapi SEO from Cursor
- Fix Next.js SEO from Cursor
- Fix Lovable SEO from Cursor
- Fix GitHub SEO from Cursor
- Fix Craft CMS SEO from Cursor
Frequently Asked Questions
Can Cursor fix SEO on my Sanity site?
Yes, through SEOmatic. Cursor reads your Google Search Console data, finds what is holding your Sanity pages back and stages the fix. SEOmatic connects to your Sanity project with an API token. Agents write new documents and improve existing ones, resolving where your titles and meta actually live in the same query that finds the document.
What can Cursor change on Sanity?
Writes And Improves Documents: New documents written from research, plus rewrites of the title, slug and meta on ones already published. Finds Your Real Field Names: Agents resolve where your meta and body actually live in the same query that finds the document, so nothing is guessed. No Orphan Fields: 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. Nothing Applies Without You: The agent arrives switched off and starts in approval mode. It earns more rope only when you give it. A Diff For Every Change: A before and after view with the reasoning attached, so you see what changed and why. One Click Revert: Any change rolls back to its previous value. Low-risk edits that cost you traffic revert on their own.
What do I need to connect 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.
What do I need on the Cursor side?
Cursor and a free SEOmatic account, which you can create during sign-in. Use OAuth, not an API key: Cursor does not send a configured Authorization header.
Will Cursor 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: 5 questions a month from your own data, plus 10 once you connect Search Console, and site audits of up to 30 pages. Staging and publishing fixes is part of paid plans, which start with a 14-day free trial.


