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, the Actions API for writing drafts and publishing, and the Assets API for images. Nothing is installed in your project — there is nothing to install.
A token with Editor permissions, made at sanity.io/manage under API → Tokens. Editor is the lowest that can write; a Viewer token can only read. One website here is connected to one dataset, recorded when you connect it, so nothing can reach your other datasets by accident.
Worth knowing about Sanity
Sanity keeps your schema in your Studio code rather than in the project, so what we can offer depends on you: deploy it with "sanity schemas deploy" and we read your real content model, including types you have not used yet. Without that we can only list the document types that already have documents — which is true, and not the same thing, and we say which one you are looking at.
What the platform does not allow
Sanity is a content store, not a website, so three things other platforms offer are simply not here: menus, redirects and page-level search engine settings. Those belong to the site you built on top of Sanity, which we never see and will not pretend to manage. It also has no categories or tags of its own: if your articles are grouped, you built that, and we will not guess which of your reference fields means "tags".
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 action is recorded, and an action outside what you granted is refused before it reaches your site.
Which versions it works with
Sanity
Sanity hosts the Content Lake, so there is no version on your side to match.
What matters instead is the schema in your dataset, which you define yourself.
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.