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

CategoryWeight this runHygraphSanityEdge
Reliability16%208977Hygraph +12
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.27887Sanity +9
Agent ergonomics13%16.27274Sanity +2
Security & auth14%17.56367Sanity +4
Payments & pricing10%12.53540Sanity +5
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.87489Sanity +15
Transparency & trust7%8.86087Sanity +27
Negative events≤1500
Total69.3 · B73.7 · BB

Facts side by side

FactHygraphSanity
KindHTTP APIHTTP API
VendorHygraph GmbHSanity US Inc. and Sanity AS
Hosted endpointhttps://mcp.hygraph.com/mcphttps://api.sanity.io
TransportsHTTP, Streamable HTTPHTTP, Streamable HTTP
AuthOAuth or keyOAuth or key
PricingFreemiumFreemium
x402nono
LicenceProprietary service under Hygraph GmbH's Terms of Service. The @hygraph/management-sdk package is MITProprietary hosted service under Sanity's terms of service. Sanity Studio, the CLI, @sanity/client and the agent toolkit on GitHub are MIT
Tools exposed1753
Read-only variant documentednono
llms.txtyesyes
MCP registrynot listedio.sanity.www/mcp
Last release2026-09-302026-10-02
Terms last updatedno date givenno date given
Privacy policy last updatedno date givenno date given
Customer content may train modelsnot found in the textnot found in the text
Terms restrict automated accessnot found in the textnot found in the text
Terms restrict benchmarkingyesyes
Terms or service can change without noticeyesnot found in the text
Arbitration or class-action waivernot found in the textnot found in the text
Popularity52 stars, 8.6k npm/wk6.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

  1. Send the Permanent Auth Token as Authorization: Bearer <token> to https://<region>.hygraph.com/v2/<projectId>/<environment>. Read the schema by introspection first, because every type is generated from the project's models
  2. Mutations write to DRAFT. Call publish<Model> with to: [PUBLISHED] as a separate mutation, and pass locales to write or publish a localisation
  3. 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
  4. Upload an asset with createAsset, then POST the file to the returned pre-signed URL, or pass uploadUrl for a remote file. The asset stays ASSET_CREATE_PENDING until processed
  5. Schema changes go to the Management API through @hygraph/management-sdk or the MCP tool submit_batch_migration. Version restore has no documented mutation, so read <model>Version and write the old values back

Sanity

  1. Pin a static dated version in every URL, such as v2025-02-19. Omitting apiVersion in @sanity/client falls back to v1.
  2. Validate documents against the schema yourself before an HTTP write, or run sanity documents validate afterwards. The Content Lake does not enforce schema rules.
  3. Back off on 429 for mutations yourself. @sanity/client retries queries five times but never retries mutations. The limit is 25 mutations a second per IP.
  4. Over MCP, call create_version before patch_documents when editing inside a release, then patch the returned version ID with the same releaseId.
  5. 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

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.