Be the first to get access to new connectors. Get early access →
ConnectorBay Early access
Discover
Sanity (BYOK) icon

Sanity (BYOK)

Query your Sanity content with GROQ: list document types, count and list documents, search by title and fetch documents with BYOK

Unify Dynamics LLC

Tools9read-only
Sign-inBYOKbring your own key
Key keptNeverused for one call only
PriceFreeoptional Pro limits
ProviderSanityunofficial, not affiliated
Works withMCP · RESTany agent

Try asking

Real questions, and the tools your agent calls to answer them.

Run the GROQ query *[_type == 'post'][0...5]{title} on my Sanity dataset
Tools called
run_groq_query
What document types are in my Sanity dataset?
Tools called
list_document_types
How many posts are in my Sanity dataset?
Tools called
count_documents
List the latest posts in my Sanity dataset
Tools called
list_documents
Find Sanity documents about onboarding
Tools called
search_documents
What content changed most recently in my Sanity dataset?
Tools called
list_recently_updated

About

Sanity (BYOK) lets an AI assistant read your own Sanity data through the Sanity API with a key you supply (API token with read access (Viewer)). Read-only: 9 tools (run_groq_query, list_document_types, count_documents, list_documents, search_documents, list_recently_updated, get_document, get_dataset_summary, get_document_uncached). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to *.api.sanity.io. Unofficial connector by Unify Dynamics LLC: not affiliated with, endorsed by or sponsored by Sanity. Sanity and its logos are trademarks of their owners and are used only to say which service the connector works with.

Sources: Live from the Sanity API (*.api.sanity.io) with a BYOK key; documentation: https://www.sanity.io/docs/http-reference/query. Endpoints checked against that documentation on 2026-10-16.

Privacy

The publisher, Unify Dynamics LLC, states that tool inputs are processed in memory and not retained.

Data not collectedNo account, no profile, no stored prompts or results.

What it can do

9 tools, grouped by job. Every one is read-only or compute-only.

OpenAPI
Read your data9 tools
  • Run groq queryRun a read-only GROQ query against a dataset, for example *[_type == 'post'][0...10]{title}.
  • List document typesList the distinct document types (_type values) present in a dataset.
  • Count documentsCount the documents of one type in a dataset (drafts included).
  • List documentsList documents of one type, most recently updated first, with id, type, dates, title (or name) and slug.
  • Search documentsSearch documents whose title or name matches a word or prefix (GROQ match, e.g. 'launch*'), newest first.
  • List recently updatedList the most recently updated documents of any type (system documents excluded) with id, type, dates, title and slug.
  • Get documentGet one document by its _id from the query API (cached, may lag a few seconds).
  • Get dataset summaryCount all documents, draft documents and distinct types in a dataset.
  • Get document uncachedFetch one document by id straight from the backend, bypassing the cache (use sparingly).

Information

PublisherUnify Dynamics LLC
CategoryDeveloper tools
LanguagesEnglish
Built forWorldwide
CompatibilityAny MCP client · any agent · REST
Version0.1.0
MCP endpointhttps://byok-sanity.connectorbay.com/mcp
REST APIopenapi.json
SupportGet help · Status
CountryWorldwide
FunctionOther
LayerDeep connectors

Connect it to your agent

Three ways in, the same 9 tools.

MCP (Claude, Cursor, Windsurf, VS Code, any MCP client)https://byok-sanity.connectorbay.com/mcp
RESTPOST https://byok-sanity.connectorbay.com/v1/tools/<tool>
OpenAI function callinghttps://connectorbay.com/openai/byok-sanity.json
OpenAI-compatible chathttps://connectorbay.com/v1/chat/completions · how it works
  • Add the MCP URL in your client's connector, MCP or integration settings (streamable HTTP, no OAuth).
  • Key: send your API token with read access (Viewer) in the X-Upstream-Key header (get one at www.sanity.io).
  • Ask a question; the agent picks the right tool and answers from the live data.

Sanity connector: questions and answers

What is the Sanity connector?

Sanity (BYOK) lets an AI assistant read your own Sanity data through the Sanity API with a key you supply (API token with read access (Viewer)). It is a hosted MCP server with 9 tools such as Run groq query, List document types, Count documents, List documents, Search documents, List recently updated, published by Unify Dynamics LLC. It is independent and not affiliated with Sanity.

How do I connect Sanity to Claude, ChatGPT or Cursor?

Add the MCP endpoint https://byok-sanity.connectorbay.com/mcp to your client's MCP, connector or integration settings (streamable HTTP, no OAuth). For REST, POST JSON to https://byok-sanity.connectorbay.com/v1/tools/<tool>; the OpenAPI description is at /openapi.json. For OpenAI function calling, load https://connectorbay.com/openai/byok-sanity.json.

Do I need a Sanity account or API key?

Yes: this is a bring-your-own-key connector. Create a API token with read access (Viewer) at https://www.sanity.io/docs/content-lake/http-auth and send it in the X-Upstream-Key header. ConnectorBay uses it for that one call only and never stores, logs or caches it.

Is Sanity read-only?

Yes. Every tool reads or computes. Nothing is created, changed, sent, paid or deleted in your account.

Is the Sanity connector free?

Yes. It is free to use within the published rate limits; an optional Pro key raises them. There is no account to create.

More like this

More in Other

Federal Audit Clearinghouse (BYOK)

Search US Single Audit reports of nonprofits, universities and governments, their federal awards and findings, with your own api.data.gov key

Live · MCP + REST10 tools

Galileo (BYOK)

Read your Galileo AI evaluation and observability projects, log streams, experiments, datasets, scorers and integrations with an API key

Live · MCP + REST12 tools

Steel (BYOK)

Read your Steel cloud browser sessions, credit use, profiles, extensions, stored files, credential labels and captcha status with a Steel API key

Live · MCP + REST9 tools

Datawrapper (BYOK)

Read your Datawrapper charts, maps and tables, folders, themes, embed codes and publish status with a Datawrapper API token

Live · MCP + REST11 tools

Tiger Data (BYOK)

Read your Tiger Cloud (Timescale) projects, database services, usage metrics, VPCs and VPC peerings with a Tiger Cloud API key

Live · MCP + REST8 tools

Crowdin (BYOK)

Read your Crowdin localization projects, files, strings, translation progress, tasks and builds with your own personal access token

Live · MCP + REST12 tools

Documentation

Back to top

Sanity (BYOK) — connector documentation

  • MCP endpoint: https://byok-sanity.connectorbay.com/mcp
  • REST API: POST https://byok-sanity.connectorbay.com/v1/tools/{tool_name}, described by the OpenAPI 3.1 spec at https://byok-sanity.connectorbay.com/openapi.json
  • Transport: Streamable HTTP, stateless, MCP specification 2025-06-18 or later
  • Authentication: your own Sanity API token with read access (Viewer), sent in the X-Upstream-Key header of every request (never stored, logged or cached)
  • Health: https://byok-sanity.connectorbay.com/health · Tool schemas: https://byok-sanity.connectorbay.com/tools.json
  • Publisher: Unify Dynamics LLC · connectorbay.com/byok-sanity · agent@connectorbay.com

What Sanity (BYOK) is for

Sanity (BYOK) lets an AI assistant read your own Sanity data through the Sanity API with a key you supply (API token with read access (Viewer)). Read-only: 9 tools (run_groq_query, list_document_types, count_documents, list_documents, search_documents, list_recently_updated, get_document, get_dataset_summary, get_document_uncached). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to *.api.sanity.io. Unofficial connector by Unify Dynamics LLC: not affiliated with, endorsed by or sponsored by Sanity. Sanity and its logos are trademarks of their owners and are used only to say which service the connector works with.

Ask your assistant things like:

  • "Run the GROQ query *[_type == 'post'][0...5]{title} on my Sanity dataset"
  • "What document types are in my Sanity dataset?"
  • "How many posts are in my Sanity dataset?"
  • "List the latest posts in my Sanity dataset"
  • "Find Sanity documents about onboarding"
  • "What content changed most recently in my Sanity dataset?"

What it does

  • run_groq_query: Run a read-only GROQ query against a dataset, for example *[_type == 'post'][0...10]{title}. Returns the query result and server time. GET-length limits do not apply.
  • list_document_types: List the distinct document types (_type values) present in a dataset.
  • count_documents: Count the documents of one type in a dataset (drafts included).
  • list_documents: List documents of one type, most recently updated first, with id, type, dates, title (or name) and slug. Use start and end as a slice [start, end).
  • search_documents: Search documents whose title or name matches a word or prefix (GROQ match, e.g. 'launch*'), newest first.
  • list_recently_updated: List the most recently updated documents of any type (system documents excluded) with id, type, dates, title and slug.
  • get_document: Get one document by its _id from the query API (cached, may lag a few seconds). Draft documents have ids starting with 'drafts.'.
  • get_dataset_summary: Count all documents, draft documents and distinct types in a dataset.
  • get_document_uncached: Fetch one document by id straight from the backend, bypassing the cache (use sparingly).

BYOK key

You bring your own Sanity API token with read access (Viewer) (https://www.sanity.io/docs/content-lake/http-auth). Your assistant sends it in the X-Upstream-Key header with each request. ConnectorBay uses it for that one call only: it is never stored, logged or cached, never shown in an answer, and it is only sent to *.api.sanity.io over https, with no redirects followed. Create a key with the fewest permissions the tools need (read-only if the provider offers it), and revoke it at the provider whenever you like.

Data sources

Live from the Sanity API (*.api.sanity.io) with a BYOK key; documentation: https://www.sanity.io/docs/http-reference/query. Endpoints checked against that documentation on 2026-10-16.

What it is not

Unofficial connector by Unify Dynamics LLC: not affiliated with, endorsed by or sponsored by Sanity. Sanity and its logos are trademarks of their owners and are used only to say which service the connector works with. It is read-only: it never creates, changes, sends or deletes anything in your Sanity account.

Built for: Worldwide. Languages: English.

Privacy policy

Back to top

Sanity (BYOK) — Privacy Policy

Effective 16 October 2026. Unify Dynamics LLC ("we", "us"), Menlo Park, California.

What Sanity (BYOK) is. Sanity (BYOK) is a connector (an MCP server and REST API) that an AI assistant calls on your behalf to read your own Sanity data: Query your Sanity content with GROQ: list document types, count and list documents, search by title and fetch documents with BYOK. You bring your own Sanity API token with read access (Viewer); the assistant sends it to us with each request.

BYOK key. The key you supply is used to make the one Sanity call you asked for. Our application does not store it, write it to a log, put it in a cache, or share it. It is sent only to *.api.sanity.io, over https, and is removed from any text we return to you or your assistant. We do not follow redirects with your key. If Sanity rejects it, we say so without repeating it.

What we receive. The arguments of each tool call, the BYOK key (for that call only), the technical headers needed to serve the request (an IP address or a client identifier supplied by the assistant) and standard server logs. What Sanity receives. The request we make on your behalf, including the key and the arguments, under Sanity's own terms and privacy policy (https://www.sanity.io/legal/tos). Sanity acts at your direction and is the only recipient of the data of your request besides our hosting provider.

What we return. The answer Sanity gives for your request, trimmed to the fields the tool documents. We do not keep it: it is returned to your assistant and not stored, cached or used to train anything.

What we do not do. We do not build a profile, sell or share personal information, or keep your Sanity data. Rate-limit counters (a client identifier and timestamps) are held in memory for at most 24 hours. Hosting access logs (IP addresses, request paths and status codes) are kept for up to 30 days for security and abuse prevention; our application adds no request headers or bodies to them.

Sub-processors. Sanity (the API you call with a BYOK key, at your direction). Hosting: Vercel (United States regions).

Your rights. Because we store no personal data beyond short-lived logs, requests to access, correct or delete data are usually satisfied automatically; you can still contact agent@connectorbay.com and we will respond within 30 days. Revoke your key at Sanity at any time to end all access.

Children. Sanity (BYOK) is a general-audience service operated by the adult using the assistant, under Sanity's own age rules.

Changes. We will post changes here with a new effective date.

Terms of service

Back to top

Sanity (BYOK) — Terms of Service

Effective 16 October 2026. These terms govern use of the Sanity (BYOK) connector ("the Service") operated by Unify Dynamics LLC ("we", "us").

  1. The Service. Sanity (BYOK) provides: Query your Sanity content with GROQ: list document types, count and list documents, search by title and fetch documents with BYOK. It is accessed through an AI assistant or directly over MCP or HTTP, and is read-only.
  2. Your own key, your own account. You must use your own Sanity credentials and only access data you are allowed to access. Sanity's terms (https://www.sanity.io/legal/tos) apply to your use of Sanity; you are responsible for complying with them, including any rate limits and permitted uses. Do not share a key you do not own.
  3. Independent. Unofficial connector by Unify Dynamics LLC: not affiliated with, endorsed by or sponsored by Sanity. Sanity and its logos are trademarks of their owners and are used only to say which service the connector works with.
  4. No advice, no guarantees. Output is the data Sanity returns, lightly trimmed; it may be incomplete, delayed or changed by Sanity. Check important facts at the source.
  5. Read-only. The Service does not create, change, send or delete anything in your Sanity account.
  6. Acceptable use. Automated use within the published rate limits is welcome. Do not use the Service to access data you are not entitled to, to circumvent Sanity's controls, or to attack any system.
  7. Availability. The Service is provided "as is" without warranty. We may change, limit or discontinue it at any time; Sanity may change or end its API at any time.
  8. Data. Our Privacy Policy describes what we process. In short: the BYOK key is used for the one call and not stored or logged.
  9. Pro keys. Optional ConnectorBay Pro API keys are issued at our discretion and are separate from your Sanity key.
  10. Liability. To the fullest extent permitted by law, Unify Dynamics LLC is not liable for any loss arising from use of or reliance on the Service, including any action Sanity takes on your account. Our total liability is limited to US $100.
  11. Governing law. California law; venue in San Mateo County, California.
  12. Contact. Unify Dynamics LLC · agent@connectorbay.com · https://connectorbay.com/byok-sanity

Sanity (BYOK) support

Email agent@connectorbay.com. We answer within two business days.

When you report a problem, include the question you asked your agent, roughly when, and which agent you used (for example Claude, ChatGPT or Gemini). Never send us passwords, account numbers or ID numbers. Sanity (BYOK) never asks for them.

Get Sanity (BYOK)

Free · BYOK · Read-only

BYOK: bring your own keyThis connector uses your own Sanity API token with read access (Viewer). Create one at https://www.sanity.io/docs/content-lake/http-auth, with the fewest permissions it needs (read-only if the provider offers it). Your assistant sends it in the X-Upstream-Key header with every request. It is used for that one call only: never stored, logged or cached, and only ever sent to Sanity. Revoke it at the provider whenever you like. Unofficial connector: not affiliated with Sanity.