> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/tech/mcp/zapier.md).

# Zapier 串接

Zapier MCP 串接：在 Zapier MCP 控制台建立 MCP Server、選擇開放給 AI 的動作（Actions）、複製 endpoint，並在 MaiAgent 建立 MCP 工具。

本指南將引導您從 [Zapier MCP](https://mcp.zapier.com/) 獲取並設定 MCP (Model Context Protocol) 伺服器 URL，讓您在 MaiAgent 的 Agent 能夠透過 Zapier 提供的 Remote MCP 服務呼叫外部應用程式的動作（Actions）。

## ✅ 前提條件

* 您擁有一個 [Zapier](https://zapier.com/) 帳戶，並能登入 [Zapier MCP 控制台](https://mcp.zapier.com/)。Zapier MCP 的方案與用量限制以 Zapier 官方說明為準。
* 您希望把 Zapier 連接的應用程式（如 Google Workspace、Slack、Notion、Salesforce…）提供給 MaiAgent 的 Agent 使用。
* 您具備目標應用程式的授權權限（例如擁有可被授權的 Google / Slack 帳號）。

## 🌐 步驟 1：登入 / 註冊 Zapier Central（MCP 控制台）

1. 以管理者或具備相應權限的帳號登入 [🌐Zapier官網↗](https://zapier.com/)。

   點按右上角 「log in」以登入，若您尚未註冊，仍請前往官網點按 「Sign up」註冊帳號

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-5dfe287a1cbf7a388fb3eb1138fe8358461ac68a%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20110128.png?alt=media" alt=""><figcaption><p>Zapier 官網首頁</p></figcaption></figure>

## 👆 步驟 2：在 [Zapier MCP 控制台](https://mcp.zapier.com/)創建 MCP Server

1. 前往 [Zapier MCP 控制台](https://mcp.zapier.com/)

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-8bb741851f88d862cee8f5cc5f4f739788946a54%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20110800.png?alt=media" alt=""><figcaption><p>Zapier MCP 控制台首頁</p></figcaption></figure>

在此頁面，您可以建立自己的 MCP Server 並連結不同的外部工具作為 MCP 服務使用 2. 點按左上角的 「+ New MCP Server」 按鈕，創建 MCP Server。

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-f13e7cb8d3b772fe41db89cd592d24fd2ec7eccd%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20110800-1.png?alt=media" alt=""><figcaption><p>建立 MCP Server（+ New MCP Server）</p></figcaption></figure>

點擊後會出現以下畫面⬇️

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-637660cd31cc03bdb6da604a5be175a18ff87100%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20111109.png?alt=media" alt=""><figcaption><p>建立 MCP Server 設定頁</p></figcaption></figure>

* 選擇其他做為 MCP Client

{% hint style="info" %}
MCP Client 請選擇 **Other（其他）**。
{% endhint %}

* 為此服務命名(此處為 MCP Server)

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-2d4249e4b95ab73854c621390cd03ce21849c1f0%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20154144.png?alt=media" alt=""><figcaption><p>為 MCP Server 命名</p></figcaption></figure>

3. 點擊 「Create MCP Server」，建立服務

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-76b5561595cf2d05a58ce16c4adb3deb0e33ac2e%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20154144-1.png?alt=media" alt=""><figcaption><p>建立 MCP Server</p></figcaption></figure>

您的 MCP Server 成功創建後就會出現以下畫面，並在左側 Sidebar 選單中出現剛剛命名的服務

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-e868f9047b13bf065714de9ff15062b356d062f9%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20154714.png?alt=media" alt=""><figcaption><p>MCP Server 建立完成</p></figcaption></figure>

## 🔧 步驟 3：選擇要開放給 AI 的工具

將 MCP Server 與外部工具連結：

1. 在欲連接之服務下點擊 「+Add Tool」

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-42b73e413a4019cd286b64624c6e47c847237b8d%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20154830-1.png?alt=media" alt=""><figcaption><p>新增工具（+Add Tool）</p></figcaption></figure>

{% hint style="info" %}
小技巧：如果尚不確定需求，可先從常用且風險較低的讀取類動作開始（Read-Only），再逐步開啟寫入類動作（Write）。

* 建議僅授權工作用途的帳戶，並遵循組織的最小權限原則（Least Privilege）。
  {% endhint %}

2. 點擊後，將會列出所有可連結的外部工具

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-95e71cf54f159540e7c33ba8a542db985bb0d426%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20114333.png?alt=media" alt=""><figcaption><p>可連結的外部工具清單</p></figcaption></figure>

以 Gmail 為例，點擊 Gmail 圖示進行連結。

{% hint style="info" %}
有些外部服務會需要授權，若您需要該工具連結，仍需要授權才可使用
{% endhint %}

3. 加入後，選擇要連接的 Google 帳戶，選擇您需要的工具服務，或按下「Add all Gmail tools」按鈕加入所有 Gmail 提供的工具服務。

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-e5ea9499807eb4214da1f4c79423cb963603b6de%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20114830.png?alt=media" alt=""><figcaption><p>選擇欲使用之工具</p></figcaption></figure>

完成後，即可將 Gmail 相關工具新增並連結到該 MCP Server 下，在此我們僅選擇 Find Email 工具連結。

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-b741bf32e224ebdeeadd7ddf9db19422724819d9%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20154945.png?alt=media" alt=""><figcaption><p>已新增的 Gmail 工具（Find Email）</p></figcaption></figure>

連結完成後，剛剛選擇的工具就會出現在工具列表下。

## ↔️ 步驟 4：複製 MCP endpoint

1. 在 MCP Server 頁面，切換上方分頁至「Connect」。

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-3e0471c96c1167c84a974cad143ecf6408b84b12%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20154945-2.png?alt=media" alt=""><figcaption><p>Connect 分頁</p></figcaption></figure>

2\. 於該分頁取得並複製「Server URL」。

<figure><img src="https://527168072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38pkhhqHl1oA6yyE9R2n%2Fuploads%2Fgit-blob-9acd1caafd59b2aa2160c5d3856f51b87e968e49%2F%E8%9E%A2%E5%B9%95%E6%93%B7%E5%8F%96%E7%95%AB%E9%9D%A2%202025-08-08%20155221.png?alt=media" alt=""><figcaption><p>MCP Server URL</p></figcaption></figure>

> 注意：此 URL 屬私密資訊，僅應提供給受信任的系統（例如您的 MaiAgent 環境）。

## 💻 步驟 5：在 MaiAgent 建置 MCP 工具

在 MaiAgent 新增一個 MCP 工具，把步驟 4 複製的 **Zapier MCP 伺服器 URL** 貼到「<mark style="color:blue;">或直接輸入（無認證 / Service Account）</mark>」下方的網址欄位。這個 URL 本身已包含 Zapier 的授權，「<mark style="color:blue;">標頭 (JSON)</mark>」維持 `{}` 即可。接著點「<mark style="color:blue;">重新取得</mark>」，剛剛在 Zapier 加入的動作（例如 Find email）會出現在「<mark style="color:blue;">允許的工具 (JSON 數組)</mark>」清單中，以每個工具右側的開關選擇要開放給 Agent 的工具，再儲存。

完整操作步驟與各欄位說明，請見使用者手冊的 [建立 MCP 工具：MCP 伺服器網址](https://docs.maiagent.ai/build/tools/mcp-setup#mcp-server-url)。

## 示範影片

{% embed url="<https://drive.google.com/file/d/1az-aQ5JlQvGBUd9nQN45zI-g9xcnN1Td/view?usp=drive_link>" %}

## ⚠️ 注意事項

* URL 機密性：MCP Server URL 本身帶有您在 Zapier 的授權，取得網址的人就能以您的帳號呼叫動作，請妥善保存，避免對外公開。
* 共用同一個帳號：所有透過這個 Agent 對話的使用者，都會以您在 Zapier 連結的帳號操作。個人帳號型的服務（個人信箱、個人行事曆）請只在內部 Agent 使用，見 [Remote MCP 服務概述：限制與注意事項](/tech/mcp/remote-mcp.md#limitations)。
* 權限最小化：僅開放 Agent 必要的應用與動作，降低風險面。
* 帳戶過期：若 Zapier 連線授權過期（例如密鑰撤銷、OAuth 期限屆滿），請於 Zapier 端重新授權。
* 多個工具：若需整合多個應用（如同時使用 Google Drive、Slack），請在 Zapier MCP 控制台重複步驟 3 將新工具加入同一個 MCP Server；MCP URL 無須更換。新加入的動作**不會自動開放**給 Agent，請在 MaiAgent 的工具設定點「<mark style="color:blue;">重新取得</mark>」，新動作會列在「<mark style="color:blue;">允許的工具 (JSON 數組)</mark>」中，開啟後儲存。

{% hint style="info" %}

* 日誌與稽核：MaiAgent 端每次呼叫都會寫入工具執行紀錄（輸入參數、輸出或錯誤、狀態與耗時），可在 <mark style="color:blue;">AgentOps</mark> → <mark style="color:blue;">工具執行紀錄</mark> 查詢，見使用手冊的[工具執行紀錄](https://docs.maiagent.ai/build/agent-ops/tool-execution-records)；Zapier 端的執行紀錄請在 Zapier 查看。
* 避免因版本迭代產生相容問題或其他更新，請定時參考 [Zapier 官方支援中心](https://help.zapier.com/) 瞭解授權、連線與限制
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/tech/mcp/zapier.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
