Skip to content
Cursor

LiteLLM Multi-Model API for Cursor

io.github.berriai/litellm-mcp

Access 100+ LLMs with one API: GPT-4, Claude, Gemini, Mistral, and more.

client:Cursor transport:stdio runtime:pypi

Install LiteLLM Multi-Model API in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "litellm-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "litellm-mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
        "LITELLM_API_BASE": "<LITELLM_API_BASE>",
        "LITELLM_API_KEY": "<LITELLM_API_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

LiteLLM Multi-Model API in other clients