Community MCP server for Sanity.io headless CMS. Agents can query content using GROQ (Graph-Relational Object Queries), create and update documents, manage image and file assets, and inspect content schemas. Real-time collaboration support. Ideal for modern web applications using Sanity as their content backend, enabling AI-powered content management and migration.
npx -y @sanity/mcp-server
{
"mcpServers": {
"sanity": {
"env": {
"SANITY_TOKEN": "your-token",
"SANITY_DATASET": "production",
"SANITY_PROJECT_ID": "your-project-id"
},
"args": [
"-y",
"@sanity/mcp-server"
],
"command": "npx"
}
}
}Query Sanity GROQ
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string"
}
}
}// Input
{
"query": "*[_type == \"post\"][0..9]{title, slug}"
}// Output
{
"result": [
{
"slug": {
"current": "hello-world"
},
"title": "Hello World"
}
]
}Community MCP server for Sanity.io headless CMS. Agents can query content using GROQ (Graph-Relational Object Queries), create and update documents, manage image and file assets, and inspect content schemas. Real-time collaboration support. Ideal for modern web applications using Sanity as their content backend, enabling AI-powered content management and migration.
Sanity provides 1 tools including query_documents.
Sanity offers a free tier with 300 calls per month. For higher usage, paid plans start at €0/month.
You can install Sanity using the following command: npx -y @sanity/mcp-server. After installation, add the provided config snippet to your Claude Desktop or Cursor configuration.
Sanity is listed under the content category in the AgentForge MCP registry.
Sanity has a current uptime of 99.85% with an average response time of 150ms.
To connect Sanity, click the "Connect Agent" button on this page to get the configuration snippet. Add it to your MCP client (Claude Desktop, Cursor, or any MCP-compatible tool). Your AI agent will then have access to all of Sanity's tools via the Model Context Protocol.