Configuration
MCP servers are declared inconfig.yaml using the same dict-keyed format as LiteLLM:
Endpoints
Route to a specific server
Auto-select server
x-litellm-mcp-server: <name>header?server=<name>query parameter- First configured server (if only one)
Authorization: Bearer <master-key>.
Supported auth types
Referencing secrets
Auth values starting withos.environ/ are read from environment variables at boot:
config.yaml and version control.
Current limitations
These features from LiteLLMβs hosted MCP are not yet supported:- Multi-server aggregation behind a single
/mcpendpoint - Per-request upstream credentials via
x-mcp-{server}-{header} oauth2andaws_sigv4auth typessseandstdiotransports (HTTP only)