> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zapier.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting started

> Embed Zapier MCP into your application to enable your users to connect to thousands of apps and execute actions directly from your agent interface.

## Why embed Zapier MCP?

Embedding Zapier MCP lets your users stay within your agent interface while connecting to thousands of apps. It gives access to Zapier's entire ecosystem of 9,000+ applications and services. It is secure, with domain restrictions and authentication secrets keeping your embeds safe, and easy to set up with generated code snippets for quick integration.

## Prerequisites

* A Zapier account ([sign up free](https://zapier.com/sign-up))
* Must be an Admin of the Zapier account if on a team or organization account
* Have or be building an MCP-compatible AI client

## Get started

<Steps>
  <Step title="Embed configuration">
    [Configure your embed settings](https://mcp.zapier.com/manage/embed/config). You can set your Company Name for how it'll show up in user's Zapier MCP server list. Then for security purposes, you can set Allowed Domains.

    Domain examples:

    * `www.company.com`
    * `company.com` (note: `www.company.com` will not be allowed by simply adding `company.com`)
    * `staging.company.com`
    * `*.company.com`

    Any path after `.com` will be ignored. `localhost` is not allowed. Zapier recommends using [ngrok](https://ngrok.com/) or something similar for local development.
  </Step>

  <Step title="Secret management">
    With Secret Management, you can generate and manage secrets to secure your embed endpoint.

    <Warning>
      Treat your embed secret like a password. Keep it secure and never share it publicly. If you suspect it has been compromised, rotate it immediately. When connecting to a Zapier MCP server created through your embed, you will need to provide this secret as a Bearer token inside of an Authorization header: `Authorization: Bearer (your secret)`
    </Warning>

    To rotate the secret at any time, go to [mcp.zapier.com/manage/embed/secrets](https://mcp.zapier.com/manage/embed/secrets).
  </Step>

  <Step title="Get embed code">
    Generate embed code snippets for integrating Zapier MCP into your application.

    Follow the [embed code guide](/mcp/embed/getting-embed-code) for different languages and frameworks.
  </Step>

  <Step title="Connect your agent to Zapier MCP">
    Learn how to connect to your users' MCP servers.

    Go to the [connecting your agent guide](/mcp/embed/connecting-your-agent) for TypeScript and Python examples.
  </Step>
</Steps>

## Integration flow

<Steps>
  <Step title="User interacts with embed">
    When a user interacts with the Zapier MCP embed, it dispatches an `mcp-server-url` event with their unique server URL.
  </Step>

  <Step title="Store the URL for the user">
    Capture this URL and store it in your database associated with the user.
  </Step>

  <Step title="Connect to Zapier MCP">
    Use the stored URL along with your secret to connect to the user's MCP server
    and execute tools on their behalf.
  </Step>

  <Step title="Execute tools with MCP">
    List available tools and call them to automate workflows for your users across thousands of applications.
  </Step>
</Steps>
