Sanity for AI agents
Sanity is a headless CMS that stores structured content as documents, giving developers an API to build and manage content for websites and apps. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.
What agents do in Sanity.
Fetch a document by its ID
Reads a specific content document, such as a blog post or product entry, before editing it.
Assign a default role to users
Grants project users a default role so they get the right level of access to content.
Delete a document only after confirmation
Removes an outdated document from the content dataset only once the request is confirmed.
21 Sanity actions, graded by risk.
Every Sanity action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.
read
13Look things up. Allowed by default.
- sanity.get_roleGet Role
- sanity.get_usersList Resource Users
- sanity.get_robotsGet Robots
- sanity.get_projectGet Project
- sanity.get_documentGet Document by ID
- sanity.get_org_roleGet Organization Role
- sanity.get_permissionGet Permission
- sanity.list_org_rolesList Organization Roles
- sanity.query_documentsQuery Documents
- sanity.get_invite_by_tokenGet Invite By Token
- sanity.query_all_screeningQuery All Screening
- sanity.list_user_attributesList User Attributes
- sanity.validate_credentialValidate Credential
write
5Create and change things. Allow, or ask the user first.
- sanity.update_org_aclUpdate Organization ACL
- sanity.create_prompt_postCreate Prompt Post
- sanity.create_attr_definitionCreate Attribute Definition
- sanity.add_default_role_to_usersAdd Default Role to Users
- sanity.update_user_attributes_valuesUpdate User Attributes Values
destructive
3Delete, cancel or archive. Ask first, or deny outright.
- sanity.delete_documentDelete Document
- sanity.delete_attr_definitionDelete User Attribute Definition
- sanity.delete_user_attributesDelete User Attributes
Sanity in three steps.
- 01Your users connect SanityThey add their Sanity api key on Arc0 Connect, under your brand. It goes straight into the vault.
- 02You set the rulesReads run, writes like “create Prompt Post” can wait for the user, and “delete Document” can be denied outright.
- 03Any agent can actYour agent calls Sanity through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
await arc0.policies.set('sanity', { read: 'allow', write: 'ask', // create_prompt_post destructive: 'deny', // delete_document }) # Claude Code: the same connection, one URL $ claude mcp add --transport http arc0 \ https://mcp.arc0.ai/u/u_8f2
How Sanity connects.
Users add their Sanity api key on Arc0 Connect. It is encrypted in the vault, never shown to the model, and each user can rotate or revoke it at any time.
The same Sanity connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →
- AUTH
- API key
- CREDENTIALS
- Per-tenant encrypted vault
- MODEL SEES
- Results only, never credentials
- AUDIT LOG
- Every call, on every plan
Use Sanity from any agent.
Sanity and Arc0, answered.
Can I use Sanity with Claude, ChatGPT or Cursor?
Yes. Connect Sanity to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Sanity actions you allow.
How do users connect Sanity?
Users add their Sanity api key on Arc0 Connect. It is encrypted in the vault, never shown to the model, and each user can rotate or revoke it at any time.
Which Sanity actions can my agent take?
21 in total: 13 read, 5 write and 3 destructive, such as “create Prompt Post”. Your policies decide which of them each agent may call.
Can I stop my agent from deleting things in Sanity?
Yes. Actions like “delete Document” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.
Can my own backend call Sanity too?
Yes. The same Sanity connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.
Plug Sanity into your agent.
Your users connect Sanity once, under your brand. Your agent gets 21 actions behind your policies, with every call on the record.
Free to build · MCP + REST · Audit log on every plan