Sanity MCP Server
by sanity-io
Sanity MCP Server implements the Model Context Protocol to connect your Sanity projects with AI tools. It enables AI models to understand your content structure and perform operations through natural language instructions.
Last updated: N/A
What is Sanity MCP Server?
The Sanity MCP Server is a tool that connects Sanity projects with AI tools using the Model Context Protocol. It allows AI models to understand content structure and perform operations based on 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, obtain API credentials (Project ID, Dataset name, API token), and add the server configuration to your application's MCP settings. The configuration requires specifying the command to run the server and environment variables for Sanity project details and API token.
Key features of Sanity MCP Server
Content Intelligence: Let AI explore and understand your content library
Content Operations: Automate tasks through natural language instructions
Schema-Aware: AI respects your content structure and validation rules
Release Management: Plan and organize content releases effortlessly
Semantic Search: Find content based on meaning, not just keywords
Use cases of Sanity MCP Server
Automating content creation and updates with AI.
Enabling semantic search for finding content based on meaning.
Managing content releases through natural language commands.
Integrating Sanity content with AI-powered editors like Claude, Cursor, and VS Code.
FAQ from Sanity MCP Server
What is the Model Context Protocol (MCP)?
What is the Model Context Protocol (MCP)?
The Model Context Protocol is a standard for connecting applications with AI models, allowing them to understand and interact with the application's data and functionality.
What API permissions are required for the Sanity MCP Server?
What API permissions are required for the Sanity MCP Server?
The required permissions depend on the usage. For read operations, the 'viewer' role is sufficient. For content management, 'editor' or 'developer' roles are recommended. For advanced operations, 'administrator' may be needed.
How do I configure the Sanity MCP Server?
How do I configure the Sanity MCP Server?
You need to add a configuration block to your application's MCP settings, specifying the command to run the server and environment variables for your Sanity project ID, dataset, and API token.
Why do I need to set up Node.js environment variables?
Why do I need to set up Node.js environment variables?
If you are using a Node version manager, you need to create symlinks to ensure that MCP servers can access the correct Node.js binaries.
What are the available tools?
What are the available tools?
The available tools include functionalities for context setup, document operations, release management, version management, dataset management, schema information, GROQ support, embeddings and semantic search, and project information.