Sanity Headless CMS
Interact with Sanity CMS content, schemas, and GROQ queries from your AI coding agent.
Overview
Agents can define and modify content schemas, write GROQ queries to fetch content, manage media assets, and configure content workflows. This enables a seamless development experience where content modeling and application code evolve together.
The integration supports Sanity's unique features like portable text, image transformations, and content versioning. Teams can use AI agents to scaffold content types, generate sample content for testing, and maintain schema migrations.
Who Is This For?
- Create and modify Sanity content schemas
- Write GROQ queries to fetch and filter content
- Generate sample content for development testing
- Manage media assets and image transformations
Installation
npx @anthropic-ai/claude-code mcp add sanity -- npx -y @sanity/mcp-server Configuration
// .mcp.json
{
"mcpServers": {
"sanity": {
"command": "npx",
"args": ["-y", "@sanity/mcp-server"],
"env": {
"SANITY_PROJECT_ID": "<your-project-id>",
"SANITY_DATASET": "production",
"SANITY_API_TOKEN": "<your-token>"
}
}
}
} Explore AI Tools
Discover the best AI tools that complement your skills
Read AI & Design Articles
Tips and trends in the world of design and AI
Related Servers
Markdown Documentation Generator
Auto-generate structured project documentation from your codebase. AI agents can produce API references, guides, and architecture docs.
OpenAPI Documentation
Generate interactive API documentation from OpenAPI and Swagger specifications. Keep your API docs always up to date with your endpoints.
README Generator
Create comprehensive, well-structured project READMEs that cover installation, usage, configuration, and contribution guidelines.