Skip to main content
The Model Context Protocol (MCP) is an open standard that defines how applications expose tools, resources, and prompts to language models. By connecting to MCP servers, agents can access external capabilities without requiring custom integration code for each service.

Transport Types

MCP supports three transport types for connecting to servers: Choosing a Transport:
  • Use streamable_http for remote MCP servers (most common)
  • Use sse for streaming data or real-time updates
  • Use stdio for local processes or command-line tools

Basic Setup

Configure and connect to MCP servers:

Multiple MCP Servers

Connect to multiple MCP servers in a single configuration:

Using Context Managers

Use async context managers for automatic resource cleanup: