MCP server

Sanity

Query, edit and publish Sanity content, schemas and assets with AI

Sanity's official remote MCP server lets agents query and patch documents, create versions and releases, publish content, deploy schemas and Studios, upload assets and run semantic search across datasets. It authenticates with OAuth by default, or with a bearer API token. It replaced Sanity's earlier local server, which is now deprecated.

Also available as

Connect

  1. 1Connect it in ChatGPT

    Turn on Developer mode in ChatGPT (Settings → Security and login), open Plugins, select + and paste https://mcp.sanity.io as the MCP server URL, then sign in with OAuth. Add it to a chat from the composer's tools menu.

  2. 2Or add it to Codex or the API
    codex mcp add sanity --url https://mcp.sanity.io
    codex mcp login sanity

    The login command opens a browser to finish OAuth.

Configs are generated from the publisher's documented endpoint. Check their docs for plan requirements and scopes. New to this? Read the step-by-step tutorial.

Tools 11

query_documentsget_documentcreate_documentspatch_documentspublish_documentscreate_releaseget_schemadeploy_schemasemantic_searchlist_projectssearch_docs

Things to ask

  • “Find all blog posts missing an SEO description and draft one for each”
  • “Translate the homepage document into German as a new version”
  • “Add a 'readingTime' field to the article schema and deploy it”
  • “Publish every draft in the spring-launch release”

Related