Skip to content
Skillpedia
βœ“ Official Β· Sanity● Free and open source☁️ RemoteπŸ”‘ Needs an API keyWork and productivity

Sanity MCP

Lets your AI agent work with your Sanity projects: query and edit content, manage releases, schemas and images.

197 stars on GitHubby SanityLicense MITUpdated 27 days ago

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 www 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.
Run a GROQ query to list the last ten published articles.

What it is

Sanity is a content management platform. Its hosted MCP server lets your agent query documents with GROQ, create and edit content, publish it, manage schemas and releases, and read Sanity documentation. It also serves agent rules on demand.

What it can do

  • query_documents: run GROQ queries
  • create_documents and patch_documents: create and edit content
  • publish_documents and unpublish_documents: manage publishing
  • deploy_schema and get_schema: manage schemas
  • create_release and list_releases: content releases
  • generate_image and transform_image: AI image tools
  • search_docs and read_docs: search Sanity docs

When to use

  • β€ΊWhen you want your agent to draft or update content in a Sanity dataset.
  • β€ΊWhen you want it to inspect your schema and write correct GROQ queries.
  • β€ΊWhen you want to prepare a content release.

What you need

A Sanity account. Connect to https://mcp.sanity.io and sign in with OAuth, or run npx sanity@latest mcp configure to use your CLI login.

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 official?

Yes. It is made by Sanity at mcp.sanity.io.

How do I sign in?

With OAuth by default, or with a bearer token in the Authorization header. The CLI setup uses your logged-in CLI user.

Does it cost credits?

Image generation, image transforms and create_version with an instruction use Sanity AI credits.

Which clients work?

Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit, OpenCode and others.

Are there skills too?

Yes. The toolkit also has agent skills and plugins for Claude Code, Cursor and Codex.

Can it edit published documents?

Published documents are edited by creating or updating drafts.

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, remove the dynamic authentication provider, then sign in again.
  • β€ΊIf your client lacks remote MCP support, use mcp-remote with the server address.

5 new skills a week. 1 minute to read.