Sanity
www.sanity.ioA structured content platform with a queryable Content Lake, content management tools, studio deployments, and agent integrations.
What your agent can do
manage releases, and patch documents
Via MCP.
Query and mutate structured content with the Sanity HTTP API.
Via API.
Query structured Sanity content through a deployed GraphQL schema.
Via API.
Tasks depend on the interface and permissions.
Connection methods
Choose a route that fits your agent.
MCP
For compatible agent apps
OAuth sign-in
Docs checkedView setup for MCPCLI
For agents with a terminal
OAuth sign-in
Docs checkedView setup for CLIAPI
For custom integrations
an access token
View paths for APIMCP connection
MCP server URL
https://mcp.sanity.io- Authentication
- supports authentication through both OAuth
CLI connection
CLI package
sanity- Authentication
- browser-based OAuth flow
API connection
Query and mutate structured content with the Sanity HTTP API.
API path
https://{project}.api.sanity.io- Authentication
- Authorization: Bearer <token>
Query structured Sanity content through a deployed GraphQL schema.
API path
https://<projectId>.api.sanity.io/v2023-08-01/graphql/<dataset>/<tag>View sources and checks
- API · Query and mutate structured content with the Sanity HTTP API.
- MCP · manage releases, and patch documentsChecked 13 Oct 2026
- API · Query structured Sanity content through a deployed GraphQL schema.
- CLI · signing in, managing tokens, signing out, switching accountsChecked 13 Oct 2026