Skip to main content
Give the Deep Research agent access to external tools via remote MCP servers. Pass server configs through mcp_servers; the type: "mcp_server" field is added automatically. Only url is required. name, headers, and allowed_tools are optional. Custom Function Calling tools are not supported by Deep Research, but remote MCP servers are.

Code

cookbook/90_models/google/gemini_interactions/deep_research_mcp.py

Usage

1

Set up your virtual environment

2

Set your API key

3

Install dependencies

4

Run Agent