> For the complete documentation index, see [llms.txt](https://doc.thordata.com/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/doc/zh-hk/pa-qu/serp-api/ji-cheng/mcp-ji-cheng/vapi-ai-mcp-fu-wu-qi-ji-cheng.md).

# Vapi AI MCP 服務器集成

將 Vapi AI 語音 Agent 連接至 Thordata MCP Server，在語音工作流程中實現即時網頁搜尋、擷取和結構化資料取得。

將Vapi AI語音代理連接到ThorData MCP服務器（60多個工具），為語音助手提供實时網絡搜索、抓取和結構化數據檢索功能。

#### 快速安裝

要將ThorData集成到Vapi AI中，請將以下MCP服務器URL添加到您的Vapi工具中：

```
https://mcp.thordata.net/YOUR_API_TOKEN/mcp
```

#### 如何設定Vapi AI

**先決條件**

開始之前，請確保您已準備好以下物品：

* [Vapi AI 帳號](https://vapi.ai/)（如果沒有帳號，請註冊）
* [ThorData 賬戶](https://dashboard.thordata.com/serp-api/get-started)（新用戶可獲得免費試用額度，之後可按需付費）
* [SERP API 中的 API Token](https://dashboard.thordata.com/serp-api/get-started)

{% stepper %}
{% step %}
**登录 Vapi AI**

訪問 [vapi.ai](https://vapi.ai/) 並登入您的帳戶。
{% endstep %}

{% step %}
**領取您的ThorData API Token**

登入您的ThorData帳戶並前往 [SERP API-API Token](https://dashboard.thordata.com/serp-api/get-started) 以獲取您的API Token。
{% endstep %}

{% step %}
**Vapi的訪問工具**

在Vapi控制台中，點擊導航菜單中的“工具”。

<div align="left"><figure><img src="https://1043327331-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiR9tknC6bcTWE6xEmOb0%2Fuploads%2FAYlpsLwL867Y522cTabb%2F04.png?alt=media&#x26;token=766121d3-086f-429d-aea8-7bff755438d9" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**創建新工具**

點擊“創建工具”按鈕，開始添加ThorData MCP集成。

<div align="left"><figure><img src="https://1043327331-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiR9tknC6bcTWE6xEmOb0%2Fuploads%2FpjnekHv472iZ9wuqLpdX%2F02.png?alt=media&#x26;token=de29ef35-2b3b-4e99-b84c-5c2798d5545e" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**選擇MCP**

從可用選項中選擇MCP作為工具類型。

<div align="left"><figure><img src="https://1043327331-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiR9tknC6bcTWE6xEmOb0%2Fuploads%2Fdm8EXMBIawS5KrnYrfQn%2F01.png?alt=media&#x26;token=165e75b2-ad2b-49dd-924a-e41abd3b2a36" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**配寘MCP服務器**

請使用以下設定配寘您的工具：

* 姓名：`thordata`
* MCP服務器URL：`https://mcp.thordata.net/YOUR_API_TOKEN/mcp`
* 將超時時間設定為120秒，以避免出現錯誤。 請將此處的內容替換

{% hint style="info" %}
`YOUR_API_TOKEN`為您從ThorData獲取的實際 API 令牌。
{% endhint %}
{% endstep %}

{% step %}
**將工具添加到助手**

進入助手設定，添加新創建的ThorData工具以啟用集成。
{% endstep %}

{% step %}
**測試集成**

通過以下方式驗證集成是否正常工作：

* 通過Vapi聊天介面進行測試
* 向您的助手發起測試網絡呼叫
* 您應該可以看到ThorData工具可用並響應您的請求。

<div align="left"><figure><img src="https://1043327331-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiR9tknC6bcTWE6xEmOb0%2Fuploads%2FefKPevbIYDcjNcZBe16A%2F03.png?alt=media&#x26;token=bb435661-c7e2-438a-b732-7b19ef2f0bcd" alt=""><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}

#### 接下來是什麼？

現在您已將ThorData與Vapi AI集成，您可以：

* 直接在語音AI對話中使用網路爬蟲功能
* 使用[Vapi 的工作流程](https://docs.vapi.ai/workflows/quickstart)來創建更複雜的語音AI代理
* 獲取來自各種來源的實時數據
