agent-toolkit
Collection of resources to help AI agents build better with Sanity.
claude mcp add --transport stdio sanity-io-agent-toolkit npx mcp-remote https://mcp.sanity.io --transport http-only
How to use
The Sanity Agent Toolkit exposes a remote MCP server that gives AI agents direct access to Sanity projects, schemas, datasets, releases, and agent rules. By connecting through MCP, agents can run GROQ queries, create and patch documents, deploy schemas, manage versions, and leverage a growing set of agent skills designed for Sanity development, content modeling, SEO, and experimentation. Tools available include query_documents, create_documents_from_json, patch_document_from_markdown, publish_documents, deploy_schema, get_schema, create_version, generate_image, search_docs, read_docs, and list_sanity_rules, enabling end-to-end content operations and governance via natural language prompts or editor integrations. The toolkit also bundles guidance for integrating with popular editors and agents (Cursor, Claude Code, VS Code, Lovable, v0, and others) through MCP.
How to install
Prerequisites:
- Node.js and npm (or npx available)
- Access to a terminal/command prompt
Option A – Use the remote MCP server (recommended):
- Ensure Node.js and npm are installed. Verify: node -v npm -v
- Start using the remote MCP server via MCP remote proxy (no local server to install):
npx mcp-remote https://mcp.sanity.io --transport http-only
Alternatively, configure clients to point at the remote server URL:
https://mcp.sanity.io
Option B – Install Agent Skills (local or alongside other tools):
- Install the Sanity Agent Toolkit skills: npx skills add sanity-io/agent-toolkit
- Follow the on-screen prompts to integrate with your editor or agent environment.
Option C – Install as a plugin (optional):
- For Claude Code or Cursor workflows, install the Sanity plugin as described in the README to bundle the MCP server, skills, and commands.
- Follow the specific plugin instructions to enable MCP access and agent capabilities.
Additional notes
Notes and tips:
- The primary MCP server URL to connect clients to is https://mcp.sanity.io. Use an http-only transport when necessary.
- When using mcp-remote, you’re delegating MCP interactions to a remote server; ensure your editor/agent supports MCP remote setups.
- If you need OAuth or additional authorization options, refer to the Sanity MCP docs linked in the README for details on authentication flows and token scopes.
- Capabilities can be extended by adding or upgrading agent skills (e.g., sanity-best-practices, content-modeling-best-practices, seo-aeo-best-practices, content-experimentation-best-practices).
- For local offline usage, you can copy skill references locally and use the Manual installation steps described in the README.
Related MCP Servers
mcp-rest-api
A TypeScript-based MCP server that enables testing of REST APIs through Cline. This tool allows you to test and interact with any REST API endpoints directly from your development environment.
adb
An MCP (Model Context Protocol) server for interacting with Android devices through ADB in TypeScript.
claude-code
MCP Server connects with claude code local command.
MCPretentious
A powerful Model Context Protocol (MCP) server that puppeteers iTerm2 terminals.
create -kit
Scaffold a production-ready Model Context Protocol (MCP) server in seconds.
playwright-autopilot
⚠️ Moved to kaizen-yutani/playwright-autopilot