Skip to main content
Glama

litellm-mcp

MCP server for the LiteLLM proxy API. No clone, no build — just npx.

Cursor config

{
  "mcpServers": {
    "litellm": {
      "command": "npx",
      "args": ["-y", "@weeebdev/litellm-mcp"],
      "env": {
        "LITELLM_BASE_URL": "https://litellm-api.up.railway.app",
        "LITELLM_API_KEY": "sk-your-key-here"
      }
    }
  }
}

From GitHub (no npm):

{
  "mcpServers": {
    "litellm": {
      "command": "npx",
      "args": ["-y", "github:weeebdev/litellm-mcp"],
      "env": {
        "LITELLM_BASE_URL": "https://litellm-api.up.railway.app",
        "LITELLM_API_KEY": "sk-your-key-here"
      }
    }
  }
}

Local dev (from a cloned repo):

{
  "mcpServers": {
    "litellm": {
      "command": "npx",
      "args": ["-y", "."],
      "cwd": "/Users/adil/projects/litellm-mcp",
      "env": {
        "LITELLM_API_KEY": "sk-your-key-here"
      }
    }
  }
}

Related MCP server: mcp-consultant

Configuration

Variable

Description

Default

LITELLM_BASE_URL

LiteLLM proxy URL

https://litellm-api.up.railway.app

LITELLM_API_KEY

Bearer token / virtual key

(required)

Tools

LLM: litellm_chat_completion, litellm_completion, litellm_embeddings, litellm_image_generation, litellm_responses_create

Models & health: litellm_list_models, litellm_get_model_info, litellm_health_check, litellm_test_model_connection

Admin: litellm_list_keys, litellm_get_key_info, litellm_generate_key, litellm_list_teams, litellm_get_spend_logs, litellm_list_mcp_servers, litellm_list_mcp_tools

Escape hatch: litellm_api_request — call any endpoint from the Swagger docs

Publish to npm

npm publish --access public

Then anyone can run:

npx -y @weeebdev/litellm-mcp

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server that interfaces with Gemini and OpenAI CLI tools to enable AI model interactions. It provides a bridge to external AI CLIs with predefined model configurations.
    -
  • F
    license
    A
    quality
    C
    maintenance
    MCP server that connects LLM agents to a local LM Studio instance, enabling model management, OpenAI-compatible chat completions, text completions, and embeddings through a set of tools.
    9
    1
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    A local MCP server exposing the OpenAI platform REST API as tools for file management, fine-tuning, inference, images, audio, batch processing, and organization usage/costs.
    -