- SEARCH
- EDIT
- READ
- REVIEW
Short answer
Can I edit Sanity documents with my AI?
Yes. Your AI uses GROQ to locate specific documents and then modifies their fields directly. You get full control over your content without manual Studio navigation.
Data outcomes
What your AI handles.
Your agent manages the search and modification of your dataset.
SEARCH
Find specific documents
The AI uses GROQ to pull exactly what you need. You can find single items or groups of documents based on any field.
EDIT
Modify existing fields
Once a document is found, your AI can change values, text, or settings. This keeps your data consistent without manual clicks.
READ
Inspect document details
Your AI pulls the full content of a specific document. This allows it to reason about the data before making changes.
REVIEW
Human oversight
The AI proposes changes, but you decide when to commit them. You stay in control of the final state of your Sanity dataset.
The workflow
What your AI does when <the thing arrives>.
The AI moves from finding data to acting on it through a few specific steps.
Locate data
Your AI runs a GROQ query to scan your Sanity dataset for the specific documents you mentioned.
query_documentsPull details
It fetches the full content of a specific document to ensure it has the right context for your request.
get_documentApply changes
The AI sends the updated field values back to Sanity to overwrite the old data.
update_documentVerify results
It checks the updated document to confirm the changes were applied correctly.
get_document
Try it
Copy these to start.
Use these prompts to begin interacting with your Sanity content.
Starting points
Replace the bracketed text with your actual Sanity document types or field names.
Sanity Connector
You're all set. Choose your MCP client and follow the setup instructions.
https://edge.vinkius.com/vk_preview_ACkKs6jzV4svPUkN2nvh7GZdikEWKwiWbOMvDihL/mcpClaude Desktop
Follow the steps below to connect in seconds.
- 1In Claude Desktop, open Settings → Connectors.
- 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
- 3Click Add and start a new chat — Sanity capabilities are ready to use.
{
"mcpServers": {
"sanity-alternative-mcp": {
"url": "https://edge.vinkius.com/vk_preview_ACkKs6jzV4svPUkN2nvh7GZdikEWKwiWbOMvDihL/mcp"
}
}
}Find all 'product' documents where the 'status' is set to 'draft'.
Get the details for the document with ID 'blog-post-123'.
Update the 'description' field for the 'hero-banner' document to say 'Welcome to our new store'.
Find all 'author' documents and change their 'verified' field to true.
Claude
ChatGPT
Cursor
VS Code
Windsurf
Claude Code
JetBrains
Cline
Start here
Connect Sanity once, then ask.
Just click the link to connect your account. Your credentials stay encrypted and secure, and you can start querying immediately.
Connect Sanity to your AIFAQ
How this task behaves.
- 01
Can the AI delete documents from my Sanity dataset?
No. The current tools only allow for querying, getting, and updating documents. Deletion is not supported.
- 02
Does the AI need me to write GROQ queries?
No. You can describe what you want in plain English, and your AI client will generate the necessary GROQ query to find the data.
- 03
Can the AI create brand new documents?
No. The tools are limited to updating existing documents. It cannot create new entries in your Sanity dataset.
- 04
Will the AI change my content without asking?
No. While the AI can prepare the update, you are the one who triggers the action in your chat interface.
- 05
Can I use this with any AI client?
Yes, as long as you are using an MCP-compatible client like Claude, Cursor, or Windsurf.
More questions about Sanity? The Connector page answers them. See everything the Sanity Connector can do
Connect Sanity to Claude, Cursor, ChatGPT & more
