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.
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
- Scope
- Source repo
- Estimated setup
- 5 minutes
- Difficulty
- beginner
- Website
- https://www.sanity.io
- 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_schemaanddeploy_studioare 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 athttps://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/mcpdescribes the--transport httpconnection pattern used above.
Source citations
Add this badge to your README
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.
| Field | 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. 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 risk | Review first | Review first | Review first | Review first |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Category | mcp | mcp | mcp | mcp |
| Source | source-backed | source-backed | source-backed | source-backed |
| Author | Sanity | Contentful | Webflow | Fly.io |
| Added | 2026-06-18 | 2026-06-18 | 2026-06-18 | 2026-06-18 |
| Platforms | Claude CodeCodexCursorClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop |
| Source repo | — | — | — | — |
| 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. | ✓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 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. | ✓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 |
|
|
|
|
| Install | | | | |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.