Sanity MCP Server
OfficialThe Sanity MCP Server connects Sanity projects with AI tools to manage and explore content using natural language instructions.
Key capabilities:
Content Intelligence: AI can explore and understand your content library
Document Management: Create, update, patch, transform, translate, publish, unpublish, and delete documents with schema-aware AI operations
Content Operations: Automate tasks through natural language commands
Release Management: Plan, schedule, organize, and execute content releases
Search Capabilities: Execute GROQ queries and perform semantic search using embeddings
Schema Awareness: AI respects your content structure and validation rules
Dataset Management: Create, update, and manage datasets
Version Control: Manage document versions within releases
Configuration Access: Retrieve server/project information and list available projects and studios
Runs as a Node.js application, requiring proper Node.js environment setup to function correctly with MCP-compatible applications.
Provides special configuration instructions for users of Node Version Manager to ensure the MCP server can access Node.js properly.
Enables AI-powered tools for content operations in Sanity CMS, allowing users to create, update, and manage documents, handle release management, perform semantic searches, and access schema information through natural language instructions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Sanity MCP Server list all blog posts published this month"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Sanity MCP Server
This local MCP server (
@sanity/mcp-server) has been deprecated in favor of the new, improved remote MCP server at mcp.sanity.io. This repository is archived and no longer maintained.
Use mcp.sanity.io
The Sanity MCP Server is now available as a hosted remote server at mcp.sanity.io. It offers:
Streamable HTTP transport
OAuth authentication (no API tokens to manage)
Continuously updated tools and features
Zero local setup — no Node.js required
Quick setup
Add this to your MCP client configuration:
{
"mcpServers": {
"sanity": {
"url": "https://mcp.sanity.io",
"type": "http"
}
}
}Visit mcp.sanity.io for full installation instructions for Claude Code, Cursor, VS Code, and other MCP clients.
Available Tools
20 toolscreate_documentB
Create a new document in Sanity with AI-generated content based on instructions
Inputs: _type (required), schemaId (required), instruction (required), async, +1 more.
create_releaseB
Create a new content release in Sanity with an automatically generated ID
Inputs: title (required), description, releaseType, intendedPublishAt.
create_versionA
Create a version of an existing document for a specific release, with optional AI-generated modifications
Inputs: releaseId (required), documentId (required), schemaId, instruction.
discard_versionC
Discard a draft or delete a specific version document from a release
Inputs: versionId (required).
document_actionB
Perform document actions like publishing, unpublishing, or deleting documents
Inputs: actionType (required), publishedId (required), versionId, includeDrafts.
edit_releaseC
Update metadata for an existing content release
Inputs: releaseId (required), title, description, releaseType, +1 more.
get_groq_specificationA
Get the GROQ language specification summary
Inputs: no named parameters.
get_initial_contextA
IMPORTANT: This tool must be called before using any other tools. It will get initial context and usage instructions for this MCP server.
Inputs: no named parameters.
get_sanity_configA
Get current Sanity configuration (projectId, dataset, API settings)
Inputs: no named parameters.
get_schemaA
Get the full schema of the current Sanity environment
Inputs: lite, type, schemaId.
list_embeddings_indicesB
List all available embeddings indices for a dataset
Inputs: no named parameters.
list_releasesB
List content releases in Sanity, optionally filtered by state (active, scheduled, etc)
Inputs: state.
list_schema_idsB
Get a list of all available schema IDs
Inputs: no named parameters.
mark_for_unpublishA
Mark a document to be unpublished when a specific release is published
Inputs: releaseId (required), documentId (required).
patch_documentA
Apply direct patch operations to modify specific parts of a document without using AI generation
Inputs: documentId (required), operations (required), releaseId.
query_documentsC
Query documents from Sanity using GROQ query language
Inputs: filter (required), page, params, pageSize, +2 more.
release_actionC
Perform basic actions on existing content releases (publish, archive, unschedule, delete)
Inputs: releaseId (required), actionType (required).
schedule_releaseA
Schedule a content release to be published at a specific time
Inputs: publishAt (required), releaseId (required).
semantic_searchB
Perform a semantic search on an embeddings index
Inputs: query (required), indexName (required).
update_documentB
Update an existing document or version with AI-generated content based on instructions
Inputs: documentId (required), instruction (required), async, paths, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools have distinct purposes (e.g., create_document vs update_document, list_releases vs release_action). Slight overlap arises with document_action and mark_for_unpublish both involving unpublishing, but descriptions clarify the release-specific context.
The majority follow a verb_noun pattern (create_document, list_releases, query_documents). Minor deviations include get_initial_context (more imperative than descriptive) and action-based names (document_action, release_action) that break the pattern.
20 tools is slightly above the typical 3-15 range but still reasonable for a full-featured CMS server. Each tool covers a distinct operation, and no obvious bloat is present.
Core document and release lifecycles are covered (create, query, update, delete, schedule, publish). A notable gap is the absence of a direct get_document by ID tool, though query_documents can substitute with GROQ. Auxiliary features like semantic search and schema retrieval add value.
Maintenance
Related MCP Connectors
Gives AI agents direct access to your Sanity projects and guidance for working with them
Connect your team's living knowledge base — docs, data, issues, CRM — to Claude and ChatGPT.
One memory for your AI agents and your team: Claude, ChatGPT, Cursor and your agents share it.
The AI brain for builders: ChatGPT, Claude and your other AIs share one workspace and one method.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAI-powered translation management built for AI agents. Automate localization with regional sensitivity and zero TMS overhead. Works with Claude Code, Cursor, VS Code via MCP protocol. Supports JSON, YAML, Markdown, PO and more.MIT
- AlicenseNot gradedqualityDmaintenanceA unified context layer that connects your local data — repositories, documents, remote machines, and notes — to LLM interfaces through the Model Context Protocol (MCP).3MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to search, retrieve, and summarize content from workplace tools including Google Drive, Notion, Slack, and Confluence through secure Model Context Protocol.-

Sanity MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to directly interact with Sanity CMS projects, including querying, creating, and managing documents, schemas, releases, and image generation.201MIT