Pipecat
Pipecat's MCPClient connects to a remote MCP server over Streamable HTTP and hands its tools to your LLM context.
- Create an API key in the dashboard and keep it in an environment variable, for example BROWSEMCP_API_KEY.
- Install the MCP extra: uv add "pipecat-ai[mcp]".
- Create the client and pass its tools to the context as below.
- Put the agent instructions from Get started in the context's first message.
import os
from mcp.client.session_group import StreamableHttpParameters
from pipecat.processors.aggregators.llm_context import LLMContext
from pipecat.services.mcp_service import MCPClient
mcp = MCPClient(
server_params=StreamableHttpParameters(
url="https://browsemcp-api.haris-299.workers.dev/mcp",
headers={"Authorization": f"Bearer {os.environ['BROWSEMCP_API_KEY']}"},
)
)
context = LLMContext(messages=messages, tools=await mcp.tools())Good to know
- No timeout needs changing. Pipecat's 5-second timeout applies to connecting only: a get_session_status that waited 25 seconds for the caller came back normally with the defaults.
- tools_filter narrows what the model may call.
- Await mcp.close() when the call ends, so the connection is released.
Checked against Pipecat's documentation on 20 November 2026. Platforms change their settings; if a field has moved, their page is the authority. Run on 20 November 2026 with pipecat-ai 1.16.0 against a Sightline server: the code below listed the tools and called start_session, get_session_status (waiting 25 seconds) and end_session. It was not run inside a live voice call.
Using something else? See all platforms.
Next: add the agent instructions and try a call against your own site.