Skip to content
Skillpedia
βœ“ Official Β· Sanity☁️ RemoteπŸ”‘ Needs an API keyWeb and browser

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 queries
  • create_documents and patch_documents: create and edit documents
  • publish_documents and unpublish_documents: manage the document lifecycle
  • deploy_schema and get_schema: deploy and inspect schemas
  • create_release and list_releases: work with Content Releases
  • generate_image and transform_image: AI image generation and editing
  • search_docs and read_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

A Sanity account. The server uses OAuth, or a bearer token in the config. The Sanity CLI can set it up for you.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.