Gateway
MCP proxy
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
Your LITELLM_MASTER_KEY. Default for local Docker Compose: sk-local
Path Parameters
Server name as configured in config.yaml mcp_servers block
Response
MCP server response
⌘I
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));