Sanity MCP Server & AI Connector

The Model Context Protocol is the open standard assistants use to reach outside tools. Sanity AI Agent acts as an MCP server for your Sanity site: the assistant asks it for a capability, it checks what you have authorised, and only then does it touch your site. This page covers the technical side for Sanity.

What the connector talks to on Sanity

Sanity's Content Lake: GROQ for reading, and the Actions API for writing.

A token with Editor permissions. A Viewer token can read but not write.

Worth knowing about Sanity

Sanity keeps its schema in your Studio code rather than in the Content Lake, so the document types offered are the ones that actually have documents — a type you defined but never used will not appear.

What the platform does not allow

Creating documents works; editing existing ones does not yet. Sanity patches a Portable Text body in a way that has not been exercised against a real project, and claiming it before then would be claiming something untested.

Authentication and permissions

The assistant authorises through OAuth 2.1 with PKCE, and is granted scopes rather than an open door. Your Sanity credential is encrypted at rest, tied to the one website it belongs to, and never sent to the assistant. Every operation is recorded, and an operation outside what you granted is refused before it reaches your site.

Everything above describes what Sanity’s interface offers. None of it is marked verified yet, which in this product means exercised against a live installation with the date recorded.

Common questions

What is an MCP server, in plain terms?

A service an AI assistant can call to do real work. Rather than describing a change to you, the assistant asks the server to make it. Sanity AI Agent is that server for Sanity, and the boundary of what it will do is set by what you authorised.

Does the assistant see my Sanity password or token?

No. The credential is encrypted and bound to the single website it was given for, so a copy of it elsewhere is useless. The assistant asks for an action; it never receives the way in.

Is this an official Sanity product?

No. Sanity AI Agent is an independent product that uses Sanity’s own published interfaces. It is not affiliated with or endorsed by Sanity.

Getting started with Sanity AI Agent

Sanity AI Agent is not on sale yet. The product page tracks where it stands, and nothing is advertised before it works.

All about Sanity AI Agent

More about Sanity AI Agent