Sanity Connector for AI agents.
10 live capabilities
Manage your Sanity Content Lake and GROQ queries through natural conversation.
Waiting for input…
Why people use Sanity
Sanity for Faster Content Management and GROQ Queries
This Connector changes that by letting you talk directly to your content. You can pull specific data, update fields across dozens of records at once, or grab a list of your media assets without leaving your chat interface. You get the ability to perform bulk updates and complex queries without ever leaving your workspace.
What Vinkius changes
You get a direct line to your Sanity Content Lake inside your AI chat.
Use it from Claude, ChatGPT, Cursor or another AI client you already have.
One account · 5,900+ Connectors
- Real-world use case 01
Bulk Editing
A content editor needs to change the isPublished status for 20 draft posts.
- Real-world use case 02
Data Auditing
A developer wants to know how many author documents exist in the production dataset.
- Real-world use case 03
Content Migration
A manager needs to see all unique types in a new project to map out the content strategy.
Complete set · 10capabilities
The complete Sanity capability set.
These are the exact actions your AI can choose when you ask it to work with Sanity.
01—04
4 capabilities in this set.
Part of 10 available through Sanity.
- 01 Capability
Get document details
Pull the full details of a specific document using its unique ID. This is perfect for checking all the fields of a single record.
- 02 Capability
List typed documents
Get a list of all documents for a specific type like post or author. This helps you quickly see what content is already in your project.
- 03 Capability
Run raw mutation
Run raw Sanity mutations to handle complex, multi-document transactions. Use this for heavy lifting like migrating data or bulk updates.
- 04 Capability
Wipe cms document
Permanently delete a document from your CMS when it's no longer needed. This is a quick way to clean up your content lake.
05—07
3 capabilities in this set.
Part of 10 available through Sanity.
- 05 Capability
Count entity nodes
See exactly how many documents of a specific type exist in your dataset. Use this to get a quick count of your records without opening the Studio.
- 06 Capability
List unique schema types
Retrieve a list of every unique document type currently in your project. This is great for auditing your schema to ensure consistency.
- 07 Capability
Create cms document
Create a new document by providing the type and a JSON object of attributes. You can use this to quickly add new content to your project.
08—10
3 capabilities in this set.
Part of 10 available through Sanity.
- 08 Capability
List media assets
See all images and file assets currently uploaded to your Sanity project. Use this to find and organize your media without browsing every folder manually.
- 09 Capability
Patch cms document
Update specific fields in an existing document using a JSON object. This allows you to make precise edits to your content without manual clicking.
- 10 Capability
Run groq query
Execute a GROQ query to fetch exactly the data you need from your content lake. This lets you pull custom data sets for your frontend or reports.
Set up in minutes
One URL. Then ask Sanity to work.
Claude and ChatGPT only need the Connector URL. Copy it once, add it in settings, and use Sanity from the conversation.
Choose your client
Live previewAdvanced clients IDE · CLI
Claude · Web + desktop
Connector URL · ready to paste
Streamable HTTPhttps://edge.vinkius.com/vk_preview_kOcJmNXuW6tXc9VymiA6CmKfU4tOyRvWsv6XMmO3/mcp - Step 01
Open Connectors
In Claude Web or Claude Desktop, open Settings and choose Connectors.
- Step 02
Add the URL
Choose Add custom connector, name it Sanity, and paste the URL above.
- Step 03
Turn it on in chat
Select +, open Connectors, and enable Sanity for the conversation.
ChatGPT · Web + desktop
Connector URL · ready to paste
Streamable HTTPhttps://edge.vinkius.com/vk_preview_kOcJmNXuW6tXc9VymiA6CmKfU4tOyRvWsv6XMmO3/mcp - Step 01
Open MCP settings
On desktop, open Settings and MCP servers. On web, open your workspace app or connector settings.
- Step 02
Add the URL
Choose Add server with Streamable HTTP, or create a custom MCP app, then paste the Sanity URL.
- Step 03
Save and start
Save the connection and enable Sanity in your conversation. Desktop may ask you to restart once.
Cursor · IDE configuration
Advanced setup
{
"mcpServers": {
"sanity": {
"url": "https://edge.vinkius.com/vk_preview_kOcJmNXuW6tXc9VymiA6CmKfU4tOyRvWsv6XMmO3/mcp"
}
}
} - Step 01
Open MCP Settings
Press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux) → search "MCP Settings"
- Step 02
Add the server config
Paste the JSON configuration above into the mcp.json file that opens
- Step 03
Save the file
Cursor will automatically detect the new Connector
- Step 04
Start using Sanity
Open Agent mode in chat and ask: "Using Sanity, help me...". 10 tools available
VS Code Copilot · IDE configuration
Advanced setup
{
"mcpServers": {
"sanity": {
"url": "https://edge.vinkius.com/vk_preview_kOcJmNXuW6tXc9VymiA6CmKfU4tOyRvWsv6XMmO3/mcp"
}
}
} - Step 01
Create MCP config
Create a .vscode/mcp.json file in your project root
- Step 02
Add the server config
Paste the JSON configuration above
- Step 03
Enable Agent mode
Open GitHub Copilot Chat and switch to Agent mode using the dropdown
- Step 04
Start using Sanity
Ask Copilot: "Using Sanity, help me...". 10 tools available
Windsurf · IDE configuration
Advanced setup
{
"mcpServers": {
"sanity": {
"url": "https://edge.vinkius.com/vk_preview_kOcJmNXuW6tXc9VymiA6CmKfU4tOyRvWsv6XMmO3/mcp"
}
}
} - Step 01
Open MCP Settings
Go to Settings → MCP Configuration or press Cmd+Shift+P and search "MCP"
- Step 02
Add the server
Paste the JSON configuration above into mcp_config.json
- Step 03
Save and reload
Windsurf will detect the new server automatically
- Step 04
Start using Sanity
Open Cascade and ask: "Using Sanity, help me...". 10 tools available
Cline · IDE configuration
Advanced setup
{
"mcpServers": {
"sanity": {
"url": "https://edge.vinkius.com/vk_preview_kOcJmNXuW6tXc9VymiA6CmKfU4tOyRvWsv6XMmO3/mcp"
}
}
} - Step 01
Open Cline MCP Settings
Click the Connectors icon in the Cline sidebar panel
- Step 02
Add remote server
Click "Add Connector" and paste the configuration above
- Step 03
Enable the server
Toggle the server switch to ON
- Step 04
Start using Sanity
Ask Cline: "Using Sanity, help me...". 10 tools available
Claude Code · Terminal command
Advanced setup
claude mcp add sanity --transport http "https://edge.vinkius.com/vk_preview_kOcJmNXuW6tXc9VymiA6CmKfU4tOyRvWsv6XMmO3/mcp" - Step 01
Install Claude Code
Run npm install -g @anthropic-ai/claude-code if not already installed
- Step 02
Add the Connector
Run the command above in your terminal
- Step 03
Verify the connection
Run claude mcp to list connected servers, or type /mcp inside a session
- Step 04
Start using Sanity
Ask Claude: "Using Sanity, show me...". 10 tools are ready
Where the request belongs
Work Sanity can move forward.
This is for content teams and developers who are tired of the friction between their CMS and their production workflow. It's for the person who needs to make 50 updates at once or the dev who needs to verify content stats without opening a browser.
Content Editor
Updates taxonomy and manages bulk content fields during high-volume publishing cycles.
CMS Developer
Audits schema types and prototypes GROQ queries for new site features.
Product Manager
Pulls content stats and generates reports on draft vs. published documents.
Build the capability set
Add more capabilities.
Each Connector adds new actions and data without changing how you work.
Browse ConnectorsSanity
Manage headless CMS content via Sanity. query documents with GROQ, create/update/delete content and manage datasets from any AI agent.
Flotiq
Manage headless content via Flotiq. create and search content objects, handle media assets, audit schemas, and track tenant limits directly from any AI agent.
Amplience
Connect your Amplience CMS to your AI agent. query hubs, pull content, edit schemas, and deploy live items easily via chat.
Contentful
Equip your AI agent to fetch, create, and manage digital content effortlessly using Contentful's headless architecture.
Kontent.ai
Access headless content. list items, audit types, and query taxonomies.
Cosmic
Manage headless content via Cosmic. list and create objects, audit schema types, handle media assets, and manage buckets directly from any AI agent.
Bring your own AI
Change the model, client or framework. Keep Sanity connected.
-
Claude -
ChatGPT -
Gemini -
Cursor -
VS Code -
Windsurf -
ZCode -
Cline -
Zed -
Continue -
Kiro -
Roo Code -
Zencoder -
Goose -
Void -
Augment Code -
Amp -
Qodo -
Tabnine -
Pieces -
Sourcegraph Cody -
JetBrains -
Warp -
Amazon Q -
Antigravity -
BoltAI -
Raycast -
Jan -
LM Studio -
AnythingLLM -
Open WebUI -
Msty -
Cherry Studio -
LibreChat -
TypingMind -
Chorus -
5ire -
n8n -
LangChain -
LlamaIndex -
CrewAI -
Vercel AI SDK
Before you connect
Questions about Sanity.
The practical details behind the request, access and result.
What can I do with the Sanity MCP?
You can manage your Sanity Content Lake using natural language. This includes running GROQ queries, creating or updating documents, and managing your media assets directly through your AI client.
How does the Sanity MCP handle bulk updates?
It allows you to perform multi-document transactions. You can ask your agent to patch specific fields across multiple records at once, saving you from manual entry in the Studio.
Can I use the Sanity MCP to query my content?
Yes. You can execute GROQ queries to fetch specific data. This is great for checking content stats or pulling specific information for your project.
Does the Sanity MCP work with my existing Sanity project?
Yes, it connects to your existing Sanity Content Lake. You just need to provide your Project ID, Dataset, and API credentials to get started.
Can I manage images with the Sanity MCP?
You can use it to list all image and file assets in your project. This helps you quickly find and organize your media without browsing every folder manually.
Is the Sanity MCP good for developers?
It's a great capability for developers who need to audit schema types or run quick data migrations. It lets you prototype queries and manage content types much faster.
Can my AI agent write complex GROQ queries for me?
Yes. If you know what data you want but aren't totally familiar with GROQ syntax, you can simply ask your agent: 'Write and execute a GROQ query to find all author documents where the name starts with John and return just their ID and bio.' The agent will draft the query, execute it via the run_groq_query capability, and return the filtered JSON.
How do I perform a bulk update on my documents?
You can ask your agent to first fetch the documents (e.g., 'List all posts missing a category'), calculate the changes needed, and then use the run_raw_mutation capability or patch_cms_document iteratively to apply the updates. This acts as a conversational migration script, updating dozens of documents safely and quickly.
Can the agent check if media assets are missing from my posts?
Yes. The agent can use the document querying capabilities combined with list_media_assets to analyze your content. For instance, you can ask it to generate a report of all products that do not have an associated image reference, giving you an exact list of items to fix in the Studio.
One connection away
Give your agent a direct line to Sanity.
Connect Sanity once. Keep it beside 5,900+ managed Connectors when the next task needs more.
Explore every Connector No credit card required · Free tier available