Skip to main content
Glama

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 tools
create_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).

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

    B3.4/5.0

    Scored across 20 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers