> 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/scraping/serp-api/integration/mcp-integration/vapi-ai-mcp-server-integration.md).

# Vapi AI MCP Server Integration

Connect Vapi AI voice agents to Thordata MCP Server for real-time web search, scraping, and structured data retrieval in voice workflows.

Integrate Thordata MCP Server with Vapi AI to give AI agents access to real-time SERP data and structured search results.

Connect the Vapi AI voice agent to the ThorData MCP server (featuring over 60 tools) to equip the voice assistant with real-time web search, scraping, and structured data retrieval capabilities.

#### Quick Installation

To integrate ThorData into Vapi AI, add the following MCP server URL to your Vapi tools:

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

#### How to set up Vapi AI

**Prerequisites**

Before you begin, please ensure you have the following items ready:

* [Vapi AI account](https://vapi.ai/) (If you do not have an account, please register.)
* [ThorData account](https://dashboard.thordata.com/serp-api/get-started) (New users can get a free trial credit; subsequent usage is pay-as-you-go.)
* [SERP API - API Token](https://dashboard.thordata.com/serp-api/get-started)

{% stepper %}
{% step %}
**Log in to Vapi AI**

Visit [vapi.ai](https://vapi.ai/) and log in to your account.
{% endstep %}

{% step %}
**Get your ThorData API key**

Log in to your ThorData account and navigate to [SERP API > API Token](https://dashboard.thordata.com/serp-api/get-started) to get your API key.
{% endstep %}

{% step %}
**Vapi's access tools**

In the Vapi dashboard, click "Tools" in the navigation menu.

<div align="left"><figure><img src="https://1563576391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8nDscYLNSmSnujUsW4Dv%2Fuploads%2FFzryEJ9bM0hxTe78Qc11%2F04.png?alt=media&#x26;token=953d6532-6fd2-4d5e-9ece-207344d79189" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Create a new tool**

Click the "Create Tool" button to start adding the ThorData MCP integration.

<div align="left"><figure><img src="https://1563576391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8nDscYLNSmSnujUsW4Dv%2Fuploads%2FCeY4ifVIyVr5r9XIobmu%2F02.png?alt=media&#x26;token=7a5e1ed2-5882-43fc-9e79-d67b562c2672" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Select MCP**

Select MCP as the tool type from the available options.

<div align="left"><figure><img src="https://1563576391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8nDscYLNSmSnujUsW4Dv%2Fuploads%2FZ6Ib1Q9Ggf7mscXzAuqd%2F01.png?alt=media&#x26;token=21ada820-97c0-48a9-85be-43b15974248c" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Configure MCP Server**

Please configure your tool using the following settings:

* Name: <kbd>thordata</kbd>
* MCP Server URL: [<kbd>https://mcp.thordata.net/YOUR\\\\\_API\\\\\_TOKEN/mcp</kbd>](https://doc.thordata.com/doc/zh-hk/pa-qu/serp-api)
* Set the timeout to 120 seconds to avoid errors. Please replace the content here.

{% hint style="info" %}
`YOUR_API_TOKEN`The actual API token you obtained from ThorData.
{% endhint %}
{% endstep %}

{% step %}
**Add tools to the assistant**

Go to the assistant settings and add the newly created ThorData tool to enable the integration.
{% endstep %}

{% step %}
**Test Integration**

Verify that the integration is working correctly by:

* Testing via the Vapi chat interface
* Initiating a test web call to your assistant
* You should see the ThorData tool become available and respond to your request

<div align="left"><figure><img src="https://1563576391-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8nDscYLNSmSnujUsW4Dv%2Fuploads%2FSgHpNYRgLioLiZqMs9hS%2F03.png?alt=media&#x26;token=35943ed5-3153-4b28-96f5-067c44b2d0b8" alt=""><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}

#### What's next?

Now that you have integrated ThorData with Vapi AI, you can:

* Use web crawler functionality directly in voice AI conversations
* Use [Vapi workflows](https://docs.vapi.ai/workflows/quickstart) to create more complex voice AI agents.
* Obtain real-time data from various sources.
