Introducing Sanity MCP Server: Connect your content to AI tools
Written by Knut Melvær, Even Westvang
Have you ever wished you could just ask your favorite AI Agent to find, update, or create content for you? The Model Context Protocol (MCP) makes this possible, and we've built a server that brings this capability to your Sanity projects. The Sanity MCP server connects your structured content directly to AI agents like Claude and Cursor, letting you manage content through natural language conversations.
Need to update product descriptions across multiple pages? Want to organize content for a seasonal campaign? Simply describe what you need, and let the AI handle the technical details. No more switching contexts or remembering query syntax.
Here's what you can do with the Sanity MCP server:
- Query your content using natural language instead of writing GROQ
- Create and update documents by describing what you want
- Organize content releases and schedule publication
- Explore your schema without digging through documentation
- Perform semantic searches across your content
- Get information about your projects
- Create and update datasets
Let's get practical and see how you can start using the MCP server today.
Setting up the MCP server in minutes
If you're itching to see the MCP server in action (and who wouldn't be?), let's get you up and running in minutes. The setup is straightforward—just follow these steps, and you'll be able to converse with your content in no time.
Go to the GitHub repository for full documentation.
First, make sure you've deployed your schema manifest. This is crucial because the MCP server needs to understand your content structure to work on it:
Internal server error