Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Llm Fallback

FreeNot checked

MCP server that completes prompts with automatic provider fallback across OpenAI, Anthropic Claude, and Google Gemini. It is rate-limit aware, retries on transi

GitHubEmbed

About

MCP server that completes prompts with automatic provider fallback across OpenAI, Anthropic Claude, and Google Gemini. It is rate-limit aware, retries on transient failures, and provides a transparent attempt log.

README

MCP server that completes prompts with automatic provider fallback across OpenAI, Anthropic Claude, and Google Gemini. Built for production: rate-limit aware, retries on transient failures, transparent attempt log.

MIT License Node ≥ 18 MCP

Why

LLM APIs go down. They rate-limit you. One provider has an outage, the others usually don't. Production LLM apps need fallback. This server gives you the pattern as a single MCP tool.

  • Try OpenAI → Anthropic → Gemini in order (configurable)
  • Each provider retries once on 429 / 5xx / network errors with backoff
  • Return first success with a full per-provider attempt log
  • Skip providers without keys automatically
  • Zero SDK dependencies — calls each provider's REST API directly

Install

npm install -g llm-fallback-mcp

Or npx:

npx llm-fallback-mcp

Use with Claude Desktop

Add to claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "llm-fallback": {
      "command": "npx",
      "args": ["-y", "llm-fallback-mcp"],
      "env": {
        "OPENAI_API_KEY": "sk-...",
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "GEMINI_API_KEY": "..."
      }
    }
  }
}

Only set keys for providers you want active. Missing keys = provider skipped.

Tools

complete

Arg Type Required Default
prompt string yes
chain string[] no ["openai", "anthropic", "gemini"]
model_overrides object no
temperature number no 0.5
max_tokens number no 1024

health_check

Returns which providers are configured.

Example response

{
  "text": "...",
  "provider_used": "anthropic",
  "model_used": "claude-haiku-4-5-20251001",
  "attempts": [
    { "provider": "openai", "ok": false, "status": 429, "durationMs": 412 },
    { "provider": "anthropic", "ok": true, "durationMs": 1133 }
  ]
}

Local development

git clone https://github.com/KhushalB25/llm-fallback-mcp.git
cd llm-fallback-mcp
npm install
npm run build
OPENAI_API_KEY=sk-... npm start

Author

Khushal Bhandari · GitHub

License

MIT

from github.com/KhushalB25/llm-fallback-mcp

Install Llm Fallback in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install llm-fallback-mcp

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add llm-fallback-mcp -- npx -y llm-fallback-mcp

FAQ

Is Llm Fallback MCP free?

Yes, Llm Fallback MCP is free — one-click install via Unyly at no cost.

Does Llm Fallback need an API key?

No, Llm Fallback runs without API keys or environment variables.

Is Llm Fallback hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install Llm Fallback in Claude Desktop, Claude Code or Cursor?

Open Llm Fallback on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Llm Fallback with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs