> ## Documentation Index
> Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP proxy



## OpenAPI

````yaml POST /mcp/{server_id}
openapi: 3.0.3
info:
  title: LiteLLM Agent Platform API
  description: >-
    Unified API for the LiteLLM Agent Platform — gateway, agents, sessions, and
    runtimes.
  version: 0.1.0
servers:
  - url: https://litellm-rust.onrender.com
    description: Production
  - url: http://localhost:4000
    description: Local (Docker Compose)
security:
  - BearerAuth: []
tags:
  - name: System
  - name: Models
  - name: Messages
  - name: API Keys
  - name: Agents
  - name: Sessions
  - name: Runtimes
  - name: MCP
paths:
  /mcp/{server_id}:
    post:
      tags:
        - MCP
      summary: Proxy to a named MCP server
      operationId: mcpProxy
      parameters:
        - name: server_id
          in: path
          required: true
          schema:
            type: string
          description: Server name as configured in config.yaml `mcp_servers` block
          example: github
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                method:
                  type: string
                  example: tools/list
                params:
                  type: object
      responses:
        '200':
          description: MCP server response
        '401':
          description: Unauthorized
        '404':
          description: MCP server not configured
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'Your LITELLM_MASTER_KEY. Default for local Docker Compose: `sk-local`'

````