Sanity remote MCP connector

  • Updated

The Sanity remote Model Context Protocol (MCP) connector in Optimizely Opal lets you manage and automate your content lifecycle. An MCP connector is a server that lets Opal communicate directly with a third-party service, giving Opal agents access to that service's data and actions. 

With the Sanity connector, interact with your datasets and project settings to streamline high-velocity tasks. For example, authorize Cross-Origin Resource Sharing (CORS) origins, restore archived drafts, and trigger asynchronous AI image generation. These tools reduce friction between your CMS and Opal workflows. Use them for semantic search, schema deployment, and document patching directly within the Opal interface.

The Sanity remote MCP is managed by Sanity. See Sanity MCP server in their documentation for information.

First, an Opal administrator must connect the Sanity remote MCP to Opal. After adding the MCP server, individual Opal users and agent builders log in to Sanity to access their information from Opal. Administrators need to add the Sanity remote MCP only once.

Connect the Sanity remote MCP to Opal

To connect the Sanity remote MCP to Opal, complete the following steps as an Opal administrator:

  1. Go to Tools > Connectors in Opal.
  2. Click Add Remote MCP

    Screenshot of the Opal Connectors page where the Add Remote MCP button is visible
  3. Click Sanity.
  4. Click Next.

    Screenshot of the connector selection page in Opal where Sanity is listed
  5. Click Connect to Sanity.

    Screenshot of the Sanity connector page in Opal where the Connect to Sanity button is visible
  6. Complete required access configuration in the pop-up window.
  7. Click Accept.

The Sanity tile is now available on the Connectors tab for users to authenticate with their personal accounts.

Authenticate with Sanity

After an administrator connects the Sanity remote MCP to Opal, each Opal user and agent builder must log in to Sanity individually. User-level authentication ensures you can access only your authorized Sanity data.

To authenticate, complete the following steps in Opal:

  1. Go to Tools > Connectors.
  2. Click Connect for Sanity.

    Screenshot of the Connectors page in Opal where the Connect button for Sanity is visible
  3. Log in to Sanity.

After you connect to Sanity, the Sanity connector tools become available in Opal Chat, agents, and workflows.

Sanity connector tools

Sanity connector tools are available after an administrator connects the Sanity remote MCP to Opal and you log in to Sanity from Opal. For a full list of available tools and actions, see Sanity MCP server in the Sanity documentation.

If you use Opti ID, administrators can turn off generative AI in the Opti ID Admin Center. See Turn generative AI off across Optimizely applications.