Skip to main content
Glama
QuickRouter MCP Server

QuickRouter MCP Server

QuickRouter MCP Server

A local Model Context Protocol server for browsing QuickRouter models and pricing, estimating text-token costs, and sending non-streaming text chat requests. The server communicates over stdio and requires Node.js 20 or newer.

QuickRouter MCP Server on Glama

Run

Run the npm package:

npx -y quickrouter-mcp-server

To run from source, run npm ci, then npm run build and node dist/index.js. Set the client command to node and its first argument to the absolute path of dist/index.js. The process waits for MCP messages on stdin.

The three catalog tools work without a key. To enable chat, set QUICKROUTER_API_KEY in the local server process environment. Get a key from the QuickRouter console. Keep it out of source control. Chat sends the selected model ID and message text to https://api.quickrouter.ai/v1/chat/completions and may incur charges. Catalog tools fetch https://quickrouter.ai/api/model-pricing without the key.

Related MCP server: OpenMayhem MCP

Client configuration

These examples use the npm package. For the local build, substitute the node command and script path described above. If a GUI client cannot find npx, use the absolute path returned by command -v npx on macOS or Linux, or where npx on Windows.

Claude Desktop

Open Settings → Developer → Edit Config, add the entry to claude_desktop_config.json, then restart Claude Desktop. For chat, inject QUICKROUTER_API_KEY in the local process environment. If the app does not inherit that environment, set the key in the private config's server-level env map. Local MCP setup

{
  "mcpServers": {
    "quickrouter": {
      "command": "npx",
      "args": ["-y", "quickrouter-mcp-server"]
    }
  }
}

Cursor / Grok Build

Add this to .cursor/mcp.json for the project or ~/.cursor/mcp.json for your account. Start the client with the key in its environment if enabling chat. To use catalog tools only, omit the env entry. MCP configuration

{
  "mcpServers": {
    "quickrouter": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "quickrouter-mcp-server"],
      "env": {"QUICKROUTER_API_KEY": "${env:QUICKROUTER_API_KEY}"}
    }
  }
}

Windsurf / Devin Desktop

Add the entry through the MCP settings. Existing Windsurf installations use ~/.codeium/windsurf/mcp_config.json. Devin Desktop uses ~/.config/devin/mcp_config.json for the user scope, or .devin/mcp_config.local.json for a local project override. Inject the key through the local process environment or the private server-level env map if using chat. Current Devin MCP configuration

{
  "mcpServers": {
    "quickrouter": {
      "command": "npx",
      "args": ["-y", "quickrouter-mcp-server"]
    }
  }
}

Claude Code

Use a project .mcp.json file and run claude mcp list to confirm the registration. Omit env when using the catalog without a key. MCP scopes and environment expansion

{
  "mcpServers": {
    "quickrouter": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "quickrouter-mcp-server"],
      "env": {"QUICKROUTER_API_KEY": "${QUICKROUTER_API_KEY}"}
    }
  }
}

Tools

Tool

Common inputs

Result

list_models

query, family, limit

Matching model IDs, capability tags, and catalog endpoint URLs. The in-memory catalog cache expires after 60 seconds.

get_model_pricing

model_id

Exact or unique partial match with group rates, price units, published rate tiers, capabilities, and pricing timestamp. Unknown context windows are returned as null.

estimate_cost

model_id, input_tokens, output_tokens, optional requests, group

Per-request and total USD for applicable text-token rates. Uses each group's matching published input and output tiers.

chat_completion

messages, optional model, max_tokens

Text, returned model, finish reason, and available token usage. Defaults to claude-sonnet-5-5. Requires QUICKROUTER_API_KEY.

For example, estimate ten identical requests with {"model_id":"gpt-6.2-sol","input_tokens":1200,"output_tokens":300,"requests":10}. Batch here means a repeated-request estimate. The estimate covers uncached text and excludes cache, media and batch discounts. The actual API key group, rate tier, and usage in the console determine charges. Consult QuickRouter pricing.

For a text chat, send {"messages":[{"role":"user","content":"Reply with OK."}],"max_tokens":32}. Custom model IDs are passed through to the gateway and require model access on your key. Use max_tokens where the selected route accepts it. HTTP 401 indicates a rejected key, 403 indicates denied access, and 429 indicates a rate or quota limit. The server does not automatically retry chat calls.

Model IDs

The following 13 IDs were checked in the public QuickRouter catalog. Availability for chat depends on your key group.

Family

IDs

GPT

gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-terra

Claude

claude-opus-5-5, claude-fable-5-2, claude-sonnet-5-5, claude-haiku-5-5

Gemini

gemini-4-carbon, gemini-4-hydrogen, gemini-4-neon

DeepSeek

deepseek-v4.1-flash, deepseek-v4-pro

Grok

grok-4.7

Development

npm ci
npm run typecheck
npm run test
npm run build
npm pack --dry-run

The production dependency is the official TypeScript SDK v1 line, @modelcontextprotocol/sdk, with Zod validation. Unit tests use MCP InMemoryTransport and mocked fetch. The software is distributed under the MIT License.

Available Tools

4 tools
chat_completionA

Send one billable, non-streaming text chat request using the configured QuickRouter key. Model examples: gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-terra, claude-opus-5-5, claude-fable-5-2, claude-sonnet-5-5, claude-haiku-5-5, gemini-4-carbon, gemini-4-hydrogen, gemini-4-neon, deepseek-v4.1-flash, deepseek-v4-pro, grok-4.7. Custom IDs are accepted. Messages are sent to api.quickrouter.ai.

Inputs: messages (required), model, max_tokens.

estimate_costA
Read-onlyIdempotent

Estimate USD charges for uncached text chat from published QuickRouter rate tiers. Uses token counts per request and an optional repeat count and billing group.

Inputs: model_id (required), input_tokens (required), output_tokens (required), group, +1 more.

get_model_pricingA
Read-onlyIdempotent

Get published QuickRouter group rates, token tiers, endpoint and capability information for one model. Exact IDs take precedence over unique partial matches.

Inputs: model_id (required).

list_modelsA
Read-onlyIdempotent

List QuickRouter models and their advertised endpoint URLs. Supports keyword and provider-family filters. Uses public pricing without credentials.

Inputs: limit, query, family.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 4 tools

    Disambiguation4/5

    The four tools split cleanly into model discovery (list_models), single-model detail (get_model_pricing), cost math (estimate_cost), and actual inference (chat_completion). The only mild overlap is between get_model_pricing and estimate_cost, since both surface rate information, but the descriptions make the lookup-vs-calculation boundary clear.

    Naming Consistency4/5

    All names are snake_case and three of four follow a verb_noun pattern (get_model_pricing, list_models, estimate_cost). chat_completion is a noun-phrase outlier, a minor deviation but still predictable and readable in context.

    Tool Count5/5

    Four tools is well-scoped for a router/pricing service: list, inspect, estimate, and invoke. Each tool has a distinct job and none feels redundant or padded.

    Completeness4/5

    The pricing-to-inference lifecycle is covered end to end, with filters and repeat/billing-group options on estimation. Gaps are minor but real: no streaming, no embeddings or non-chat endpoints, and no account balance/usage check to complement the cost estimates.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients to access hosted models and services via a local stdio bridge, with live model discovery, pricing, balance checks, and paid execution requiring cost estimates.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Lets an AI assistant run locally over stdio to inspect and test the Klap Core API — looking up charges and timelines, listing webhooks and deliveries, checking accepted token/network pairs, querying metrics, and, in test mode, creating charges, re-checking them on-chain, retrying deliveries and driving sandbox payments. Live environments are read-only unless writes are explicitly opted into, and money-moving or endpoint-management operations are never exposed.
      16
      102 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables agents to browse and compare a multi-provider model and price catalog without an API key, inspect model capabilities and context limits, and run chat completions with a key while returning token usage and request cost.
      4
      MIT