Sanity MCP
Lets your AI agent query and edit content in your Sanity projects, manage schemas and releases, and read Sanity docs.
0 stars on GitHubby SanityUpdated β
How to install
This MCP is remote: it runs in the cloud.
Nothing to install. Copy the address and paste it into your AI app:
Server address
https://mcp.sanity.io
- βΊClaude (site or app): Settings β Connectors β Add custom connector.
- βΊChatGPT: Settings β Apps β Create app (developer mode), and paste the address.
- βΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.
Paste in the terminal:
claude mcp add --transport http sanity https://mcp.sanity.io
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Create a blog post schema in Sanity.
Find all draft articles in my dataset.
What it is
This is the Sanity MCP server. It gives your agent direct access to your Sanity projects: content, datasets, releases and schemas. It also serves up-to-date agent rules for building with Sanity.
What it can do
query_documents: run GROQ queriescreate_documentsandpatch_documents: create and edit documentspublish_documentsandunpublish_documents: manage the document lifecycledeploy_schemaandget_schema: deploy and inspect schemascreate_releaseandlist_releases: work with Content Releasesgenerate_imageandtransform_image: AI image generation and editingsearch_docsandread_docs: search Sanity documentation
When to use
- βΊWhen you want to query or update content without opening the Studio
- βΊWhen you want your agent to create a blog post schema
- βΊWhen you want to plan a content release
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
building-blogGuides your agent through adding an SEO-friendly blog to a Next.js site that uses Sanity as its content system.Prismic AutomationHas your agent automate operations in Prismic, a CMS. It can fetch content and manage documents, simplifying website updates.building-emdash-siteHelps your agent build the site side of an EmDash CMS project on Astro, covering content, schema, menus, taxonomies and deployment.Frequently asked questions
Is it free?
You need a Sanity account. Image generation and some version actions use Sanity AI credits.
Who makes it?
Sanity. It is their official server.
How do I set it up fast?
Run npx sanity@latest mcp configure to set up Cursor, Claude Code and VS Code.
Which clients work?
Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit, OpenCode and others.
What is the server address?
https://mcp.sanity.io
Is there more than the server?
Yes. The toolkit also has agent skills and plugins.
If it does not work
- βΊIf sign-in fails after CLI setup, rerun npx sanity@latest mcp configure and restart your client.
- βΊIn Cursor use Clear All MCP Tokens; in VS Code use Remove Dynamic Authentication Providers to reset OAuth.
- βΊIf your client has no remote support, use the mcp-remote proxy.
5 new skills a week. 1 minute to read.