Sanity · Official

Sanity MCP server

Read and edit Sanity content, datasets, releases and schemas.

Verified publisher namespaceRemoteDeveloper tools
Registry name
io.sanity.www/mcp
Latest version
2.42.1 · updated 2026-10-22
Links
Vendor docsSource

Install

Commands are generated from the registry record. Remote servers usually ask you to sign in with OAuth on first use.

Step-by-step guides

Claude Code

claude mcp add --transport http sanity https://mcp.sanity.io

Codex

codex mcp add sanity --url https://mcp.sanity.io

Gemini CLI

gemini mcp add --transport http sanity https://mcp.sanity.io

Cursor

{
  "mcpServers": {
    "sanity": {
      "url": "https://mcp.sanity.io"
    }
  }
}

VS Code (GitHub Copilot)

code --add-mcp '{"name":"sanity","type":"http","url":"https://mcp.sanity.io"}'

What the Sanity MCP server can do

From Sanity's own MCP documentation.

Authentication

OAuth by default. You can send an API token in the Authorization: Bearer header instead, and the token's role sets permissions.

https://mcp.sanity.io

Options

  • Disable generate_image and transform_image in your client to avoid AI credit use.
  • Includes Media Library tools, asset upload tools and CORS origin tools.

Tools (53)

query_documentsget_documentcreate_documentspatch_documentspublish_documentsunpublish_documentsdiscard_draftscreate_versionversion_discardget_schemalist_workspace_schemasdeploy_schemadeploy_studiolist_projectscreate_projectlist_organizationslist_datasetscreate_datasetcreate_releaselist_releasessemantic_searchgenerate_imagetransform_imagesearch_docswhoami

Good to know

  • patch_documents accepts at most 25 documents per call.
  • dataset_assets_upload_from_file accepts files up to 50 MiB.
  • assets_upload_status checks 1 to 20 operation IDs, and results last up to 24 hours.
  • OAuth sessions usually expire after 7 days.
  • media_assets_upload_from_url is deprecated. Use media_library_upload_from_url.
  • Honor HTTP Retry-After when rate limited.
Sanity MCP docs

Endpoints

  • streamable-http https://mcp.sanity.io

More developer tools

Get the weekly agent stack update

New official MCP servers, spec changes and harness releases, checked against the source. One email a week, no fluff.

Work at Sanity?

Feature Sanity at the top of the developer tools category and the MCP directory from $49/month.

Feature this server

Add an install badge to the Sanity README

Free. One link that installs the server in Cursor, VS Code, Kiro, LM Studio or Goose with one click, and gives Claude Code, Codex, Gemini CLI and 10 more agents their exact config.

Install in any agent (Markdown)

[![Install with AgentAtlas](https://img.shields.io/badge/install-15_agents-111111)](https://agentatlas.dev/tools/setup-kit?servers=sanity)

Listed on AgentAtlas (Markdown)

[![Listed on AgentAtlas](https://img.shields.io/badge/listed_on-AgentAtlas-111111)](https://agentatlas.dev/mcp/sanity)

Reviewed Oct 21, 2026. Official means published under Sanity's namespace in the MCP registry. It is not a security audit.