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.
Quickstart: Remote MCP server
The remote MCP server is hosted on Sanity's infrastructure and is the easiest way to get started.
The server follows Anthropic's official MCP specification and should work with any MCP clients. Follow the documentation for your client for how to add MCP servers. Typically, you add a section like the following to the relevant configuration file:
Internal server error