MCP Server
Sanity MCP Server
Connect your Sanity content to AI agents. Create, update, and explore structured content using Claude, Cursor, and VS Code via the Model Context Protocol. Transform content operations from complex queries to simple conversations—giving your team superpowers without sacrificing structure.
73
GitHub Stars
3/2/2026
Last Updated
MCP Server Configuration
1{
2 "name": "sanity",
3 "command": "npx",
4 "args": [
5 "-y",
6 "@sanity/mcp-server@latest"
7 ],
8 "env": {
9 "SANITY_PROJECT_ID": "your-project-id",
10 "SANITY_DATASET": "production",
11 "SANITY_API_TOKEN": "your-sanity-api-token",
12 "MCP_USER_ROLE": "developer"
13 }
14}
JSON14 lines
README Documentation
Sanity MCP Server
This local MCP server (
@sanity/mcp-server) has been deprecated in favor of the new, improved remote MCP server at mcp.sanity.io. This repository is archived and no longer maintained.
Use mcp.sanity.io
The Sanity MCP Server is now available as a hosted remote server at mcp.sanity.io. It offers:
- Streamable HTTP transport
- OAuth authentication (no API tokens to manage)
- Continuously updated tools and features
- Zero local setup — no Node.js required
Quick setup
Add this to your MCP client configuration:
{
"mcpServers": {
"sanity": {
"url": "https://mcp.sanity.io",
"type": "http"
}
}
}
Visit mcp.sanity.io for full installation instructions for Claude Code, Cursor, VS Code, and other MCP clients.
Quick Install
Quick Actions
Key Features
Model Context Protocol
Secure Communication
Real-time Updates
Open Source