Connect to any MCP (Model Context Protocol) server. The provider wraps the server’s tools in a sub-agent, exposing them asDocumentation Index
Fetch the complete documentation index at: https://docs.agno.com/llms.txt
Use this file to discover all available pages before exploring further.
query_mcp_<name>.
MCPContextProvider is read-only by default. The tool name includes the server name:
query_mcp_github.Transport Options
- stdio
- sse
- streamable-http
Run a local process.
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
server_name | str | required | Name of the MCP server. Used in tool name. |
transport | str | required | "stdio", "sse", or "streamable-http". |
command | str | None | Command to run (stdio transport). |
args | list[str] | None | Command arguments (stdio transport). |
url | str | None | Server URL (sse/http transports). |
headers | dict | None | HTTP headers (sse/http transports). |
env | dict | None | Environment variables for the subprocess. |
timeout_seconds | int | 30 | Connection timeout. |
id | str | "mcp_<name>" | Tool becomes query_<id>. |
model | Model | None | Model for the sub-agent. |
Tools Exposed
| Tool | Description |
|---|---|
query_mcp_<name> | Query the MCP server. Sub-agent calls the server’s tools internally. |
Lifecycle Management
MCPContextProvider requires explicit setup and teardown:Resources
MCPTools Reference
MCP tools and server setup
MCP Servers
Available MCP servers