Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Sanity

MCP server by sanity-io Verified · www.sanity.io

Gives AI assistants direct access to Sanity projects, including content, datasets, releases and schemas. It also loads Sanity agent rules on demand. Built for developers who use MCP-compatible agents with Sanity.

  • Score 87
  • 203 stars
  • MIT
  • Updated

Install Sanity

Built from the published package, never by AI.

claude mcp add --transport http sanity https://mcp.sanity.io

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Sanity in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the sanity block.

About

The Sanity MCP server connects AI assistants to Sanity projects over HTTP at https://mcp.sanity.io. The assistant can read and change content, manage datasets, releases and schemas, and load agent rules. The source says there are no local files to maintain, since the server is hosted. Setup is listed for Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit and OpenCode. The source also describes a CLI command, npx sanity@latest mcp configure, that detects and configures Cursor, Claude Code and VS Code.

Authentication uses OAuth by default. Manual configuration can use an Authorization Bearer token instead. The server is part of the wider Sanity Agent Toolkit, which also includes agent skills and plugins. It is intended for developers and content teams building with Sanity who want their agent to work with live project data.

Written from the project's README and checked against it.

Tools it gives your assistant

  • query_documentsRuns GROQ queries directly against Sanity content.
  • create_documentsCreates draft documents from structured content, or versions them when a release ID is provided.
  • patch_documentsMakes surgical edits to existing documents.
  • publish_documentsPublishes documents. unpublish_documents removes them from publication.
  • deploy_schemaDeploys MCP-managed schemas. get_schema inspects deployed schemas.
  • create_releaseCreates Content Releases. list_releases inspects existing releases.
  • generate_imageGenerates images with AI. transform_image edits existing images.
  • whoamiVerifies which Sanity user is authenticated.
  • search_docsSearches Sanity documentation. read_docs reads specific pages.
  • get_sanity_rulesLoads Sanity agent rules on demand. list_sanity_rules lists them.

What you need

  • A Sanity account with access to the project
  • An MCP-compatible AI client
  • Sanity AI credits for image generation and versioning with an instruction

Try asking

  • Query my Sanity project for the latest published blog posts
  • Create a blog post schema in Sanity
  • Review my GROQ query and Next.js Visual Editing setup

Good to know

  • generate_image, transform_image and create_version with an instruction consume Sanity AI credits.
  • Published documents are edited by creating or updating drafts.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Sanity

All alternatives →

Compare with GitDiagram, mockserver or XcodeBuildMCP

Sanity: common questions

Does the Sanity MCP server need an API token?

The CLI setup uses your logged-in CLI user, so no manual token is needed. Manual setup uses OAuth by default, and you can set an Authorization Bearer token instead.

Which AI tools work with the Sanity MCP server?

The source lists Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit and OpenCode. It also says other MCP-compatible clients can add https://mcp.sanity.io as the server URL.

Does using the MCP server cost Sanity AI credits?

Only some tools do. The source says generate_image, transform_image and create_version with an instruction consume Sanity AI credits.

How do I install Sanity?

In Claude Code run claude mcp add --transport http sanity https://mcp.sanity.io. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Sanity the official server?

Sanity is published by www.sanity.io from its verified domain in the official MCP Registry.

Is Sanity free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Sanity safe to use?

It scores 87 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to Sanity?

Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.

Does Sanity work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

Sanity Install

Add to stack

Loading.