> 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/google-adk-integration.md).

# Google ADK Integration

Connect Google Agent Development Kit to Thordata MCP Server to build Gemini-powered agents with real-time web search and structured data tools.

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

Connect the Google Agent Development Kit (ADK) to the ThorData MCP server (featuring over 60 tools) to enable web search and structured data extraction for Gemini-powered agents.

#### Remote MCP

{% stepper %}
{% step %}
**Get your API token**

* Go to [SERP API-API Token](https://dashboard.thordata.com/serp-api/get-started) to create an API Token;
* Copy your API Token (format as: `sk_7qBRe***************************`）
  {% endstep %}

{% step %}
**Install the required software packages**

```
pip install google-adk
```

{% endstep %}

{% step %}
**Configure your MCP server**

```
from google.adk.agents import Agent
from google.adk.tools.mcp_tool.mcp_session_manager import StreamableHTTPServerParams
from google.adk.tools.mcp_tool.mcp_toolset import McpToolset

THORDATA_API_TOKEN = "YOUR_THORDATA_API_TOKEN"

root_agent = Agent(
model="gemini-2.5-pro",
name="THORdata_agent",
instruction="""Help users access web data using ThorData""",
tools=[
    McpToolset(
        connection_params=StreamableHTTPServerParams(
            url=f"https://mcp.thordata.com/THORDATA_API_TOKEN/mcp",
        ),
    )
],
)
```

{% endstep %}

{% step %}
**Set environment variables (optional)**

To enhance security, you can store the API token as an environment variable:

```
import os
THORDATA_API_TOKEN = os.getenv("THORDATA_API_TOKEN")
```

`.env`Then, create a file in the project directory:

```
THORDATA_API_TOKEN=your_ThorData_api_token_here
```

{% endstep %}

{% step %}
**Testing to see if it works.**

* Please replace `YOUR_THORDATA_API_TOKEN` with your actual ThorData API token.
* Run your Google ADK script.
* You should see the agent perform a web search and provide a comprehensive response.
  {% endstep %}

{% step %}
**Monitor usage**

View your API usage in the [ThorData SERP API usage logs](https://dashboard.thordata.com/serp-api/get-started).
{% endstep %}
{% endstepper %}
