agent-toolkit
by sanity-io·★ 137·Score 49
MCP server providing direct access to Sanity projects with content management tools and development best practices.
Overview
The Sanity Agent Toolkit is a comprehensive MCP server that connects AI agents directly to Sanity projects, enabling content creation, management, and deployment. It provides tools for querying documents, creating content from JSON/Markdown, managing document lifecycles, deploying schemas, and more. The toolkit also includes best practice skills for content modeling, SEO/AEO, and experimentation, following Agent Skills format.
Try asking AI
After installing, here are 7 things you can ask your AI assistant:
When to choose this
Choose this if you're already using Sanity CMS and want AI agents to directly interact with your content management system, schemas, and releases.
When NOT to choose this
Don't choose this if you're not using Sanity CMS, as it requires integration with their platform and provides no value for other CMS systems.
Tools this server exposes
12 tools extracted from the READMEquery_documentsRun GROQ queries directly
create_documents_from_jsonCreate draft documents from JSON
create_documents_from_markdownCreate draft documents from Markdown
patch_document_from_jsonMake surgical edits to existing documents using JSON
patch_document_from_markdownEdit existing documents using Markdown
publish_documentsPublish documents to make them publicly available
unpublish_documentsUnpublish documents to hide them from public view
deploy_schemaDeploy schema changes to Sanity
get_schemaRetrieve current schema information
create_versionCreate version documents for releases
generate_imageGenerate AI images with Sanity
transform_imageEdit existing images with AI tools
Comparable tools
Installation
Quick Install
For most MCP-compatible clients:
npx sanity@latest mcp configureManual Install
Add to your MCP configuration (format varies by client):
{
"mcpServers": {
"Sanity": {
"type": "http",
"url": "https://mcp.sanity.io"
}
}
}Claude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"Sanity": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.sanity.io", "--transport", "http-only"]
}
}
}FAQ
- What authentication method does the Sanity MCP server use?
- It uses your logged-in CLI user for authentication. No manual tokens or OAuth needed when using the Sanity CLI to configure. For other clients, OAuth authentication is required.
- Which MCP clients are compatible with the Sanity Agent Toolkit?
- The server works with Cursor, VS Code, Claude Code, Lovable, v0, Codex, Replit, OpenCode, and any other MCP-compatible clients. It also supports Agent Skills format for compatible agents.
- What capabilities does the MCP server provide?
- Tools include document querying (GROQ), content creation (JSON/Markdown), document patching, publishing/unpublishing, schema management, versioning, image generation/transformation, Sanity documentation search, and rule management.
Compare agent-toolkit with
Last updated · Auto-generated from public README + GitHub signals.