
Sanity
Query and manage structured content in Sanity CMS

Sanity stores content as structured, portable data — queryable with GROQ, editable in real time, and deliverable anywhere. Teams use it for marketing sites, e-commerce, documentation, and app content. This plugin connects ZeroTwo to your Sanity project so you can query content, create documents, and manage your content model through natural conversation.
Sanity MCP server
The Sanity plugin connects ZeroTwo to Sanity. Your agents get the tools of this MCP server:
- Sanity: remote MCP server at
https://mcp.sanity.io
What an agent can do with Sanity
Query content
The agent queries the content in your Sanity project, which is stored as structured data and queryable with GROQ.
Create documents
The agent creates documents in your Sanity project from the conversation according to your content model, so new content lands in the right structure without opening the Studio.
Model your content
The agent advises on your content model, including schema design, and converts HTML or Markdown into Portable Text.
How to connect Sanity to ZeroTwo
Open Sanity in ZeroTwo
Press Open in ZeroTwo on this page, or find Sanity under Plugins in the app. Get the app first if it is not on this computer.
Sign in
Press Connect and finish the sign-in in your browser. ZeroTwo stores the token encrypted, and you can disconnect at any time.
Give an agent a task
Ask an agent for work that needs Sanity, such as one of the example prompts below. The agent uses the plugin's tools to do it.
Example prompts3
SanityQuery documents of this type and summarize the results.
SanityHelp update a Sanity schema for this content model.
SanityFind draft content that still needs review.
Apps1

Sanity
Query and manage your Sanity content platform.
Skills7
Content experimentation best practices
Content experimentation and A/B testing guidance covering experiment design, hypotheses, metrics, sample size, statistical foundations, CMS-managed variants, and common analysis pitfalls. Use this skill when planning experiments, setting up variants, choosing success metrics, interpreting statistical results, or building experimentation workflows in a CMS or frontend stack.
Content modeling best practices
Structured content modeling guidance for schema design, content architecture, content reuse, references versus embedded objects, separation of concerns, and taxonomies across Sanity and other headless CMSes. Use this skill when designing or refactoring content types, deciding field shapes, debating reusable versus nested content, planning omnichannel content models, or reviewing whether a schema is too page-shaped or presentation-driven.
Portable text conversion
Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers @portabletext/markdown (markdownToPortableText), @portabletext/block-tools (htmlToBlocks), custom deserializers, and the Portable Text specification for manual block construction.
Portable text serialization
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown, extracting plain text from Portable Text, or troubleshooting rendering issues with marks, blocks, lists, or custom types.
Sanity best practices
Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, webhooks, Blueprints, and framework integrations such as Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen, and the App SDK. Use this skill whenever working with Sanity schemas, defineType or defineField, GROQ or defineQuery, content modeling, Presentation or preview setups, Sanity-powered frontend integrations, event-driven content automation, documentEventHandler, defineDocumentFunction, defineMediaLibraryAssetFunction, @sanity/functions, @sanity/blueprints, sanity.blueprint.ts, event-driven content automation, or when reviewing and fixing a Sanity codebase.
Sanity migration
Plans, implements, and reviews migrations from other CMSes and content systems into Sanity. Use when migrating or replatforming to Sanity from AEM, Adobe Experience Manager, Contentful, Strapi, Webflow, WordPress, Payload, Drupal, Markdown/MDX/frontmatter files, WXR/XML exports, CMS APIs, database dumps, static HTML, or when designing extraction, transformation, Portable Text conversion, asset migration, redirects, validation, and cutover workflows.
Seo aeo best practices
SEO and AEO best practices for metadata, Open Graph, sitemaps, robots.txt, hreflang, JSON-LD structured data, EEAT, and content optimized for search engines and AI answer surfaces. Use this skill when implementing page SEO, technical SEO, schema markup, international SEO, AI-overview readiness, or improving content for Google, ChatGPT, Perplexity, and similar assistants.
Information6
- Developer
- Sanity
- Category
- Coding
- Version
- 0.1.6
- Website
- sanity.io
- Privacy policy
- sanity.io/legal/privacy
- Terms
- sanity.io/legal/tos
Questions
Does the Sanity plugin need an API key?
No. You sign in to your own Sanity account in the browser and approve access. ZeroTwo stores the token encrypted, and the agent never sees your password.
Does it cost anything?
The plugin itself is free. Agent work uses your ZeroTwo credits as usual, and anything Sanity charges for is billed to your Sanity account.
What does Sanity receive?
Sanity gets the requests an agent sends to it for you, such as searches, new items or the files you ask it to work with. It gets no other access to your ZeroTwo workspace.