---
title: One-Click Connection to Zapier and Automated Email Sending
---

**This article will help you:**

This guide walks you through installing the MCP SSE plugin in your Dify workspace and configuring it to connect with Zapier’s MCP service for seamless automated email workflows.

## Background

Anthropic introduced the Model Context Protocol (MCP) in late 2024. As an emerging open protocol, MCP builds a bidirectional communication channel between LLMs and external applications, functioning like a "USB-C" interface for AI, helping models discover, understand, and safely call various external tools or APIs.

In other words, developers no longer need to build complex custom integrations for each external service. Users can experience AI's ability to easily call a vast array of third-party applications, whether processing daily office tasks, analyzing data, or executing marketing automation. AI is moving from "intelligent conversation" to "efficient action."

In the Dify community, MCP has garnered significant attention. Community developers have contributed multiple MCP plugins to the plugin marketplace, allowing you to easily connect external MCP services to Dify Agent applications or workflows.

This article will use the MCP SSE plugin as an example to detail how to use MCP plugins within Dify to connect to Zapier and complete an automated email sending process.

## Prerequisites

- Dify Cloud version / Dify Community version ≥ v1.0.0
- Zapier account

## Initializing Zapier MCP Service in Dify

Zapier's MCP Server packages its existing 7000+ applications and 30,000+ actions into a single MCP Server URL. You can select and configure the tools and actions you need in the Zapier backend, such as sending emails, creating records in CRM, sending notifications in Slack, etc. Simply enter the MCP Server URL into the Dify MCP plugin configuration, and the LLM can automatically call these tools to complete various tasks during conversations or processes.

### Step 1: Request a Zapier MCP Server URL

1. Visit the [Zapier MCP Settings page](https://actions.zapier.com/settings/mcp/).
2. Obtain the MCP Server URL, which will be entered into the Dify plugin configuration later.

![](https://assets-docs.dify.ai/2025/04/15bba178b0adddcd3e1961807dfe14f0.png)

3. Click "Edit MCP Actions" below the URL to enter the tools and actions addition page.

4. Click **Add a new action**, then search for Gmail: Send Email.

![](https://assets-docs.dify.ai/2025/04/718e214166ca6eed6771d44f3b6ab718.png)

5. Taking "Send Email" as an example:

Click "Connect" under the Gmail account, then log in and authorize your Gmail inbox.

For fields like recipient, subject, and body, you can choose “Have AI guess a value for this field”. The Agent will then generate content dynamically based on the conversation context.

![](https://assets-docs.dify.ai/2025/04/637ce6b46ab706f4512a2dceb25a8162.png)

6. After completing the setup, you can continue to add different Actions to enrich the Agent's available toolkit.

### Step 2: Install the MCP SSE Plugin

1. Go to the Dify plugin marketplace, search for the MCP SSE plugin and click install.

![](https://assets-docs.dify.ai/2025/04/20174032b8feb624a52ac36d65e7c0fa.png)

> For optimal stability, we recommend using plugin version **v0.0.4**. You can change the version in the plugin’s detail settings.
> ![](https://assets-docs.dify.ai/2025/04/b076d40ea120dea544df49bc52199ad6.png)


2. Click the To Authorize button on the plugin page, and paste the Zapier MCP Server URL obtained earlier into the plugin. Reference address format:

```json
{
  "server_name": {
    "url": "https://actions.zapier.com/mcp/*******/sse",
    "headers": {},
    "timeout": 5,
    "sse_read_timeout": 300
  }
}
```

![](https://assets-docs.dify.ai/2025/04/5ba078e8804c1bee5bcec167d260a92a.png)

### Step 3: Create a Dify Agent Application and Enable MCP SSE Service

1. Create an Agent-type application

From the navigation, select "Studio", choose "Create from Blank" in the application list and select the Agent application type, then complete the creation by entering an application name.

![](https://assets-docs.dify.ai/2025/04/aaef5e115211c2b04382552e537877fa.png)

2. Add MCP tools

Add both `Fetch MCP Tools` and `Call MCP Tool` in the application toolbar.

![](https://assets-docs.dify.ai/2025/04/4e570e4e42720b3e202d409fa93f983a.png)

3. Configure LLM

Using MCP may consume a large number of tokens, so it is recommended to use a more cost-effective LLM. This article will use the `deepseek-chat` model as an example. You can apply for an API Key from [DeepSeek Platform](https://platform.deepseek.com/usage) and enter it in "Settings" → "Model Providers" → "DeepSeek".

> If you don't find the DeepSeek model in your model providers, please go to the Dify plugin marketplace to install the DeepSeek plugin.

## Use Case 1: Using MCP Service to Automatically Send a Single Email

After configuration, you can automatically generate email drafts and send them to specified recipients simply by chatting with the Agent.

![](https://assets-docs.dify.ai/2025/04/fc76cc8e7dd7476199e9810fa5403f3b.png)

Simply instruct the Agent via chat to send an email, and it will handle the task using the configured MCP service. After the MCP finishes running, the email will be automatically sent to the recipient.

![](https://assets-docs.dify.ai/2025/04/dc80a8fb00800e8938f3918fc908bc1b.png)

## Use Case 2: Configuring MCP Agent Strategy in Workflow

In addition to adding the MCP SSE plugin as a tool to the Agent, you can also use the MCP Agent Strategy plugin in Workflow. After installation, configure it in the corresponding Agent node as follows:

![](https://assets-docs.dify.ai/2025/04/0a340d4cc4a549e6b7420b39cfd805d6.png)

Use the following JSON structure as a template, replacing the `url` value with the MCP Server address, then copy and paste the complete modified JSON into the `MCP SERVER URL` configuration box:

```json
{
  "server_name": {
    "url": "https://actions.zapier.com/mcp/*******/sse",
    "headers": {},
    "timeout": 5,
    "sse_read_timeout": 300
  }
}
```

![](https://assets-docs.dify.ai/2025/04/883c70b8a714c0c7e7a25f5f712c59e0.png)

Once configured, when the Workflow runs to that Agent node, it can execute tasks using the configured Zapier MCP Server according to the Prompt instructions. As shown below, calling Gmail to send an email:

![](https://assets-docs.dify.ai/2025/04/a201fb50200737881e4ddc0b31518336.png)

{/*
Contributing Section
DO NOT edit this section!
It will be automatically generated by the script.
*/}

---

[Edit this page](https://github.com/langgenius/dify-docs/edit/main/en/plugins/best-practice/how-to-use-mcp-zapier.mdx) | [Report an issue](https://github.com/langgenius/dify-docs/issues/new?template=docs.yml)

