# Sanity MCP
> Sanity's hosted MCP server lets an AI client query GROQ, inspect schemas and manage Sanity content, projects, datasets, releases and assets within the authenticated user's permissions.
Canonical: https://www.mcpfolio.com/servers/sanity-cms
Last updated: 2026-10-28
## Catalog record

- Publisher: Sanity
- Categories: search

## Website

https://www.sanity.io/docs/ai/mcp-server

## Authentication

OAuth by default. Alternatively, an Authorization Bearer API token can be configured; permissions then follow the token role. OAuth sessions typically expire after seven days.

## Tools

- **dataset_assets_upload_from_web_chatgpt**: Upload an attachment from ChatGPT web to a Content Lake dataset.
- **dataset_assets_upload_from_url**: Start an image or file upload from a public URL to a dataset.
- **media_library_upload_from_url**: Start an image, video or file upload from a public URL to a Media Library.
- **media_assets_upload_from_url**: Deprecated: use media_library_upload_from_url instead.
- **assets_upload_status**: Check the status of one or more asset uploads.
- **media_library_upload_from_file**: Prepare an upload URL for a local or private file in a Media Library.
- **dataset_assets_upload_from_file**: Prepare an upload URL for a local or private file in a dataset.
- **get_schema**: Fetch the deployed schema for a project and dataset.
- **list_workspace_schemas**: List deployed schema sources and IDs for a workspace.
- **deploy_schema**: Deploy schema types to the cloud.
- **deploy_studio**: Deploy a managed Sanity Studio.
- **create_documents**: Create draft documents or release versions.
- **create_version**: Create a version document for a release.
- **patch_documents**: Patch draft or release-version documents.
- **query_documents**: Query Sanity documents using GROQ.
- **generate_image**: Start asynchronous AI image generation for a document field.
- **transform_image**: Start asynchronous AI transformation of an image.
- **get_document**: Fetch one document by exact ID.
- **documents_validate**: Validate documents against the deployed schema.
- **publish_documents**: Publish one or more drafts.
- **unpublish_documents**: Move published documents back to drafts.
- **discard_drafts**: Discard drafts while leaving published documents intact.
- **version_discard**: Discard document versions from a release.
- **list_organizations**: List organizations accessible to the authenticated user.
- **list_projects**: List projects accessible to the authenticated user.
- **get_project_studios**: List Studio applications linked to a project.
- **create_project**: Create a Sanity project with a dataset and API tokens.
- **cors_origins_list**: List CORS origins configured for a project.
- **add_cors_origin**: Add allowed CORS origins to a project.
- **cors_origins_delete**: Remove a CORS origin from a project.
- **whoami**: Return the authenticated Sanity account.
- **list_datasets**: List datasets in a project.
- **create_dataset**: Create a dataset with specified access settings.
- **update_dataset**: Update a dataset name or access settings.
- **create_release**: Create a release for grouping content changes.
- **list_releases**: List releases in a dataset.
- **list_embeddings_indices**: List embeddings indices for a dataset.
- **semantic_search**: Run semantic search against an embeddings index.
- **media_library_list**: List Media Libraries available in an organization.
- **media_library_get_schema**: Fetch Media Library document types or field definitions.
- **media_library_query_documents**: Query documents in a Media Library using GROQ.
- **media_library_get_document**: Fetch a Media Library document by exact ID.
- **media_library_create_documents**: Create supported documents in a Media Library.
- **media_library_patch_documents**: Edit supported Media Library metadata or collection membership.
- **media_library_publish_documents**: Publish Media Library asset drafts.
- **media_library_discard_drafts**: Discard Media Library asset drafts.
- **media_library_list_asset_references**: List documents referencing a Media Library asset.
- **media_library_link_assets**: Link Media Library assets into project documents.
- **run_sanity_cli**: Run a limited set of Sanity CLI commands.
- **search_docs**: Search Sanity documentation.
- **read_docs**: Fetch a Sanity documentation article.
- **list_sanity_rules**: List available Sanity best-practice rules.
- **get_sanity_rules**: Load selected Sanity best-practice rules.
- **give_sanity_feedback**: Submit feedback about Sanity MCP or its documentation.

## Sources

- [official_tool_reference](https://www.sanity.io/docs/ai/mcp-server)
- [official_documentation_or_source](https://www.sanity.io/docs/ai/mcp-server)

## Setup

Use the interactive setup panel on [the detail page](https://www.mcpfolio.com/servers/sanity-cms) to view instructions for each supported client.