# Connect Sanity.io to Your AI Agent (Universal MCP)

> Use your AI to publish content, query data, and update records in Sanity.io — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http sanity-io https://api.universalmcp.app/mcp/sanity-io`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/sanity-io` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "sanity-io", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Sanity.io | Category: ERP & Accounting (Sanity.io) | Auth: Encrypted workspace API key
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Content documents, Schema definitions, Publishing actions; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=sanity-io | Guide: https://universalmcp.app/mcp/sanity-io
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (8 actions: 2 Read, 6 Write)
Perform 8 actions across content, content releases, projects, and documents. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Content (3):** Migrate Content (write), Update Content (write), Query Content (read)
- **Content Releases (3):** Create Content Release (write), Preview Content Release (read), Publish Content Release (write)
- **Projects (1):** Spin Up Project (write)
- **Documents (1):** Bulk Edit Documents (write)

## Example Prompts for Sanity.io
- **Draft inventory:** "List all draft documents in the production dataset with missing SEO fields, grouped by content type."
- **Schema check:** "Show the Sanity schema fields and validation rules for the article type used in the blog dataset."
- **Revision history:** "Summarize the last five revisions on the Spring pricing article, including editors and changed fields."
- **Publish draft:** "Draft a publish request for the Harbor Retail FAQ page, but do not publish until I approve it."
