About add-mcp
A skill for registering an MCP server on a live LiteLLM proxy. It collects server connection and optional authentication details, and supports listing or deleting registered servers.
Key features
- 01Register an MCP server on LiteLLM
- 02Set URL and transport type
- 03Provide optional authentication details
- 04List registered MCP servers
- 05Delete a registered server
Use cases
- 01Making an MCP server available through LiteLLM
- 02Registering a server with a chosen transport
- 03Checking servers registered on a proxy
- 04Removing an MCP server registration
MCP support
Registers MCP servers on a LiteLLM proxy so models and agents can use them. It also lists and deletes registrations.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ berriai/ litellm-skills --skill add-mcpAfter installing, type/add-mcpin Claude Code to confirm it loaded.
Details
From the project READMEAdd MCP Server
Register an MCP (Model Context Protocol) server on a live LiteLLM proxy so it can be used by models and agents.
Setup
Ask for these if not already known:
LITELLM_BASE_URL — e.g. https://my-proxy.example.com
LITELLM_API_KEY — proxy admin key
API reference: https://docs.litellm.ai/docs/mcp
Ask the user
- Server name (required, e.g.
my-github-mcp) - URL (required, e.g.
https://mcp.example.com/sse) - Transport —
sse(default),http, orstdio - Description (optional)
- Auth — does it need a bearer token or API key? (optional)
Run
curl -s -X POST "$BASE/v1/mcp/server" \
-H "Authorization: Bearer $KEY" \
-H "Content-Type: application/json" \
-d '{
"server_name": "<name>",
"url": "<url>",
"transport": "sse",
"description": "<description_or_omit>",
"auth_type": "bearer_token",
"credentials": "<token_if_needed>"
}'
For unauthenticated servers, omit auth_type and credentials.
List existing MCP servers
curl -s "$BASE/v1/mcp/server" \
-H "Authorization: Bearer $KEY"
Delete an MCP server
curl -s -X DELETE "$BASE/v1/mcp/server/<server_id>" \
-H "Authorization: Bearer $KEY"
Output
Show server_id — needed to reference this MCP server in agent configs or to delete it later.