Set up the Sanity MCP server
Query Sanity content and schemas in your AI client, then create, patch, or publish documents.
Official · Sanity
Add it to your client
- 01
In the AI panel, open Customize › Connections.
- 02
Choose Add connection, then select Sanity from the gallery.
- 03
Review what it reads and can change, its plan requirements, and any usage charges. Then sign in.
What you can do
Read documents and schemas in a project or dataset.
Create or patch documents with schema validation.
Publish or unpublish documents.
Deploy schemas and create releases.
Try asking
“Read the schema for this document type.”
What it can change
Can create, patch, publish, and unpublish documents, deploy schemas, and create releases. API-token access follows the token’s role and permissions.
Review the available tools
Connect the server to see its available tools in your client.