Skip to content
Agents tracked: 504 Releases (7d): 602 Agent status: no reported issuesSince last limit reset: Claude 13d · Codex 11d For AI agents: Markdown Updated Nov 24, 2026

Sanity

Hosted content for sites, edited by your team.

Databases and backendsOfficial MCP server

WebsitePricingGitHub

1. Price

Free tier: 20 seats, 2 datasets, 10k documents, 250k API requests/month, 1000 AI credits/month. As reported on the official pricing page, checked Oct 9, 2026.

sanity.io/pricing

Checked against the maker's official pages, pricing on Oct 9, 2026. Tap a verdict to see its source.How we checkedReport an error

What Sanity does

Sanity keeps the text, pictures and other content of your website or app in an online store, with an editing screen your team can shape to fit. Your site asks Sanity for the content it shows, and editors change it without touching code. The free plan covers small projects; paid plans charge per editor seat.

  • Sanity is one of 29 APIs in the Databases and backends category on AgentGid.
  • Its cheapest paid plan ($15 a month) is the 10th cheapest of the 18 here with a monthly plan.
  • It is one of 26 that can be started for free.
  • It ships an official MCP server, like 7 others here.
  • Its official SDK is the 9th most downloaded in the category (5.4M a week).

What people build with it

Blog or marketing site editors can update

Your team writes and edits posts and landing pages in the editing screen, and the site picks up the changes.

Pictures cut to size by editors

Editors upload one photo and mark its focus point; each page asks for the exact size it needs and the crop follows the editor's choice.

Product catalog for a shop

Keep product descriptions, pictures and categories in one place and show them on your shop, your app and in emails.

Preview pages before publishing

Editors see the page as it will look while they type, and publish when it is ready.

Let your AI assistant manage content

Connect Claude Code or Cursor to your project so the assistant can read, create and update content for you.

Site in several languages Idea

Store each page in every language you support and let translators work in the same editing screen.

Sanity popularity

5.4M
SDK downloads a week
16
public agent repos use its SDK
114
GitHub stars, sanity-io/client

SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026.

Pricing

Free tier

20 seats, 2 datasets, 10k documents, 250k API requests/month, 1000 AI credits/month

Cheapest plan

$15 a month

Usage price

$1 per 25k API requests, $1 per 250k CDN requests, $0.05 per AI credit, $1 per 1M function invocations

Plans

Added automatically: its SDK was in 14 of the public agent repos we sampled when it was added; a hosted MCP server in the official MCP Registry. Prices read from the official pricing page.

What one action costs

ActionPrice
25,000 extra API requests on Growth$1
250,000 extra API CDN requests on Growth$1 per 250k
1 extra AI credit on Growth$0.05
1 editor seat a month on Growth$ 15
Price history
  • A year of the pricing page in the Internet Archive (11 months): the lowest monthly figure went from $299 (2025-10) to $299 (2026-10).
  • 2026-06: free plan no longer shown
  • 2026-07: no longer shown $1399/mo

As reported on the official pricing page, checked Oct 9, 2026. Prices change: confirm before you buy. sanity.io/pricing

Limits

Free

10,000 documents, 250k API requests and 1M API CDN requests a month, 2 public datasets, 20 seats

Free / Growth

250k API requests a month included on both; Growth pays $1 per extra 25k

All plans

500 API calls a second per IP address, 25 writes a second, 500 queries at once per dataset; cached CDN reads are not rate limited

All plans

A query may run at most 1 minute

From the official docs. sanity.io/pricing

Key and access

How it signs in

Robot (project) token as Authorization: Bearer; reading published content from a public dataset needs no token

Environment variable
SANITY_SECRET_TOKEN (the name used in the official client README; your own choice)
Safe in browser code
No, keep it on your server
Card at sign-up

No

Steps only a person can do

  • Sign up for Sanity (or sign in through the browser when sanity init asks), and choose a plan. Use the projectId and dataset name that init prints; put them in .env.
  • Create a robot token with the narrowest role you need, if the site reads drafts or private data or writes content. Store it as SANITY_SECRET_TOKEN on the server only.
  • Add your site's address (and localhost port) to the project's CORS origins. Browser requests from that address start working.

Commercial use and your data

The hosted content store is a paid service with a free plan, and you keep the rights to your content. The editing app and the client libraries are open source under the MIT license.

In a paid app
Yes

Allowed on any plan within its quotas; you keep the rights to your content.

“As between the Parties, except for the limited rights provided herein, Subscriber retains all right, title, and interest (including any and all intellectual property rights) in and to the Subscriber Data as provided to Sanity.” source

redistribute-files
With conditions

The Studio and client libraries are MIT, so you may ship them with their license notice; the hosted service itself is not yours to redistribute.

“"license":"MIT"” source

client-work
With conditions

Fine; the client should own the project or organization, since content and billing belong to the subscriber.

“Subscriber shall be solely responsible for ensuring that all Subscriber Data complies with applicable laws.” source

Keeps your data

“Sanity is not obligated to maintain Subscriber Data for more than thirty (30) days following termination or expiration of the Subscription Term;”

Errors to handle

400 queryParseError

The GROQ query has a syntax error, a parameter is invalid, or the CDN got a perspective it does not serve.

Fix the query or parameter; do not retry as is.

401

The token is invalid or expired.

Create a new robot token in the project settings and replace it on the server.

404

The dataset name does not exist in this project.

Check the projectId and dataset name.

429

Too many requests from one address for that kind of request.

Retry with backoff (the client does it for queries); queue writes yourself and read through the CDN.

Use it from an agent

Our agent check

4 of 6: llms.txt yes, OpenAPI no, SDK yes, MCP yes, status page no, AI assistants allowed yes

Checked Nov 13, 2026.

MCP server

Sanity MCP server (hosted, OAuth or token)

claude mcp add Sanity -t http https://mcp.sanity.io --scope user

npm
npm install @sanity/client

Instructions in its docs to check first

The docs say

“Written for AI coding agents: point your agent (Claude Code, Cursor) at this page and it installs the toolkit, gets you authenticated, and scaffolds a running Sanity Studio while guiding you.”

The page tells agents to run npx sanity@latest init with --yes, which signs in, installs skills and an MCP server and creates a public dataset; ask the person first.

The docs say

“If the user has no Sanity account and doesn't want to create one yet, go to sanity.new and follow the instructions there.”

sanity.new has the agent create a real project without an account through an unpinned npx command; ask the person before creating anything.

Alternatives

Sanity This page

from $0.05 per AI creditFree tierOfficial MCP

Firebase

Pick Firebase when you need a general app backend with sign-in, a database and hosting, not an editing screen for content.

from $0.1/GB storageFree tier

MongoDB Atlas

Pick MongoDB Atlas when you want a general-purpose cloud database and will build any editing tools yourself.

from $0.08/hourFree tier

Payload

Pick Payload when you want an open-source content system that runs inside your own Next.js app and database.

See its pageNo free tier

All databases and backends APIs

Get started

Tell your AI assistant

“Connect my Next.js site to Sanity with @sanity/client at a fixed version: projectId and dataset from env, a hard-coded apiVersion date, useCdn true for page reads, the robot token only on the server, and image addresses built with @sanity/image-url.”

  1. Create a Sanity project and its editing app (Studio); the command signs you in through the browser if needed.

    npx sanity@latest init --yes --project-name "<project name>" --dataset-default --template clean --typescript --output-path studio

    From sanity.io/docs/getting-started/ai-coding-agents.md

  2. Install the client in your site and allow your site's address under CORS in the project settings.

    npm install @sanity/client

    From sanity.io/docs/content-lake/cors.md

  3. Query your content with GROQ (example from the client README).

    import {createClient} from '@sanity/client'
    
    export const client = createClient({
      projectId: 'your-project-id',
      dataset: 'your-dataset-name',
      useCdn: true,
      apiVersion: '2025-02-06',
    })
    
    const posts = await client.fetch('*[_type == "post"]')

    From github.com/sanity-io/client/blob/main/README.md

First request

Request from the authentication page (the token is only needed for drafts and private datasets; published content in a public dataset needs none). Response is the example from the Query API reference.

curl -H "Authorization: Bearer <token>" https://<project>.api.sanity.io/v2021-06-07/data/query/production?query=*

Mistakes to avoid

Setting apiVersion from today's date at runtime (new Date()).
Hard-code an apiVersion date string such as '2025-02-06'.

The README warns a dynamic value may break the app at a random point in the future.

Putting a robot token in browser code to read drafts or private data.
Keep the token on the server (route handler, server component) and send only the results to the browser.

Tokens bundled into front-end code leak; a write token can delete all data.

Reading every page from api.sanity.io during heavy traffic.
Set useCdn true for end-user reads; use the uncached API for webhooks, previews and static builds.

Cached CDN reads are not rate limited and are cheaper in quota.

Treating an empty result from a private dataset as "no content".
Check that the request carries a token with read access.

Private datasets answer unauthenticated queries with 200 and an empty result.

Storing private files (contracts, invoices) as dataset assets and relying on a private dataset.
Use Media Library asset visibility or host such files yourself.

Dataset assets stay public to anyone with the link.

Questions

Is there a free plan?

Yes, $0 forever with up to 20 seats, 2 public datasets and 10,000 documents.

Does my website need a key to read content?

Not for published content in a public dataset. Drafts and private datasets need a token, used only on the server.

Why does my private dataset return an empty list?

Requests without a token to a private dataset get an empty answer, not an error.

Who owns the content I put in Sanity?

You do; Sanity uses it to provide the service and may build anonymous statistics from it.

Where is my content stored?

In the EU/EEA, the US or another Sanity region set per customer, on Google Cloud.