Sanity logo
ConnectorSanity

Sanity integration for Claude and Codex

Create a Sanity connection, then control which Spaces can use its approved tools and data without pasting credentials into prompts or threads.

Use Sanity from Claude

Add the Sanity connection to a Space that runs Claude, then use it from every channel in that Space.

Use Sanity from Codex

Add the Sanity connection to a Space that runs Codex, then use it from every channel in that Space.

Use Sanity from Sidekick

Connect your own OpenClaw to Sidekick while Type provides the conversations, permissions, connections, skills, and automations.

Developer Tools & IT

What the Sanity connector can do

Sanity is a headless CMS platform that provides structured content storage and APIs for modern applications

One connection, many Spaces

Connect Sanity once, then decide which Spaces can use it in threads, skills, automations, and coding work.

Representative actions

  • Add Default Role to Users

    Apply organization default role to all users. Use when you need to assign the organization's default role to all existing users in the organization. Requires the resource ID of the organization.

  • Create Attribute Definition

    Tool to create a new user attribute definition in Sanity. Use when you need to define a custom attribute (like 'customer-tier' or 'subscription-level') that can be attached to resources. The key must be unique within the resource. The attribute can have a type of 'string', 'number', or 'boolean' and can optionally be a list of values or read-only.

  • Create Prompt Post

    Send a one-shot prompt to the Sanity Content Agent. Stateless one-shot prompt endpoint. No thread management or message persistence. Ideal for simple, single-turn interactions. Use when you need to send a single prompt and receive a response without maintaining conversation context.

  • Delete User Attribute Definition

    Delete a user attribute definition. Use when you need to remove a custom attribute definition from an organization or project in Sanity. The attribute definition controls how user attributes are structured and validated for a given resource. Deleting a definition does not delete existing user attribute values, but users will no longer be able to set values for that attribute.

  • Delete User Attributes

    Delete custom attributes from a Sanity user within an organization. Use this tool when you need to remove specific custom attributes from a user account. The action deletes the attributes specified in the request and returns the updated attribute list for the user. Example use case: Removing outdated metadata like 'location' or 'year_started' from a user profile.

Connection

API and auth details

Sanity provides structured-content APIs for headless CMS workflows. Integrations can query GROQ, mutate documents, manage assets, datasets, projects, webhooks, releases, perspectives, and content lake data using API tokens with scoped permissions.

FAQ

Questions people ask before connecting Sanity

Can Claude use Sanity?

Yes. Add a Sanity connection to a Space that runs Claude, then use its approved tools and data from any channel in that Space.

Can Codex work with Sanity through Type?

Yes. Add a Sanity connection to a Space that runs Codex, then use its approved tools and data from any channel in that Space.

Is this the same as a Sanity MCP server?

Not exactly. Type uses connectors and connections to give selected Spaces access to approved app tools and data. Some connectors use hosted MCP, while others use OAuth, API keys, service accounts, or custom APIs.

More developer tools & it connectors