Skip to main content
Pairs with ParallelBackend (direct SDK) but is NOT equivalent: the SDK exposes web_search + web_extract, whereas the MCP server exposes web_search + web_fetch (token-efficient markdown). Pick MCP when you want the compressed markdown output, SDK when you need the raw extraction payload.
web_parallel_mcp.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your API keys

4

Run the example

Save the code above as web_parallel_mcp.py, then run:
Full source: cookbook/12_context/11_web_parallel_mcp.py