Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Assets upload status
SANITY_MCP_ASSETS_UPLOAD_STATUSCheck one to 20 asset uploads using operationIds. Wait at least pollAfterMs between checks and group running uploads in one call. Honor HTTP Retry-After when rate limited. A status lookup error does not mean the upload failed. Results include asset IDs, URLs, and references; set includeMetadata for full metadata. Results are available for up to 24 hours. If an upload outcome is unknown, check the destination before repeating it.
Cors origins list
SANITY_MCP_CORS_ORIGINS_LISTLists all CORS origins configured for a Sanity project
Documents validate
SANITY_MCP_DOCUMENTS_VALIDATEValidate documents against the deployed schema without modifying them. This tool is in beta. Results may be incorrect or incomplete; review them before making changes.
Get document
SANITY_MCP_GET_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.
Get project studios
SANITY_MCP_GET_PROJECT_STUDIOSRetrieves all studio applications linked to a specific Sanity project
Get sanity rules
SANITY_MCP_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.
Get schema
SANITY_MCP_GET_SCHEMAFetch the deployed schema for a project and dataset. Deprecated workspaceName and schemaId selectors remain temporarily available for legacy multi-schema datasets.
Get ui context
SANITY_MCP__GET_UI_CONTEXTReturns UI enrichment data for widgets. When documentId is provided, returns schema fields, deployed Studio URL, and resolved reference previews. When documentId is omitted, returns project-level context only (Studio URL).
List datasets
SANITY_MCP_LIST_DATASETSLists all datasets in your Sanity project
List embeddings indices
SANITY_MCP_LIST_EMBEDDINGS_INDICESList all available embeddings indices for a dataset
List organizations
SANITY_MCP_LIST_ORGANIZATIONSLists all organizations the user has access to in Sanity
List projects
SANITY_MCP_LIST_PROJECTSLists all Sanity projects associated with your account
List releases
SANITY_MCP_LIST_RELEASESList releases in a dataset. By default returns active and scheduled releases. Use the state filter to find published or archived releases.
List sanity rules
SANITY_MCP_LIST_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.
List workspace schemas
SANITY_MCP_LIST_WORKSPACE_SCHEMASDeprecation notice: list_workspace_schemas is deprecated. Use get_schema to inspect the authoritative schema for a dataset. This tool temporarily remains available to list every deployed schema for a project and dataset, grouped by source (MCP-managed, Studio-deployed, or legacy). Duplicate workspace names and multiple Studio applications are expected; each entry includes a schemaId for exact reads with get_schema.
Media assets upload from url
SANITY_MCP_MEDIA_ASSETS_UPLOAD_FROM_URLDeprecated. Use media_library_upload_from_url with the same arguments. This tool does not start an upload.
Media library get document
SANITY_MCP_MEDIA_LIBRARY_GET_DOCUMENTFetch a single Media Library document by its exact ID. This is a direct ID lookup only - it does not search, filter, or query.
Media library get schema
SANITY_MCP_MEDIA_LIBRARY_GET_SCHEMAGet the document types of a Media Library, or the full field definitions for one type. Call this before querying or editing: the library schema is fixed (assets, collections, folders, aspects), and the organization's own asset aspects are merged onto `sanity.asset` under `aspects`.
Media library list
SANITY_MCP_MEDIA_LIBRARY_LISTLists the Sanity Media Libraries in an organization. Call `list_organizations` first to get an organization ID. Returns library IDs to pass as `mediaLibraryId` to the other `media_library_*` tools.
Media library list asset references
SANITY_MCP_MEDIA_LIBRARY_LIST_ASSET_REFERENCESLists documents (across project datasets) that reference a Media Library asset. Use this before replacing an asset to see what depends on it.