> For the complete documentation index, see [llms.txt](https://docs.talordata.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.talordata.com/serp-api/integration/mcp-integration/google-adk-integration.md).

# Google ADK Integration

Integrate Talordata 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 TalorData 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.talordata.com/scraping/serp-api/api-token/) 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

TALORDATA_API_TOKEN = "YOUR_TALORDATA_API_TOKEN"

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

{% endstep %}

{% step %}

#### Set environment variables (optional)

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

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

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

```
TALORDATA_API_TOKEN=your_TalorData_api_token_here
```

{% endstep %}

{% step %}

#### Testing to see if it works.

* Please replace `YOUR_TALORDATA_API_TOKEN` with your actual TalorData API token.&#x20;
* Run your Google ADK script.&#x20;
* You should see the agent perform a web search and provide a comprehensive response.

{% endstep %}

{% step %}

#### Monitor usage

View your API usage in the [TalorData SERP API usage logs](https://dashboard.talordata.com/scraping/serp-api/history).
{% endstep %}
{% endstepper %}
