# Connect LiteLLM to Your AI Agent (Universal MCP)

> Use your AI to review costs, plan budgets, and monitor performance in LiteLLM — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http litellm https://api.universalmcp.app/mcp/litellm`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/litellm` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "litellm", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: LiteLLM | Category: ERP & Accounting (LiteLLM Proxy Server - LLM Gateway) | Auth: Encrypted API credentials or guided self-hosted setup | Deployment: self-hosted
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Spend and usage logs, Budget caps and keys, Routing configuration; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=litellm | Guide: https://universalmcp.app/mcp/litellm
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (16 actions: 5 Read, 11 Write)
Perform over 10 actions across governance & security, SDK & agents, gateway routing, model catalog, and spend control. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Governance & Security (4):** Apply Guardrails (write), Configure Gateway Authentication (write), Review Observability Data (read), Set Governance Policy (write)
- **SDK & Agents (4):** Install Python SDK (write), Deploy Self-Hosted Gateway (write), Route Agent Turns (write), Connect MCP Server (write)
- **Gateway Routing (3):** Route Request to Model (write), Connect Provider Endpoint (write), Generate Gateway Key (write)
- **Model Catalog (3):** Search Model Catalog (read), Check Model Pricing (read), Check Provider Coverage (read)
- **Spend Control (2):** Track LLM Spend (read), Set Spend Cap (write)

## Example Prompts for LiteLLM
- **Budget headroom:** "List every LiteLLM virtual key with its spend and hard budget cap for this month, sorted by usage."
- **Routing review:** "Show how often LiteLLM auto-routed requests to fallback models this week and why."
- **Cache savings:** "Estimate LiteLLM cache savings by provider for the last 30 days from the cost logs."
- **Draft cap change:** "Draft a budget cap increase for the cedar-analytics key in LiteLLM and hold it for my approval."
