Registering MCP servers in LiteLLM over Streamable HTTP, SSE or stdio, the fixed gateway endpoint clients connect to, tool name prefixing across servers, the REST endpoints for calling tools without an LLM, and protocol version negotiation.
Deciding which keys, teams or organizations can discover and call each MCP server and tool in LiteLLM, filtering tool lists by permission, and marking low-risk servers public to every key.
Choosing how LiteLLM authenticates to OAuth-protected MCP servers: PKCE authorization code for user-facing tools such as Claude Code and Cursor, client credentials for services and CI, passthrough and delegated upstream OAuth.
Exchanging the caller's token for a scoped MCP token so user context reaches the MCP server without forwarding raw tokens: RFC 8693 token exchange, native Microsoft Entra ID support and token caching.
Letting users and service accounts call a shared MCP server with their own upstream credentials: BYOK keys and per-user OAuth tokens stored per user and server, and using machine users to separate service accounts.
Checking MCP tool inputs before calls and tool results before the model sees them: pre_mcp_call, during_mcp_call and post_mcp_call modes for masking PII and blocking injected instructions coming back from tools.
Making MCP servers reject calls that bypass the gateway: LiteLLM's MCPJWTSigner adds a short-lived RS256 JWT to each tool call and the MCP server verifies it against LiteLLM's JWKS endpoint.
Limiting what agents see when hundreds of tools are registered: named toolsets drawn from several MCP servers, and tool search that exposes four meta-tools so the model finds and calls tools by keyword.
Exposing an existing REST API as MCP tools through LiteLLM without writing MCP server code: spec path, base URL, API key or bearer auth, and governing the generated tools like any other server.
Charging MCP tool calls to teams and keys: default cost per query per server, per-tool costs, custom post-call hooks for dynamic pricing, and seeing tool spend next to model spend.
Exposing some MCP servers to external clients such as ChatGPT and Claude Desktop while keeping sensitive ones visible only from internal networks, using per-server public flags and internal IP ranges.
Registering A2A agents, Vertex AI Agent Engine, LangGraph, Azure AI Foundry and Bedrock AgentCore agents in LiteLLM, controlling which teams and keys can invoke them, and logging and budgeting agent calls.