Openrouter

v0.2.1
io.github.pipeworx-io/openrouter Checked 4 days ago Published 1 month ago

OpenRouter Models MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_models

List LLMs from the OpenRouter catalog (~340 models across all major providers) with normalized $/1M-token pricing, context windows, and modality. Filter by search, free-only, minimum context, or modality (e.g. "image" for vision models). Sorted cheapest-first by completion price. Keyless.

ParameterTypeDescription
free_onlybooleanIf true, only return models whose prompt price is $0 (free tier).
limitnumberMax models to return (default 25, max 60).
min_contextnumberMinimum context_length in tokens, e.g. 100000 or 200000.
modalitystringSubstring match on architecture.modality, e.g. "image" to find vision/multimodal models, "text->text" for text-only.
searchstringCase-insensitive substring match against model id, name, and description. e.g. "claude", "gpt-4o", "deepseek".

get_model

Get full details for one OpenRouter model by id — normalized $/1M pricing (prompt, completion, plus per-request/image/web-search costs), context window, modality, supported parameters, tokenizer, knowledge cutoff. e.g. id "anthropic/claude-sonnet-4.5". Keyless.

ParameterTypeDescription
id *stringExact model id, e.g. "anthropic/claude-sonnet-4.5", "openai/gpt-4o", "google/gemini-2.5-pro".

compare_models

Side-by-side comparison of pricing ($/1M tokens), context window, and modality for 2-5 OpenRouter models. Answers "is claude-sonnet-4.5 cheaper than gpt-4o". Keyless.

ParameterTypeDescription
ids *arrayArray of 2-5 exact model ids, e.g. ["anthropic/claude-sonnet-4.5", "openai/gpt-4o"].