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
| Type | Description |
|---|---|
none | No auth injected |
api_key | Adds x-api-key: <value> header |
bearer_token | Adds Authorization: Bearer <value> header |
basic | Adds Authorization: Basic <base64> header |
authorization | Adds a raw Authorization: <value> header |
token | Adds Token <value> header |
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)