Sanity MCP server

Ask in plain English to find, edit and publish your Sanity documents, check schemas and manage datasets.

Tools
24 (16 read, 8 write)
Transport
Remote (HTTP)
Sign-in
Sign in with Sanity
Made by
Sanity
RevampKey connects Sanity in one click and adds its 5 skills. No config file. Free for Mac, Windows and Linux. Already installed? Open Sanity in RevampKey

Get RevampKey to connect Sanity

RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and Sanity is one click away with its skills already attached.

Download RevampKey

Not now? Use the skills in your current tool

for s in essentials content-draft-import content-model-audit dataset-health-check draft-cleanup-review; do
  curl -fsSL --create-dirs -o .claude/skills/sanity-$s/SKILL.md https://revampkey.com/marketplace/sanity/skills/$s/SKILL.md
done
All Sanity skills

What the Sanity MCP server does

Sanity is a content operations platform. Teams store their content as structured documents, and the schemas that define those documents live in Sanity Studio, the editing interface you configure in code. Developers use Sanity to build content applications. Content and operations teams use it to edit, audit and publish content at scale.

Connect Sanity to RevampKey and you can ask the agent about your own projects. It can list your projects and datasets, read the schemas in your workspace, and run GROQ queries to find documents, such as blog posts missing a field. It can read a single document, create and patch documents, publish them and discard drafts. The agent asks before it changes anything.

What you can do with Sanity and an AI agent

Find content gaps before a launch

Before a product launch, you ask which product documents have no description or no image. The agent runs a GROQ query against your dataset and lists the matching documents with their IDs. You read the list and decide what to fix. Nothing changes until you approve an edit.

Update copy across several articles

Your team changes the refund wording in several help articles. You paste the new paragraph and ask the agent to update those articles. It reads each document and shows you the patched markdown for each one. After you approve, it saves the changes and publishes them.

Check a schema before deploying it

You plan to add a field to your post type. You ask the agent to show the current schema in your workspace and any Sanity rules that apply. It reads both and summarizes what the new field would change. If you want the change deployed, the agent asks you first before it runs the deploy.

How to set up the Sanity MCP server

Pick your app. RevampKey needs no config file; the others need one command or a config line.

About 1 minute · Sign in with Sanity

  1. Install RevampKey for Mac, Windows or Linux and sign in.

  2. Open Connectors, search for Sanity and click Connect. Approve access on Sanity's own sign-in page. RevampKey never sees your password.

  3. Ask in plain language. The 5 Sanity skills come with the connector. The agent asks before it changes anything.

  4. Download RevampKeyConnect Sanity · 1 click

    Get RevampKey to connect Sanity

    RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and Sanity is one click away with its skills already attached.

    Download RevampKey

    Not now? Use the skills in your current tool

    for s in essentials content-draft-import content-model-audit dataset-health-check draft-cleanup-review; do
      curl -fsSL --create-dirs -o .claude/skills/sanity-$s/SKILL.md https://revampkey.com/marketplace/sanity/skills/$s/SKILL.md
    done
    All Sanity skills

Using a different MCP client?

Add a new remote (HTTP) MCP server in its settings and paste this URL. Sign in with Sanity the first time it connects.

Server URLhttps://mcp.sanity.io/

Skip the config file

In RevampKey, Sanity is one click: sign-in and the server and the 5 skills are set up for you.

Download RevampKey

Sanity agent skills

Playbooks that teach the agent how to do real Sanity work, step by step. RevampKey adds them when you connect; any Agent Skills tool can use them.

See all 5 skills in detail →

What to ask once Sanity is connected

Plain words work. Copy one to try it.

  • “List my Sanity projects and the datasets in each one.”
  • “Show me the schema for the post document type in my blog workspace.”
  • “Find every product document that has no image and list their titles.”
  • “Update the intro paragraph of the About page draft and ask me before publishing it.”
  • “What does the Sanity documentation say about adding a CORS origin?”
  • “Import the 48 markdown posts in ./blog-export into the production dataset as drafts, and show me how the fields map first.”Import content into Sanity as drafts
  • “Audit the content model in our production dataset and tell me which document types look unused.”Audit a Sanity content model
  • “Run a health check on my Sanity projects and tell me what needs attention.”Check the health of your Sanity setup with AI
  • “Find stale drafts in our production dataset and tell me which ones we can safely discard.”Review and clean up stale Sanity drafts

What the agent can do in Sanity

24 tools in 5 groups. Reading needs no approval; RevampKey asks before every change.

Projects, datasets and access
See your organizations and projects, and check the Studios each project has. Create a new project or dataset, and add a CORS origin so an allowed site can reach your content.list_organizationslist_projectscreate_projectget_project_studioslist_datasetscreate_datasetadd_cors_origin
Schemas and rules
Read the schemas in your workspace and the Sanity rules that apply to them. Deploy a schema change when you ask for it. Use the migration guide to see how to move your content when a schema changes.list_workspace_schemasget_schemadeploy_schemaget_sanity_ruleslist_sanity_rulesmigration_guide
Finding and reading documents
Run GROQ queries to find documents by type, field or value. Read a single document in full. Look up the embeddings indices in a dataset when you need them.query_documentsget_documentlist_embeddings_indices
Writing and publishing content
Create documents from JSON or markdown, and patch existing ones. Create a version of a document, publish documents, or discard drafts. The agent shows you the change and asks before it saves or publishes.create_documents_from_jsoncreate_documents_from_markdownpatch_document_from_jsonpatch_document_from_markdowncreate_versionpublish_documentsdiscard_drafts
Sanity documentation
Read Sanity's own docs when you want to check how a feature works. Ask a question and the agent looks up the answer in the docs before it replies.read_docs

All 24 Sanity MCP tools

Show all 24 tools16 read, 8 create and change

Read (16) Run without asking

  • discard_drafts
  • get_document
  • get_project_studios
  • get_sanity_rules
  • get_schema
  • list_datasets
  • list_embeddings_indices
  • list_organizations
  • list_projects
  • list_sanity_rules
  • list_workspace_schemas
  • migration_guide
  • patch_document_from_json
  • patch_document_from_markdown
  • query_documents
  • read_docs

Create and change (8) RevampKey asks before each one

  • add_cors_origin
  • create_dataset
  • create_documents_from_json
  • create_documents_from_markdown
  • create_project
  • create_version
  • deploy_schema
  • publish_documents

Sanity MCP in RevampKey vs other tools

RevampKeyClaude CodeCursorVS Code
SetupOne clickOne terminal commandEdit mcp.jsonEdit mcp.json
Sign-inIn the app/mcp → AuthenticateBrowser promptBrowser prompt
Sanity skillsAdded on connectCopy into .claude/skillsCopy into the projectCopy into the project
Needs a terminalNoYesNoNo

Sanity MCP server FAQ

What do I need to connect Sanity to RevampKey?

You need a Sanity account. Click Connect in RevampKey, then approve access on Sanity's own sign-in page. Sanity uses OAuth, so you do not paste API tokens into RevampKey. Once you approve, the agent can use the Sanity tools listed on this page.

What can the Sanity agent do, and what can it not do?

It can list projects and datasets, read schemas, run GROQ queries, read and patch documents, publish, and discard drafts. It can also deploy schemas and add CORS origins. No tool is listed for deleting documents or datasets, so the agent cannot do those through this connector.

Does the agent change my content without asking?

No. The agent asks before it changes anything, including creating, patching, publishing or deploying. Your content stays as it is until you approve. Check the agent's answers against your Sanity Studio before you rely on them.

Can the agent work with my Sanity Studio schemas and GROQ queries?

Yes. The agent reads your workspace schemas and the rules that apply to them, so it knows your document types and fields. It can write GROQ queries against your dataset to find documents, and it can show you the results before any change is made.

What is the Sanity MCP server URL?

The Sanity MCP server URL is https://mcp.sanity.io/. It uses the Streamable HTTP transport, so any client that supports remote MCP servers can connect to it.

How does the Sanity MCP server authenticate?

With Sanity's own sign-in (OAuth). You approve access in your browser; no password is shared with the client.

What can an AI agent do with the Sanity MCP server?

It exposes 24 tools: 16 that read and 8 that create or change things. In RevampKey the agent asks before it runs any tool that changes data.

Are there agent skills for Sanity?

Yes. 5 SKILL.md playbooks teach an agent how to do real Sanity work step by step. RevampKey installs them when you connect Sanity; for Claude Code, Cursor or Codex you can copy them into your project.

Connect Sanity in under a minute

Download RevampKey for Mac, Windows or Linux, sign in, and Sanity is one click away, with its skills already attached, along with every other connector in the marketplace.

Download RevampKeyConnect Sanity · 1 click

Get RevampKey to connect Sanity

RevampKey is a free desktop app for Mac, Windows and Linux. Install it, sign in, and Sanity is one click away with its skills already attached.

Download RevampKey

Not now? Use the skills in your current tool

for s in essentials content-draft-import content-model-audit dataset-health-check draft-cleanup-review; do
  curl -fsSL --create-dirs -o .claude/skills/sanity-$s/SKILL.md https://revampkey.com/marketplace/sanity/skills/$s/SKILL.md
done
All Sanity skills