The Sanity Agent Toolkit provides an MCP server for direct access to Sanity projects and agent rules, along with best practices for Sanity development and content modeling.
From the registry: Direct access to your Sanity projects (content, datasets, releases, schemas) and agent rules
$ npx sanity@latest mcp configurehttps://www.sanity.io/docs/compute-and-ai/mcp-serverPlease install the `mcp-sanityio` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Authenticate with Sanity** — OAuth flow happens on first use. Alternatively run `npx sanity@latest mcp configure` to auto-configure your client. Run: `npx sanity@latest mcp configure` (https://www.sanity.io/docs/compute-and-ai/mcp-server)
Canonical MCP server config (HTTP transport):
- url: `https://mcp.sanity.io`
Note: Official hosted HTTP MCP server. OAuth auth. Clients without remote HTTP support can use `npx mcp-remote https://mcp.sanity.io --transport http-only` as stdio bridge.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.MCP server that exposes GraphQL operations as tools for AI models.