Head to head · Cms content · October 2026 research run
Hygraph vs Sanity
Sanity scores 73.7 (BB) on agent readiness against Hygraph's 69.3 (B), and leads in 6 of 7 scored categories. Hygraph leads on reliability. Both do cms content.
Which one, for what
Hygraph B
Good for Teams on Hygraph who want an agent to create, localise and publish entries, upload assets or change schema, with delete and unpublish kept out of reach on MCP.
Ahead on
- Reliability, 89 against 77
Also in its favour
- Free to start without a card
Watch for
GraphQL error bodies carry a message and a requestId with no machine-readable code, and only asset transformation 429 responses are documented with Retry-After
Sanity BB
Good for Teams that model content as structured documents and want an agent to draft, patch and stage changes in releases for a person to publish.
Ahead on
- Schema & documentation, 87 against 78
- Payments & pricing, 40 against 35
- Maintenance & community, 89 against 74
- Transparency & trust, 87 against 60
Also in its favour
- Agent-ready, a grade of BB or better
Watch for
Schema validation rules run only in Sanity Studio. The HTTP mutation API accepts a document without checking them
Score by category
| Category | Weight this run | Hygraph | Sanity | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 89 | 77 | Hygraph +12 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 78 | 87 | Sanity +9 |
| Agent ergonomics | 13%16.2 | 72 | 74 | Sanity +2 |
| Security & auth | 14%17.5 | 63 | 67 | Sanity +4 |
| Payments & pricing | 10%12.5 | 35 | 40 | Sanity +5 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 74 | 89 | Sanity +15 |
| Transparency & trust | 7%8.8 | 60 | 87 | Sanity +27 |
| Negative events | ≤15 | 0 | 0 | |
| Total | 69.3 · B | 73.7 · BB |
Facts side by side
| Fact | Hygraph | Sanity |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Hygraph GmbH | Sanity US Inc. and Sanity AS |
| Hosted endpoint | https://mcp.hygraph.com/mcp | https://api.sanity.io |
| Transports | HTTP, Streamable HTTP | HTTP, Streamable HTTP |
| Auth | OAuth or key | OAuth or key |
| Pricing | Freemium | Freemium |
| x402 | no | no |
| Licence | Proprietary service under Hygraph GmbH's Terms of Service. The @hygraph/management-sdk package is MIT | Proprietary hosted service under Sanity's terms of service. Sanity Studio, the CLI, @sanity/client and the agent toolkit on GitHub are MIT |
| Tools exposed | 17 | 53 |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| MCP registry | not listed | io.sanity.www/mcp |
| Last release | 2026-09-30 | 2026-10-02 |
| Terms last updated | no date given | no date given |
| Privacy policy last updated | no date given | no date given |
| Customer content may train models | not found in the text | not found in the text |
| Terms restrict automated access | not found in the text | not found in the text |
| Terms restrict benchmarking | yes | yes |
| Terms or service can change without notice | yes | not found in the text |
| Arbitration or class-action waiver | not found in the text | not found in the text |
| Popularity | 52 stars, 8.6k npm/wk | 6.4k stars, 4.1M npm/wk |
Verdicts
Hygraph
Tokens are limited by model, stage, locale and action, the GraphQL schema is typed and introspectable, and a hosted MCP server rejects delete and unpublish operations. Error bodies carry a message without a machine code, there are no idempotency keys, audit logs are Enterprise only, and no data processing agreement, sub-processor list or security.txt was found.
Sanity
Sanity publishes 26 OpenAPI specs covering 225 operations, and its hosted MCP server saves edits to drafts or release versions, with publishing as a separate call. The Content Lake does not run schema validation on API writes, and custom roles that limit a token to one dataset or document type are sold only on Enterprise plans.
Before you call either
Hygraph
- Send the Permanent Auth Token as
Authorization: Bearer <token>tohttps://<region>.hygraph.com/v2/<projectId>/<environment>. Read the schema by introspection first, because every type is generated from the project's models - Mutations write to DRAFT. Call
publish<Model>withto: [PUBLISHED]as a separate mutation, and passlocalesto write or publish a localisation - Stay under the plan's limit for uncached requests (5 a second on Hobby, 25 on Growth) and its concurrent mutations (5 and 10). Back off exponentially on 429
- Upload an asset with
createAsset, then POST the file to the returned pre-signed URL, or passuploadUrlfor a remote file. The asset staysASSET_CREATE_PENDINGuntil processed - Schema changes go to the Management API through
@hygraph/management-sdkor the MCP toolsubmit_batch_migration. Version restore has no documented mutation, so read<model>Versionand write the old values back
Sanity
- Pin a static dated version in every URL, such as
v2025-02-19. OmittingapiVersionin@sanity/clientfalls back tov1. - Validate documents against the schema yourself before an HTTP write, or run
sanity documents validateafterwards. The Content Lake does not enforce schema rules. - Back off on 429 for mutations yourself.
@sanity/clientretries queries five times but never retries mutations. The limit is 25 mutations a second per IP. - Over MCP, call
create_versionbeforepatch_documentswhen editing inside a release, then patch the returned version ID with the samereleaseId. - Use GROQ projections and slices to size results. MCP query responses are limited to 64 KiB, and a blocked Free project answers 402 with
plan_limit_reached.
Questions
Which is better for AI agents, Hygraph or Sanity?
Sanity scores 73.7 (BB) on agent readiness against Hygraph's 69.3 (B), and leads in 6 of 7 scored categories. Hygraph leads on reliability.
Do Hygraph and Sanity need an API key?
Both take an API key or an OAuth sign-in.
Can an agent call Hygraph and Sanity without installing anything?
Yes. Hygraph has a hosted endpoint at https://mcp.hygraph.com/mcp and Sanity at https://api.sanity.io.
Other comparisons with Hygraph or Sanity
- Contentstack vs Hygraph
- Contentstack vs Sanity
- DatoCMS vs Hygraph
- DatoCMS vs Sanity
- Directus vs Hygraph
- Directus vs Sanity
- Ghost vs Hygraph
- Ghost vs Sanity
- Hygraph vs Payload
- Hygraph vs Prismic
- Hygraph vs Storyblok
- Hygraph vs Strapi
- Hygraph vs Webflow
- Hygraph vs WordPress
- Payload vs Sanity
- Prismic vs Sanity
- Sanity vs Storyblok
- Sanity vs Strapi
- Sanity vs Webflow
- Sanity vs WordPress
Machine-readable
- This page as Markdown
/compare/hygraph-vs-sanity.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/hygraph.json·/api/v1/tools/sanity.json - From a terminal
anchor compare hygraph sanity(the CLI) - Over MCP
compare_tools {"a": "hygraph", "b": "sanity"}at/mcp, no key