Skip to main content
mcpSource-backedReview first Safety Privacy

Sanity MCP Server for Claude

Manage Sanity content from Claude — query documents with GROQ, create and publish content, deploy schemas and studios, manage releases, search documentation, and generate images — with the official Sanity remote MCP server hosted at mcp.sanity.io.

HarnessClaude CodeCodexCursorClaude Desktop
Review first review before installing

Open the source and read safety notes before installing.

Safety notes

  • Content creation, publishing, schema deployment, and studio operations are live — changes affect your Sanity project immediately.
  • The `deploy_schema` and `deploy_studio` tools push changes to production; review carefully before executing.

Privacy notes

  • Document content, schema definitions, dataset configurations, release metadata, and embedding index data from your Sanity project are surfaced in Claude's context.
  • Authentication uses your Sanity account via OAuth — no API tokens are stored in the MCP configuration.

Prerequisites

  • A Sanity account — sign up at sanity.io.
  • An MCP client such as Claude Code or Claude Desktop.
  • No local install or API tokens required — authenticate via OAuth on first connect.

Schema details

Install type
cli
Troubleshooting
No
Source repository stats
Scope
Source repo
Collection metadata
Estimated setup
5 minutes
Difficulty
beginner
Tool listing metadata
Disclosure
Sanity is a commercial headless CMS platform. The MCP server is officially maintained by Sanity.
Full copyable content
{
  "mcpServers": {
    "Sanity": {
      "type": "http",
      "url": "https://mcp.sanity.io"
    }
  }
}

About this resource

Overview

The Sanity MCP Server is the official remote Model Context Protocol server from Sanity, hosted at https://mcp.sanity.io. It provides 40+ tools for the full Sanity headless CMS platform: GROQ queries, document creation and publishing, schema and studio deployment, content release management, semantic search, image generation and transformation, and documentation search. Authentication is via OAuth — no API tokens needed in the config. The underlying server code is MIT licensed.

Key capabilities

  • GROQ queries — query any dataset with Sanity's powerful GROQ query language.
  • Document management — create draft versions, patch documents, publish and unpublish.
  • Schema operations — get workspace schemas and deploy schema changes.
  • Studio deployment — deploy Sanity Studio to production.
  • Content releases — create and manage structured content releases.
  • Semantic search — search on embedding indices for vector-based retrieval.
  • Image generation — generate and transform images within Sanity.
  • Documentation — search and read Sanity documentation.

Tools (40+ total, key selection)

Tool Purpose
query_documents Query content with GROQ
get_document Fetch a specific document by ID
create_documents / create_version Create draft documents
patch_documents Apply precise modifications
publish_documents / unpublish_documents Publish/unpublish content
get_schema / deploy_schema Fetch or deploy workspace schema
deploy_studio Deploy Sanity Studio
create_release / list_releases Content release management
semantic_search Search on embeddings indices
generate_image / transform_image Image generation and transformation
search_docs / read_docs Search and read Sanity documentation
list_projects / create_project Project management
list_datasets / create_dataset Dataset management

How it compares

Server GROQ queries Schema deploy Releases Semantic search Notes
Sanity MCP Yes Yes Yes Yes Official, hosted
Contentful MCP No (REST) No No Yes (via AI Actions) Official, stdio
Strapi MCP No No No No Community
WordPress MCP No No No No Community

Sanity's native GROQ query language and schema-first architecture make its MCP integration uniquely powerful for structured content operations.

Installation

Claude Code

claude mcp add Sanity -t http https://mcp.sanity.io --scope user

Run /mcp in Claude Code to authenticate with your Sanity account via OAuth.

Claude Desktop

Go to Settings → Connectors and enter https://mcp.sanity.io, or add manually:

{
  "mcpServers": {
    "Sanity": {
      "type": "http",
      "url": "https://mcp.sanity.io"
    }
  }
}

Sessions expire after 7 days; re-authenticate as needed.

Requirements

  • A Sanity account (sanity.io).
  • An MCP client (Claude Code or Claude Desktop).
  • No local install, no API tokens, no extra configuration.

Security

  • Authentication is OAuth-based using your Sanity account — no credentials are stored locally.
  • deploy_schema and deploy_studio are production-level operations — confirm before executing.
  • Document mutations are live — use draft versions to stage changes before publishing.

Source Verification Notes

Verified on 2026-06-18:

  • Official repository sanity-io/sanity-mcp-server (MIT) documents the hosted server at https://mcp.sanity.io, OAuth authentication model, 40+ tools across GROQ queries, document management, schema/studio deployment, content releases, semantic search, image generation, and documentation access.
  • Sanity's official MCP documentation at www.sanity.io/docs/ai/mcp-server (SSR, HTTP 200) describes the integration setup and connection steps.
  • Claude Code MCP documentation at code.claude.com/docs/en/mcp describes the --transport http connection pattern used above.

Source citations

Add this badge to your README

Show that Sanity MCP Server for Claude is listed on HeyClaude. Paste this Markdown into your README — it renders the badge and links back to this page.

Listed on HeyClaude
[![Listed on HeyClaude](https://heyclau.de/badge/mcp/sanity-mcp-server.svg)](https://heyclau.de/entry/mcp/sanity-mcp-server)

How it compares

Sanity MCP Server for Claude side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.

FieldSanity MCP Server for Claude

Manage Sanity content from Claude — query documents with GROQ, create and publish content, deploy schemas and studios, manage releases, search documentation, and generate images — with the official Sanity remote MCP server hosted at mcp.sanity.io.

Open dossier
Contentful MCP Server for Claude

Create, update, publish, and manage content in Contentful from Claude — entries, assets, content types, locales, spaces, environments, and AI actions — with the official Contentful Management API MCP server supporting semantic search and vector-based content discovery.

Open dossier
Webflow MCP Server for Claude

Manage Webflow sites, pages, CMS collections, collection items, assets, and forms from Claude — with the official Webflow MCP server that connects AI agents to the Webflow Data API via OAuth.

Open dossier
Fly.io MCP Server for Claude

Manage Fly.io applications, machines, volumes, secrets, certificates, and organizations from Claude — with the official Fly.io MCP server built into the flyctl CLI.

Open dossier
Trust
Install riskReview firstReview firstReview firstReview first
Notes Safety Privacy Safety Privacy Safety Privacy Safety Privacy
Categorymcpmcpmcpmcp
Sourcesource-backedsource-backedsource-backedsource-backed
AuthorSanityContentfulWebflowFly.io
Added2026-06-182026-06-182026-06-182026-06-18
Platforms
Claude CodeCodexCursorClaude Desktop
Claude CodeClaude Desktop
Claude CodeClaude Desktop
Claude CodeClaude Desktop
Source repo
Safety notesContent creation, publishing, schema deployment, and studio operations are live — changes affect your Sanity project immediately. The `deploy_schema` and `deploy_studio` tools push changes to production; review carefully before executing.This server uses the Contentful Management API — it can create, update, publish, unpublish, and delete entries, assets, content types, and environments. Use `PROTECTED_ENVIRONMENTS` (comma-separated list) to block write/delete operations on specific environments like `master` or `staging`. Creating or deleting Contentful environments is irreversible for the deleted environment; confirm before executing destructive operations.CMS collection item create, update, and delete operations write directly to your Webflow project — confirm before applying changes to live sites. Publishing operations make content publicly visible immediately; review changes before asking Claude to publish. The remote server requires OAuth authorization — you control which sites Claude can access during the OAuth flow.The Fly.io MCP server runs locally with full access to your authenticated Fly.io account — it can create, delete, and modify apps, machines, and secrets. Fly.io warns that running the server remotely can give others access to run commands on your behalf; keep it bound to localhost unless you intend remote access. Destructive operations (machine deletion, secret updates) are available — review Claude's proposed commands before executing in production environments.
Privacy notesDocument content, schema definitions, dataset configurations, release metadata, and embedding index data from your Sanity project are surfaced in Claude's context. Authentication uses your Sanity account via OAuth — no API tokens are stored in the MCP configuration.Content entries, asset metadata, content type schemas, locale settings, and AI action configurations from your Contentful space are surfaced in Claude's context. Your `CONTENTFUL_MANAGEMENT_ACCESS_TOKEN` grants full read/write access to the space — treat it as a secret and do not commit it to version control.Site structure, page content, CMS collection schemas, collection items, form submissions, and asset metadata from your Webflow workspace are surfaced in Claude's context. OAuth authentication scopes access to specific sites you authorize — no credentials are stored in your MCP config when using the remote server.App names, machine IDs, secret names (not values unless explicitly requested), and log content may be surfaced into Claude's context. Fly.io API tokens (`FLY_ACCESS_TOKEN`) grant full account access — store them in your environment, not in repositories.
Prerequisites
  • A Sanity account — sign up at sanity.io.
  • An MCP client such as Claude Code or Claude Desktop.
  • No local install or API tokens required — authenticate via OAuth on first connect.
  • A Contentful account with a Space ID (Dashboard → Settings → General Settings).
  • A Contentful Management API (CMA) personal access token (Dashboard → Settings → API Keys → Personal Access Tokens).
  • Node.js with `npx` available.
  • An MCP client such as Claude Code or Claude Desktop.
  • A Webflow account — authenticate via OAuth on first use when using the remote server.
  • For the local server: Node.js 22.3.0+ and a Webflow API token from Account Settings → Integrations → API Access.
  • An MCP client such as Claude Code or Claude Desktop.
  • flyctl installed — see fly.io/docs/flyctl/install/ (Homebrew: `brew install flyctl`)
  • Logged in to Fly.io: `fly auth login`
  • Or set `FLY_ACCESS_TOKEN` environment variable for headless/CI use.
  • An MCP client such as Claude Code or Claude Desktop.
Install
claude mcp add Sanity -t http https://mcp.sanity.io --scope user
claude mcp add contentful -e CONTENTFUL_MANAGEMENT_ACCESS_TOKEN=your-cma-token -e SPACE_ID=your-space-id -- npx -y @contentful/mcp-server
claude mcp add --transport http webflow https://mcp.webflow.com/sse
fly mcp server --claude
Config
{
  "mcpServers": {
    "Sanity": {
      "type": "http",
      "url": "https://mcp.sanity.io"
    }
  }
}
{
  "mcpServers": {
    "contentful-mcp": {
      "command": "npx",
      "args": ["-y", "@contentful/mcp-server"],
      "env": {
        "CONTENTFUL_MANAGEMENT_ACCESS_TOKEN": "your-cma-token",
        "SPACE_ID": "your-space-id",
        "ENVIRONMENT_ID": "master",
        "CONTENTFUL_HOST": "api.contentful.com",
        "PROTECTED_ENVIRONMENTS": "master,staging"
      }
    }
  }
}
{
  "mcpServers": {
    "webflow": {
      "command": "npx",
      "args": ["webflow-mcp-server"],
      "env": {
        "WEBFLOW_TOKEN": "your-webflow-api-token"
      }
    }
  }
}
{
  "mcpServers": {
    "fly": {
      "command": "fly",
      "args": ["mcp", "server"]
    }
  }
}
Citations
ClaimUnclaimedUnclaimedUnclaimedUnclaimed

Signals

Loading live community signals…

More like this, weekly

A short, calm digest of reviewed Claude resources. Unsubscribe any time.