Sanity MCP integration
Headless CMS and structured content platform
Sign in, add Sanity in Apps, then choose the account your AI can use.
Get started with Sanity
- Add Sanity to your Weavz workspace and connect the account you want to use.
- Review the available tools below and enable the actions your task needs. Check the account permissions before allowing changes.
- Connect a compatible AI client to your workspace, or use the actions API from your application.
Tools
| Name | Description |
|---|---|
Query Documents (GROQ) queryRun a GROQ query against a Sanity dataset with optional parameters. | Run a GROQ query against a Sanity dataset with optional parameters. |
Get Document get_documentFetch a Sanity document by ID. | Fetch a Sanity document by ID. |
List Documents by Type list_documents_by_typeList recent documents of a Sanity document type. | List recent documents of a Sanity document type. |
Create Document create_documentCreate a Sanity document. The document is not published separately; Sanity document visibility depends on the ID and dataset rules. | Create a Sanity document. The document is not published separately; Sanity document visibility depends on the ID and dataset rules. |
Update Document update_documentPatch fields on an existing Sanity document. | Patch fields on an existing Sanity document. |
Delete Document delete_documentDelete a Sanity document. Requires explicit confirmation. | Delete a Sanity document. Requires explicit confirmation. |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('sanity', 'query', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'sanity',
input: { /* ... */ },
})Related Integrations
Explore integrations in other categories
Frequently Asked Questions
Is there a Sanity MCP server through Weavz?
Yes. Add the Sanity integration to a Weavz workspace, enable the actions you need and connect any required account. Weavz provides the workspace MCP endpoint in Tool Mode or Code Mode. The catalog currently lists 6 Sanity actions.
What can an AI agent do with Sanity?
Available actions include Query Documents (GROQ), Get Document, List Documents by Type, Create Document, Update Document, and more. Your workspace exposes only the actions you enable. The agent also needs the intended account access and any required input values.
How do I connect Sanity to Claude or ChatGPT?
Use a compatible remote MCP client, add the Weavz connector and choose a workspace. Add Sanity, connect the required account and review the enabled actions. Client availability and account requirements vary; adding the connector does not authorize every app automatically.
Can I use Sanity through an API or SDK?
Yes, supported actions can run through the Weavz REST API, TypeScript SDK or Python SDK. Configure a workspace and the required connections, use scoped access, and pass the intended end-user context when acting for a customer.
What authentication does Sanity require?
The catalog lists custom credentials for Sanity. Use Hosted Connect to authorize the intended account. Required permissions, provider app access and available connection methods depend on the integration.
How do I review sensitive Sanity actions?
Limit enabled actions, scope credentials to the intended user and configure Human Gates for the operations that need review. A matching policy can pause a send, record change or other sensitive action for an approver before execution.
What limits or costs apply to Sanity?
Weavz plan limits apply to the actions and resources you use. The external provider may also require an account, a paid plan, API credits or specific permissions, and may enforce its own rate limits. Check current Weavz pricing and the provider’s terms before rollout.
Connect Sanity in minutes
Get 20,000 free action executions every month. No credit card required.