Key Takeaways

  • Sanity API access: Yes, free, Growth, and Enterprise.
  • Sanity MCP server: Official, hosted, OAuth by default, or Bearer API token.
  • Sanity pricing and limits: Most MCP tools are standard API calls and do not consume AI credits. generate_image and transform_image consume AI credits.
  • Sanity connects with Claude Code, Cursor, VS Code.

You want an agent to query and manage the content in your Sanity projects. Sanity includes API capacity on its Free plan, and its official hosted MCP server uses OAuth by default; most MCP tools use standard API calls rather than AI credits.

For full seat pricing, plan limits and team workflows beyond developer endpoints, read our Sanity review or compare category peers in Website Builders & CMS tools with an API.

What does the Sanity API include?

Sanity provides API access on Free, Growth, and Enterprise using Bearer API token for private, draft, or write requests.

What you need to knowDetail
Plan that includes itFree, Growth, and Enterprise
What it costsFree includes 250,000 API requests and 1 million API CDN requests per month. Growth charges $1 per additional 25,000 API requests and $1 per additional 250,000 API CDN requests.
Sign-inBearer API token for private, draft, or write requests
Rate limits25 mutations/s and 25 uploads/s per IP; 500 global API calls/s per IP; cached CDN responses are unlimited. Per dataset: 500 concurrent queries and 100 concurrent mutations.
OpenAPI fileYes
Official SDKsJavaScript, TypeScript
WebhooksYes
DocsAPI documentation

What you can do with it

  • Query Content Lake with GROQ
  • Create, edit, and delete documents transactionally
  • Manage document and transaction webhooks

What it does not cover

  • Use the CDN for draft or release perspectives
  • Run Sanity Studio schema validation rules on API mutations

Sources:PricingHTTP API referenceTechnical limitsAuthentication and tokensWebhooks API reference

How does the Sanity MCP server work?

Sanity supports an official hosted MCP server authenticated with OAuth by default, or Bearer API token.

What you need to knowDetail
Who makes itOfficial, run by Sanity
Where it runsHosted by the vendor, nothing to install
Address or packagehttps://mcp.sanity.io
Sign-inOAuth by default, or Bearer API token
UsageMost MCP tools are standard API calls and do not consume AI credits. generate_image and transform_image consume AI credits.
Works withClaude CodeCursorVS Code

Before you connect it

  • OAuth makes requests on your behalf, while API-token calls are limited to that token's role and permissions.
  • The server can create, patch, and publish documents, so a connected agent can change content.
  • Custom validation rules are skipped when documents are changed through MCP.

See how sibling tools handle programmatic connections in MCP servers for website builders & cms tools.

Sources:Sanity MCP server

Which MCP tools does Sanity expose?

The Sanity MCP server exposes 5 documented MCP tools for connected AI clients.

ToolWhat it doesAccess
query_documentsRuns a GROQ query against documentsRead only
get_documentFetches one document by its exact IDRead only
create_documentsCreates documents from structured contentChanges data
patch_documentsUpdates existing documents with patch operationsChanges data
publish_documentsPublishes one or more draftsChanges data

How do you connect Sanity to your AI app?

Sanity documents direct connection steps for Claude Code, Cursor, VS Code.

Claude Code

  1. Run claude mcp add Sanity -t http https://mcp.sanity.io --scope user.
  2. Start Claude Code and authenticate with OAuth when prompted.

Cursor

  1. Open the Command Palette and choose View: Open MCP Settings.
  2. Create a server with type http and URL https://mcp.sanity.io.
  3. Save the configuration and authorize access with OAuth.

VS Code

  1. Open the Command Palette and run MCP: Open User Configuration.
  2. Add a server with type http and URL https://mcp.sanity.io, then save.
  3. Authenticate with OAuth when VS Code prompts you.

How did we check Sanity API and MCP access?

Sanity verification summary: Every fact comes from the vendor's own pricing, documentation and help pages, read on the date shown. Last checked 27 Nov 2026 following how we check figures and our AI agent readiness study.

Sources:PricingHTTP API referenceTechnical limitsAuthentication and tokensWebhooks API referenceSanity MCP server

What are common questions about Sanity API and MCP?

Which Sanity plan includes API access?

The pricing table lists API and API CDN request allowances for Free, Growth, and Enterprise. Free includes 250,000 API requests and 1 million API CDN requests per month.

What does Sanity charge for API overages?

On Growth, additional API requests cost $1 per 25,000 and additional API CDN requests cost $1 per 250,000. Most MCP tools use standard API calls without consuming AI credits; generate_image and transform_image consume AI credits.

Can a Sanity MCP connection change live content?

Yes. The documented server includes tools to create and patch documents and to publish drafts. OAuth acts on your behalf, while an API token is limited to its role and permissions.