Skip to content
Grok

LiteLLM Multi-Model API for Grok

io.github.berriai/litellm-mcp

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

client:Grok transport:stdio runtime:pypi

Install LiteLLM Multi-Model API in Grok

.mcp.json (in your project root)

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>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

LiteLLM Multi-Model API in other clients