Generate an MCP client configuration for Claude Desktop, Cursor, Claude Code, or any MCP-compatible client.
{
"mcpServers": {
"litellm": {
"command": "uvx",
"args": ["--refresh", "--extra-index-url", "https://nikitatsym.github.io/litellm-mcp/simple", "litellm-mcp"],
"env": {
"LITELLM_URL": "https://litellm.example.com",
"LITELLM_API_KEY": "YOUR_ADMIN_KEY"
}
}
}
}
Base URL of your LiteLLM proxy (no trailing slash).
Master key or an admin-role virtual key. Sent as Authorization: Bearer.
This MCP wraps the proxy administration surface, so it needs an admin-scoped
key (not a plain inference key). You can use the master key, but a dedicated
virtual key with the proxy_admin role is safer to rotate.
proxy_admin role (or a role with admin permissions), and copy the key — it is shown only once.curl -X POST "$LITELLM_URL/key/generate" \
-H "Authorization: Bearer $LITELLM_MASTER_KEY" \
-H "Content-Type: application/json" \
-d '{"user_role": "proxy_admin", "key_alias": "mcp-admin"}'
claude_desktop_config.json..cursor/mcp.json in your project root..claude/settings.json or use claude mcp add.