Sanity MCP Server
by andyciggy
The Sanity MCP Server connects Sanity projects with AI tools using the Model Context Protocol, enabling AI models to understand content structure and perform operations through natural language. It transforms content operations with AI-powered tools for Sanity.
Last updated: N/A
What is Sanity MCP Server?
The Sanity MCP Server implements the Model Context Protocol to connect Sanity projects with AI tools like Claude, Cursor, and VS Code. It allows AI models to understand your content structure and perform operations through natural language instructions.
How to use Sanity MCP Server?
To use the Sanity MCP server, you need to deploy your Sanity Studio with a schema manifest and obtain your API credentials (Project ID, Dataset name, and API token). Then, add the server configuration to your application's MCP settings, specifying the command, arguments, and environment variables for the Sanity project.
Key features of Sanity MCP Server
Content Intelligence
Content Operations
Schema-Aware
Release Management
Semantic Search
Use cases of Sanity MCP Server
Automating content creation and updates with AI
Exploring and understanding content libraries using natural language
Managing and scheduling content releases effortlessly
Finding content based on meaning, not just keywords
FAQ from Sanity MCP Server
What is the Model Context Protocol?
What is the Model Context Protocol?
The Model Context Protocol (MCP) is a standard that allows AI tools to understand and interact with data from various sources, including content management systems like Sanity.
What API permissions are required?
What API permissions are required?
The required API permissions depend on your usage. For basic read operations, the viewer
role is sufficient. For content management, the editor
or developer
role is recommended. For advanced operations, the administrator
role may be needed.
How do I configure the MCP server?
How do I configure the MCP server?
You configure the server by setting environment variables such as SANITY_API_TOKEN
, SANITY_PROJECT_ID
, and SANITY_DATASET
. You also need to configure your application's MCP settings to point to the server.
What tools are available?
What tools are available?
The server provides various tools for document operations (create, update, query), release management, version management, dataset management, schema information retrieval, GROQ support, embeddings & semantic search, and project information retrieval.
Why do I need to set up symlinks for Node.js?
Why do I need to set up symlinks for Node.js?
If you use a Node version manager like nvm, you need to create symlinks to ensure that MCP servers can access the correct Node.js binaries. This is because version managers isolate Node.js environments.