Sanity

Sanity integration: MCP, agent skills, slash commands. Query, author, optimize GROQ, design schemas, Visual Editing.

Play video

Integrate Sanity's content platform directly into Claude Code. This plugin connects to Sanity via an MCP server at mcp.sanity.io, giving you tools to query and author content, execute and optimize GROQ queries, create and modify documents, publish and unpublish content, inspect and deploy schemas, generate AI-powered images, and search Sanity documentation — all without leaving your editor.

The plugin includes four agent skills that encode deep platform expertise: sanity-best-practices covers GROQ patterns, schema design, Visual Editing, Portable Text, Studio configuration, TypeGen, localization, migrations, and framework-specific guidance for Next.js, Nuxt, Astro, SvelteKit, and more; content-modeling-best-practices helps you design schemas that treat content as reusable data rather than page layouts; seo-aeo-best-practices guides metadata, JSON-LD structured data, EEAT, and optimization for both search engines and AI answer surfaces; and content-experimentation-best-practices provides A/B testing methodology and statistical design foundations.

How to use: After installing, use the slash commands to get started. Type /sanity to explore available capabilities and onboard a new project. Use /review to analyze your code against Sanity best practices, /typegen to manage TypeGen operations, and /deploy-schema to handle schema deployments. You can also prompt naturally — try "write a GROQ query to fetch all published blog posts with their authors", "design a content model for an e-commerce product catalog", or "set up Visual Editing for my Next.js app".