litellm-mcp
MCP server for LiteLLM
Install / Use
claude mcp add wklee610 -- npx -y github:wklee610/litellm-mcpIf the server publishes to npm under a different name, use that package instead ā check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Our assessment of litellm-mcp
litellm-mcp scores 62/100 on our quality scale, 893rd of 937 AI & Machine Learning skills we index.
Its MCP Server is 3.7 KB long, well organised into 12 sections with 7 code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 85/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit ā read the skill file before letting an agent act on it.
litellm-mcp compared with similar skills
All 4 of these similar skills score higher than litellm-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| litellm-mcp (this skill)by wklee610 | 62 | 3 | 3mo ago | MCP Server |
| claude-memby thedotmack | 100 | 110.6k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 108.0k | 1d ago | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 89.9k | 7d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.7k | today | CLAUDE.md |
Frequently asked questions
- How do I install litellm-mcp?
- Run
claude mcp add wklee610 -- npx -y github:wklee610/litellm-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does litellm-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is litellm-mcp safe to use?
- It is MIT-licensed and scores 85/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is litellm-mcp still maintained?
- The repository was last updated about 3 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubLiteLLM MCP Server
An MCP server for LiteLLM operations. At startup it reads the LiteLLM proxy OpenAPI document and registers one FastMCP tool per LiteLLM endpoint.
Features
- Full LiteLLM API coverage: Registers every operation in
GET /openapi.json. - Version-aware tools: Tool names come from LiteLLM
operationIdvalues, so the exposed tools follow the running LiteLLM version. - Discovery helpers: Includes tools to list/search registered LiteLLM tools and inspect individual endpoint mappings.
- Environment-based config: Reads the LiteLLM URL and master key from env vars.
Prerequisites
- Python 3.10+
uvpackage manager recommended- A reachable LiteLLM proxy
- A LiteLLM master key or admin key
Installation
uv sync
Configuration
The server reads LiteLLM connection settings from environment variables. It
fetches ${LITELLM_URL}/openapi.json during startup.
LITELLM_URL: LiteLLM proxy base URL, for examplehttp://localhost:4000.LITELLM_MASTER_KEY: LiteLLM master key or admin key.LITELLM_TIMEOUT_SECONDS: Optional request timeout in seconds. Defaults to30.MCP_TRANSPORT: MCP transport, eitherstdio(default) orhttp.MCP_HOST: HTTP bind address. Defaults to0.0.0.0.MCP_PORT: HTTP bind port. Defaults to8000.
Usage
Running the Server
export LITELLM_URL=http://localhost:4000
export LITELLM_MASTER_KEY=sk-...
uv run litellm-mcp
The default transport is stdio. To expose the server through FastMCP's Streamable HTTP transport instead:
export MCP_TRANSPORT=http
export MCP_HOST=0.0.0.0
export MCP_PORT=8000
uv run litellm-mcp
Clients can then connect to http://localhost:8000/mcp.
Using Docker
docker build -t litellm-mcp .
docker run -i --rm \
-e LITELLM_URL=http://host.docker.internal:4000 \
-e LITELLM_MASTER_KEY=sk-... \
litellm-mcp
For Streamable HTTP:
docker run --rm -p 8000:8000 \
-e LITELLM_URL=http://host.docker.internal:4000 \
-e LITELLM_MASTER_KEY=sk-... \
-e MCP_TRANSPORT=http \
litellm-mcp
Claude Desktop Configuration
{
"mcpServers": {
"litellm": {
"command": "<uv PATH>",
"args": [
"--directory",
"<litellm-mcp PATH>",
"run",
"litellm-mcp"
],
"env": {
"LITELLM_URL": "http://localhost:4000",
"LITELLM_MASTER_KEY": "sk-..."
}
}
}
}
Tool Names
Tool names are generated from LiteLLM OpenAPI operationId values and are
limited to 64 characters. A numeric suffix is added within that limit when
shortening produces a duplicate name.
Examples from LiteLLM v1.84.8:
| LiteLLM Endpoint | MCP Tool |
|------------------|----------|
| GET /health/readiness | health_readiness_health_readiness_get |
| GET /key/list | list_keys_key_list_get |
| GET /key/info | info_key_fn_key_info_get |
| GET /spend/logs/v2 | ui_view_spend_logs_spend_logs_v2_get |
| POST /chat/completions | chat_completion_chat_completions_post |
Two helper tools are always registered:
list_litellm_openapi_tools: Search/list dynamically registered endpoint tools.get_litellm_openapi_tool: Show the HTTP method, path, and parameter mapping for one endpoint tool.
Project Structure
src/litellm_mcp/
āāā configs/ # Environment configuration
āāā connections/ # LiteLLM HTTP client singleton
āāā tools/ # OpenAPI-driven FastMCP tool registration
āāā main.py # Entry point and tool registration
Security Notes
LITELLM_MASTER_KEY can read and mutate sensitive LiteLLM state. Because this
server exposes every LiteLLM endpoint in the running proxy, including mutating
admin endpoints, prefer running it locally or in a trusted network.
Related Skills
claude-mem
110.6kPersistent Context Across Sessions for Every Agent ā Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
108.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu ā one CLI, zero API fees.
Understand-Anything
89.9kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit ā see the Safety scan above for what the skill file itself contains.
