Skip to main content
POST
/
mcp
/
{server_id}
Proxy to a named MCP server
curl --request POST \
  --url https://litellm-rust.onrender.com/mcp/{server_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "method": "tools/list",
  "params": {}
}
'
import requests

url = "https://litellm-rust.onrender.com/mcp/{server_id}"

payload = {
    "method": "tools/list",
    "params": {}
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({method: 'tools/list', params: {}})
};

fetch('https://litellm-rust.onrender.com/mcp/{server_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));

Authorizations

Authorization
string
header
required

Your LITELLM_MASTER_KEY. Default for local Docker Compose: sk-local

Path Parameters

server_id
string
required

Server name as configured in config.yaml mcp_servers block

Body

application/json
method
string
Example:

"tools/list"

params
object

Response

MCP server response