agent-toolkit

MCP.Pizza Chef: sanity-io

Your assistant gets a direct line into your Sanity projects, covering the content itself, datasets, releases, and how everything is modelled, alongside an up-to-date set of house rules for building with Sanity well. Ask it to draft a document, fill an empty project with placeholder content, or sanity-check a change, and the answer is grounded in your real project. It is hosted, so nothing is installed locally, and it works in Cursor, Claude Code, VS Code, Codex, Lovable, v0, Replit, and OpenCode.

Coding
Writing

Use This MCP server To

Create placeholder content to fill an empty project Ask what content types my project already has Write a new document straight into my dataset Check my content model against Sanity best practice Look up what is sitting in a release Find documents across a dataset by topic

README

Sanity Agent Toolkit

Collection of resources to help AI agents build better with Sanity. Supports Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit, OpenCode, and any other editor/agent compatible with MCP or Agent Skills.


Features

  • MCP server: Direct access to your Sanity projects (content, datasets, releases, schemas) and agent rules.
  • Agent skills: Comprehensive best practices skills for Sanity development, content modeling, SEO/AEO, and experimentation. Includes 21 integration/topic guides and 26 focused best-practice rules.
  • Claude Code plugin: MCP server, agent skills, and slash commands for Claude Code users. Available on the official Anthropic plugin marketplace.
  • Cursor plugin: MCP server, agent skills, and commands on the Cursor Marketplace.
  • Codex plugin: MCP server and agent skills for OpenAI Codex users.

Get started

Choose your path based on how you want agents to work with Sanity:

  1. MCP server — Give your agent always up-to-date rules and full access to your Sanity projects. No local files to maintain. Works with Cursor, VS Code, Claude Code, Lovable, v0, Replit, OpenCode, and other MCP-compatible clients.
  2. Agent skills — Install best practices skills for Sanity, content modeling, SEO/AEO, and experimentation. Works with Cursor, Claude Code, and any Agent Skills-compatible agent.
  3. Plugin — Install the Sanity plugin for Cursor or Claude Code. Bundles MCP server, agent skills, and commands.
  4. Manual installation — Copy the skill references locally for offline use. You'll need to update them yourself.

Option 1: Install MCP server (recommended)

Give agents direct access to Sanity projects and always up-to-date agent rules via the MCP server.

Quick install via Sanity CLI

Run in terminal to detect and configure MCP for Cursor, Claude Code and VS Code automatically:

npx sanity@latest mcp configure

Uses your logged-in CLI user for authentication — no manual tokens or OAuth needed.

agent-toolkit FAQ

Do I need a Sanity account?
Yes. It connects to your own Sanity projects and signs in with your Sanity login.
Which apps does it work in?
Cursor, Claude Code, VS Code, Codex, Lovable, v0, Replit, OpenCode, and other MCP-compatible editors.
Do I have to paste in a token?
Usually not. Signing in through the browser is the default, though a token is supported if you prefer.
How hard is setup?
One command sets it up for Cursor, Claude Code, and VS Code, and Cursor offers a one-click install button.
Can I use this to generate test content for a new project?
Yes. Filling a project with placeholder content is one of the suggested first steps.
Is there anything to install on my computer?
No. The server is hosted, so you point your tool at its web address.