The Sanity MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Sanity account. It provides structured and secure access to your content, project details, resource users, and credential status, so your agent can query documents, delete content, inspect projects, review user roles, and validate credentials on your behalf.
- Structured content queries: Instruct your agent to find and retrieve documents from your Sanity datasets using precise content criteria.
- Content deletion: Have your agent remove specific documents or batches of matching content you no longer need.
- Project details: Let the agent retrieve full information about a Sanity project whenever you need configuration or account context.
- User and role review: Direct your agent to list people who can access a resource and review their assigned roles.
- Credential validation: Have your agent confirm that your Sanity credentials work and identify the authenticated user.