openrouter-mcp-server

vmhq/openrouter-mcp-server
★ 0 stars TypeScript AI/LLM Updated today
MCP server that lets AI agents delegate tasks to cheaper models via the OpenRouter API, with live pricing and cost-tier auto-selection
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "openrouter-mcp-serve": {
      "command": "npx",
      "args": [
        "-y",
        "vmhq/openrouter-mcp-server"
      ]
    }
  }
}

README Excerpt

Remote MCP server (streamable HTTP, stateless JSON) that lets AI agents **delegate tasks to cheaper models** via the OpenRouter API, querying the catalog and **live prices**, with a cost policy configurable through a `.env` file. - **Live catalog**: queries OpenRouter's `GET /api/v1/models` (with a 5-minute cache) and exposes prices in USD per million tokens, context window, and tool-calling support.

Tools (17)

ALLOW_FREE_MODELSDEFAULT_MAX_TOKENSDEFAULT_MODELMAX_CONTINUATIONSMAX_OUTPUT_TOKENSMAX_RESPONSE_CHARSMCP_AUTH_TOKENMCP_PUBLIC_URLOPENROUTER_API_KEYPORTREASONING_MIN_MAX_TOKENSopenrouter_auto_delegateopenrouter_check_creditsopenrouter_delegate_taskopenrouter_fetch_responseopenrouter_get_modelopenrouter_list_models