
Sanity
Connects your MCP-compatible editor directly to Sanity's content management platform through their official API. Exposes tools for running GROQ queries, creating and patching documents, deploying schemas, managing publish states, and generating images. You can query content, push schema changes, and manipulate documents without leaving your editor. Includes comprehensive agent skills covering GROQ optimization, Visual Editing setup, Portable Text handling, and framework integrations. Works with Cursor, Claude Code, VS Code, and other MCP clients. Particularly solid if you're building content-heavy applications and want your AI assistant to understand Sanity's conventions around content modeling and performance patterns.
- tools
- 41
- transport
- HTTP
- last updated
- Nov 11, 2026
Tools
41 toolsPublic tool metadata for what this MCP can expose to an agent.
get_schemaGet the full schema of the current Sanity workspace3 params
Get the full schema of the current Sanity workspace
resourceobjecttypestringworkspaceNamestringlist_workspace_schemasGet a list of all available workspace schema names1 params
Get a list of all available workspace schema names
resourceobjectdeploy_schemaDeploy Sanity schema directly to cloud (project and dataset). IMPORTANT: Only use this for projects WITHOUT a local Sanity Studio. If sanity.config.ts/js or a schema directory exists, generate local schema files instead. Can be called iteratively to add/overwrite types.3 params
Deploy Sanity schema directly to cloud (project and dataset). IMPORTANT: Only use this for projects WITHOUT a local Sanity Studio. If sanity.config.ts/js or a schema directory exists, generate local schema files instead. Can be called iteratively to add/overwrite types.
resourceobjectschemaDeclarationstringworkspaceNamestringcreate_documents_from_jsonCreate one or more draft documents by directly providing JSON content. Creates drafts (drafts.* prefix) unless releaseId is specified for version creation.4 params
Create one or more draft documents by directly providing JSON content. Creates drafts (drafts.* prefix) unless releaseId is specified for version creation.
documentsarrayreleaseIdstringresourceobjectworkspaceNamestringcreate_documents_from_markdownCreate one or more draft documents from Markdown content. Creates drafts (drafts.* prefix) unless releaseId is specified for version creation.4 params
Create one or more draft documents from Markdown content. Creates drafts (drafts.* prefix) unless releaseId is specified for version creation.
documentsarrayreleaseIdstringresourceobjectworkspaceNamestringcreate_versionCreate a version document (versions.{releaseId}.* prefix) for a specific release. Versions are separate from drafts and published documents, and are used for scheduled release workflows.5 params
Create a version document (versions.{releaseId}.* prefix) for a specific release. Versions are separate from drafts and published documents, and are used for scheduled release workflows.
documentIdsarrayinstructionstringreleaseIdstringresourceobjectworkspaceNamestringpatch_document_from_jsonApply precise modifications to document fields. When targeting a published document, this creates or updates a draft with the changes (published document remains unchanged). When targeting a draft or version, updates it in place.7 params
Apply precise modifications to document fields. When targeting a published document, this creates or updates a draft with the changes (published document remains unchanged). When targeting a draft or version, updates it in place.
appendarraydocumentIdstringreleaseIdstringresourceobjectsetarrayunsetarrayworkspaceNamestringpatch_document_from_markdownPatch a specific field in a document using Markdown content6 params
Patch a specific field in a document using Markdown content
documentIdstringmarkdownstringpathstringreleaseIdstringresourceobjectworkspaceNamestringquery_documentsQuery documents from Sanity using GROQ query language6 params
Query documents from Sanity using GROQ query language
limitintegerparamsobjectperspectivevaluequerystringresourceobjectsinglebooleangenerate_imageGenerate a new image in a document using AI. When targeting a published document, this creates or updates a draft with the generated image (published document remains unchanged). The draft must be published separately to make changes live. For image arrays, automatically adds...5 params
Generate a new image in a document using AI. When targeting a published document, this creates or updates a draft with the generated image (published document remains unchanged). The draft must be published separately to make changes live. For image arrays, automatically adds...
documentIdstringimagePathstringinstructionstringresourceobjectworkspaceNamestringtransform_imageTransform an existing image in a document using AI. When targeting a published document, this creates or updates a draft with the transformed image (published document remains unchanged). The draft must be published separately to make changes live. Note: Image transformation i...5 params
Transform an existing image in a document using AI. When targeting a published document, this creates or updates a draft with the transformed image (published document remains unchanged). The draft must be published separately to make changes live. Note: Image transformation i...
documentIdstringimagePathstringinstructionstringresourceobjectworkspaceNamestringget_documentFetch a single document by its exact ID. This is a direct ID lookup only - it does not search, filter, or query. Use when you have a specific document ID and need its full content.2 params
Fetch a single document by its exact ID. This is a direct ID lookup only - it does not search, filter, or query. Use when you have a specific document ID and need its full content.
documentIdstringresourceobjectpublish_documentsPublish one or more draft documents to make them live2 params
Publish one or more draft documents to make them live
idsarrayresourceobjectunpublish_documentsUnpublish one or more published documents (moves them back to drafts)2 params
Unpublish one or more published documents (moves them back to drafts)
idsarrayresourceobjectversion_replace_documentReplace the contents of a document version with contents from another document5 params
Replace the contents of a document version with contents from another document
idstringreleaseIdstringresourceobjectsourceDocumentIdstringtypestringdiscard_draftsDiscard one or more draft documents (deletes drafts while keeping published documents intact). Can also discard release versions if releaseId is provided.3 params
Discard one or more draft documents (deletes drafts while keeping published documents intact). Can also discard release versions if releaseId is provided.
idsarrayreleaseIdstringresourceobjectversion_unpublish_documentMark a document to be unpublished when the release is run3 params
Mark a document to be unpublished when the release is run
idstringreleaseIdstringresourceobjectlist_organizationsLists all organizations the user has access to in Sanity
Lists all organizations the user has access to in Sanity
No parameter schema in public metadata yet.
list_projectsLists all Sanity projects associated with your account
Lists all Sanity projects associated with your account
No parameter schema in public metadata yet.
get_project_studiosRetrieves all studio applications linked to a specific Sanity project1 params
Retrieves all studio applications linked to a specific Sanity project
resourceobjectcreate_projectCreates a new Sanity project and initializes it with a dataset and API tokens4 params
Creates a new Sanity project and initializes it with a dataset and API tokens
allowCredentialsbooleancorsOriginstringdisplayNamestringorganizationIdstringadd_cors_originAdds CORS origin(s) to allow client-side requests to a Sanity project3 params
Adds CORS origin(s) to allow client-side requests to a Sanity project
allowCredentialsbooleanoriginstringprojectIdstringlist_datasetsLists all datasets in your Sanity project1 params
Lists all datasets in your Sanity project
resourceobjectcreate_datasetCreates a new dataset with specified name and access settings3 params
Creates a new dataset with specified name and access settings
aclModestringprivate · publicdatasetNamestringresourceobjectupdate_datasetModifies a dataset's name or access control settings2 params
Modifies a dataset's name or access control settings
aclModestringprivate · publicresourceobjectlist_releasesList content releases in Sanity, optionally filtered by state (active, scheduled, etc)2 params
List content releases in Sanity, optionally filtered by state (active, scheduled, etc)
resourceobjectstatestringactive · scheduled · published · archived · deleted · alldefault: activecreate_releaseCreate a new content release in Sanity with an automatically generated ID5 params
Create a new content release in Sanity with an automatically generated ID
descriptionstringintendedPublishAtstringreleaseTypestringasap · undecided · scheduleddefault: undecidedresourceobjecttitlestringedit_releaseUpdate metadata for an existing content release6 params
Update metadata for an existing content release
descriptionstringintendedPublishAtstringreleaseIdstringreleaseTypestringasap · undecided · scheduledresourceobjecttitlestringschedule_releaseSchedule a content release to be published at a specific time3 params
Schedule a content release to be published at a specific time
publishAtstringreleaseIdstringresourceobjectpublish_releasePublish a release immediately2 params
Publish a release immediately
releaseIdstringresourceobjectarchive_releaseArchive a release that is no longer active2 params
Archive a release that is no longer active
releaseIdstringresourceobjectunarchive_releaseRestore an archived release2 params
Restore an archived release
releaseIdstringresourceobjectunschedule_releaseRemove a previously set schedule from a release2 params
Remove a previously set schedule from a release
releaseIdstringresourceobjectdelete_releaseDelete a release2 params
Delete a release
releaseIdstringresourceobjectlist_embeddings_indicesList all available embeddings indices for a dataset1 params
List all available embeddings indices for a dataset
resourceobjectsemantic_searchPerform a semantic search on an embeddings index4 params
Perform a semantic search on an embeddings index
indexNamestringlimitintegerquerystringresourceobjectmigration_guideGet comprehensive guidance for migrating existing projects to Sanity. Supports general migration guides, analyzing existing content structures + designing Sanity schemas, and migrating content from various CMS platforms (like Contentful, WordPress, Strapi). Use this tool when...1 params
Get comprehensive guidance for migrating existing projects to Sanity. Supports general migration guides, analyzing existing content structures + designing Sanity schemas, and migrating content from various CMS platforms (like Contentful, WordPress, Strapi). Use this tool when...
guidestringgeneral · schema.generic · schema.contentful · schema.wordpress · schema.strapi · schema.drupalsearch_docsSearch Sanity docs2 params
Search Sanity docs
limitintegerquerystringread_docsRead a specific Sanity documentation article1 params
Read a specific Sanity documentation article
pathstringlist_sanity_rulesIMPORTANT: Call this FIRST before any Sanity development work. Returns available best practice rules for schemas, queries, frameworks, and visual editing. You MUST load relevant rules before writing Sanity code.
IMPORTANT: Call this FIRST before any Sanity development work. Returns available best practice rules for schemas, queries, frameworks, and visual editing. You MUST load relevant rules before writing Sanity code.
No parameter schema in public metadata yet.
get_sanity_rulesLoad Sanity development rules. ALWAYS call list_sanity_rules first to see available rules, then load all rules relevant to your task in a single call.1 params
Load Sanity development rules. ALWAYS call list_sanity_rules first to see available rules, then load all rules relevant to your task in a single call.
rulesarraySponsors
Readme
Sanity Agent Toolkit
Collection of resources to help AI agents build better with Sanity. Supports Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit, OpenCode, and any other editor/agent compatible with MCP or Agent Skills.
Features
Details
- Repository
- github.com/sanity-io/agent-toolkit
- Website
- www.sanity.io/docs/ai/mcp-server
- Category
- AI & LLM Tools
- Transport
- HTTP
- Registry
- MCP registry, active