About Openrouter MCP Multimodal
Openrouter MCP Multimodal is an MCP server published by stabgan in the Communication category: mCP server for OpenRouter — chat with 300+ LLMs (Claude, Gemini, GPT), analyze images / audio / video, generate images / speech / music / video (Veo 3.1, Seedance, Kling, Wan) from Claude Desktop, Cursor, Kiro, VS Code. Conduid read 21 tools from its source: analyze_audio, analyze_image, analyze_video, chat_completion, decide, embed_text and 15 more. It is published to npm as @stabgan/openrouter-mcp-multimodal and starts with npx.
The repository has 105 stars and 29 forks, is licensed Apache-2.0, and its last commit was on 1 Dec 2026. The latest release is v5.1.0 (11 Oct 2026): New Tools (21 total — complete OpenRouter modality coverage) | Tool | Endpoint | What it does | |------|----------|-------------| | embed_text | POST /api/v1/embeddings… It follows v5.0.1 (5 Sep 2026), and the 5 most recent releases go back to v4.7.0 (2 Sep 2026). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include comms.
Install
claude mcp add openrouter-mcp-multimodal -- npx -y @stabgan/openrouter-mcp-multimodalnpx -y @stabgan/openrouter-mcp-multimodalgit clone https://github.com/stabgan/openrouter-mcp-multimodalTools (21)
analyze_audioTranscribe / analyze audio files| Parameter | Type | Description |
|---|---|---|
| audio_path * | string | Local file path (sandboxed), http(s) URL, or data URL (base64-encoded audio). |
| cache_input | boolean | |
| model | string | Multimodal model ID (default: google/gemini-2.5-flash). |
| provider | object | Provider routing overrides (order, sort, allow_fallbacks, etc.). |
| question | string | Question or instruction. Default: "Please transcribe and analyze this audio file." |
analyze_imageVision — local path, URL, or data URL + `question`| Parameter | Type | Description |
|---|---|---|
| cache_input | boolean | Attach `cache_control: ephemeral` to the image block for Anthropic / Gemini prompt caching. |
| image_path * | string | Local path (OPENROUTER_INPUT_DIR sandbox), https URL, or data URL. Good: `"photo.jpg"`. Bad: `"url": "..."` (wrong key), `"/etc/passwd"` (UNSAFE_PATH). |
| model | string | Vision model ID (optional; server default is a free multimodal model). |
| provider | object | Provider routing overrides (order, sort, allow_fallbacks, etc.). |
| question | string | Optional question. Default: "What's in this image?". Bad: using `prompt` (wrong key for this tool). |
analyze_videoDescribe / Q&A over video files| Parameter | Type | Description |
|---|---|---|
| cache_input | boolean | |
| model | string | Video-capable model ID (default: google/gemini-2.5-flash). |
| provider | object | Provider routing overrides (order, sort, allow_fallbacks, etc.). |
| question | string | Optional question. Default: "Describe what happens in this video, step by step." |
| video_path * | string | Local file path (sandboxed), http(s) URL, or base64 data URL. Supported containers: mp4, mpeg, mov, webm. |
chat_completionText chat, web search, provider routing, caching, reasoning, structured output| Parameter | Type | Description |
|---|---|---|
| frequency_penalty | number | Penalize new tokens based on their existing frequency in the text so far. Between -2.0 and 2.0. Positive values reduce repetition. |
| fusion | boolean | Enable `openrouter:fusion` — multi-model deliberation. Multiple models answer in parallel, an analyst synthesizes. Higher quality but ~2-5x latency. |
| include_reasoning | boolean | Surface the model's chain-of-thought on `_meta.reasoning` for R1 / Opus / Gemini Thinking models. |
| logprobs | boolean | Return log probabilities of output tokens. When true, each token includes its log probability in `_meta.logprobs`. |
| max_tokens | integer | Max completion tokens. Falls back to `OPENROUTER_MAX_TOKENS` env var if unset. |
| messages * | any | |
| model | string | Model ID (optional, uses server default). Append `:nitro` (fastest), `:floor` (cheapest), `:free`, `:online` (web search), or `:exacto` (tool accuracy). Example: `openai/gpt-4o:nitro`. Or pass `online: true` for programmatic web search. |
| online | boolean | Enable OpenRouter's web-search plugin (Exa-backed, $4 / 1000 results). |
| presence_penalty | number | Penalize new tokens based on whether they appear in the text so far. Between -2.0 and 2.0. Positive values encourage new topics. |
| provider | object | OpenRouter provider-routing overrides. Merges on top of `OPENROUTER_PROVIDER_*` env defaults. See https://openrouter.ai/docs/features/provider-routing |
| reasoning_effort | string | Control reasoning depth for thinking models (o1, o3, Claude extended thinking, etc.). Common values: `low`, `medium`, `high`. Higher effort = more reasoning tokens = better quality but slower and costlier. Passed through to the provider. |
| response_format | object | Request structured output. `{ "type": "json_object" }` forces valid JSON. `{ "type": "json_schema", "json_schema": { "name": "my_schema", "schema": {...} } }` enforces a specific JSON Schema. `{ "type": "text" }` is the default (plain text). |
| response_healing | boolean | Enable `openrouter:response_healing` — auto-fix malformed JSON (missing brackets, trailing commas, markdown wrappers). Reduces JSON defects by 80%+. |
| seed | integer | Deterministic sampling seed for reproducible outputs. Repeated requests with the same seed and parameters should return the same result. |
| stop | any | Up to 4 sequences where the API will stop generating further tokens. Pass a single string or an array of strings. |
| subagent | any | Enable `openrouter:subagent` — model can delegate subtasks to a smaller, cheaper worker model mid-generation. Pass `true` or `{model: "..."}` to specify the worker. |
| temperature | number | Default: 1. |
| top_logprobs | integer | Number of most likely tokens to return at each position, with their log probabilities. Requires `logprobs: true`. Between 0 and 20. |
| top_p | number | Nucleus sampling: only tokens with top_p cumulative probability are considered. Alternative to temperature. Between 0 and 1. |
| web_blocked_domains | array | Block specific domains from web search results (e.g. `["reddit.com", "pinterest.com"]`). |
| web_max_results | integer | Max web-search results when `online: true` (default 5). |
decideStructured decisions with calibrated probabilities (System One models)| Parameter | Type | Description |
|---|---|---|
| model | string | Decision model. Default: typesafe/jev-1.13. Also: upstage/solar-decide, microsoft/decision-1. |
| questions * | object | Map of question names to definitions. Each: { type: "noul"|"choice"|"score", instructions: string, criteria: {...} }. |
| state | object | Context/state for the decision (e.g. ticket text, user info). |
embed_textVector embeddings (37+ models: text-embedding-3-small/large, Nomic, etc.)| Parameter | Type | Description |
|---|---|---|
| dimensions | integer | Output vector dimensions (model-dependent). |
| model | string | Embedding model. Default: openai/text-embedding-3-small. Browse: openrouter.ai/collections/embedding-models |
| texts * | any | Text or array of texts to embed (max 2048). |
generate_audioText-to-speech / music via chat completions| Parameter | Type | Description |
|---|---|---|
| format | string | Output audio format (default: pcm16, auto-wrapped as WAV when needed). |
| model | string | Chat-completions audio model (default: openai/gpt-audio). |
| prompt * | string | Text prompt for speech or music generation. |
| provider | object | Provider routing overrides (order, sort, allow_fallbacks, etc.). |
| save_path | any | |
| voice | string | Voice ID (default: alloy). Model-specific. |
generate_imageText-to-image via chat completions with reference images| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Optional aspect ratio (provider-dependent). |
| image_size | string | Optional resolution tier for supported models. |
| input_images | array | Reference images (local path, URL, or data URL) for style/identity conditioning. Max 20. |
| max_tokens | integer | Optional completion token cap. |
| modalities | array | Response modalities (default: `["image","text"]`). |
| model | string | Image model ID (default: google/gemini-2.5-flash-image). Chat-completions route. |
| prompt * | string | Text prompt describing the image to generate. |
| provider | object | Provider routing overrides (order, sort, allow_fallbacks, etc.). |
| save_path | any |
generate_image_dedicatedText-to-image via dedicated `/api/v1/images` (resolution, quality, format)| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Aspect ratio (same enum as generate_image). |
| input_references | array | Reference images for image-to-image. Each entry: local path, http(s) URL, or data URL. Max 20. |
| model | string | Image model ID. Default: google/gemini-2.5-flash-image. Browse: https://openrouter.ai/collections/image-models |
| n | integer | Number of images to request (default 1; only images[0] is saved/inlined). |
| output_format | string | Output image format. |
| prompt * | string | Text prompt describing the image to generate. |
| provider | object | Provider routing overrides (order, sort, allow_fallbacks, etc.). |
| quality | string | Image quality level (default: auto). |
| resolution | string | Normalized resolution tier. Provider maps to closest supported size. |
| save_path | any |
generate_videoText-to-video (async, resumable)| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Provider-specific aspect ratio (e.g. "16:9", "9:16"). No server-side enum. |
| duration | integer | Clip duration in seconds (provider-dependent). |
| first_frame_image | string | Optional first-frame image (path, URL, or data URL). |
| last_frame_image | string | Optional last-frame image (path, URL, or data URL). |
| max_wait_ms | integer | Max time to poll before returning JOB_STILL_RUNNING (ms). Default: 600000 (10 min) via OPENROUTER_VIDEO_MAX_WAIT_MS. |
| model | string | Video model ID (default: google/veo-3.1). Passed through to provider. |
| poll_interval_ms | integer | Poll interval while waiting (ms). Default: 15000 via OPENROUTER_VIDEO_POLL_INTERVAL_MS. |
| prompt * | string | Text prompt describing the video to generate. |
| provider | object | Provider routing overrides. |
| reference_images | array | Optional reference images for style/subject guidance. Max 50 (seedance-2.5 supports up to 50 reference assets). |
| resolution | string | Provider-specific resolution (e.g. "720p", "1080p"). No server-side enum. |
| save_path | any | |
| seed | integer | Optional reproducibility seed. |
generate_video_from_imageImage-to-video (narrower schema)| Parameter | Type | Description |
|---|---|---|
| aspect_ratio | string | Provider-specific aspect ratio. |
| duration | integer | Clip duration in seconds. |
| image * | string | First-frame image (path, URL, or data URL). Required. |
| max_wait_ms | integer | Max poll wait (ms) before JOB_STILL_RUNNING. Default: 600000. |
| model | string | Video model ID (default: google/veo-3.1). |
| poll_interval_ms | integer | Poll interval (ms). Default: 15000. |
| prompt * | string | Motion/scene prompt describing the video. |
| provider | object | Provider routing overrides. |
| resolution | string | Provider-specific resolution. |
| save_path | any | |
| seed | integer | Optional reproducibility seed. |
get_chat_completion_statusPoll / retrieve async completion results| Parameter | Type | Description |
|---|---|---|
| job_id * | string | The job_id returned by start_chat_completion. |
get_model_infoPricing, context, modalities| Parameter | Type | Description |
|---|---|---|
| model * | string | Full OpenRouter model slug (e.g. `openai/gpt-4o`). |
get_video_statusPoll / resume video jobs| Parameter | Type | Description |
|---|---|---|
| save_path | any | |
| video_id * | string | Video job id from generate_video / generate_video_from_image. |
health_checkAPI key + reachability probererank_documentsRelevance ranking for RAG| Parameter | Type | Description |
|---|---|---|
| documents * | array | |
| model | string | Reranker model (default: cohere/rerank-v3.5). |
| query * | string | Search query to rank documents against. |
| return_documents | boolean | When true, include original document text in each result. |
| top_n | integer | Return only the top N results. |
search_modelsPaginated model catalog search| Parameter | Type | Description |
|---|---|---|
| capabilities | object | |
| limit | integer | Page size (default 20, max 50). |
| offset | integer | Pagination offset (default 0). |
| provider | string | Filter by provider slug prefix (e.g. `google`). |
| query | string | Substring match against model id or name. |
speech_to_textDedicated STT (`/api/v1/audio/transcriptions`) — Whisper, GPT-4o Transcribe, Voxtral, ElevenLabs Scribe| Parameter | Type | Description |
|---|---|---|
| audio_path * | string | Audio file: local path (sandboxed), http(s) URL, or base64 data URL. Formats: mp3, wav, flac, ogg, webm, mp4, m4a. |
| language | string | ISO-639-1 language code (e.g. "en", "es", "fr"). Improves accuracy. |
| model | string | STT model. Default: openai/whisper-1. Also: openai/gpt-4o-transcribe, openai/gpt-4o-mini-transcribe, mistralai/mistral-small-transcribe (Voxtral), elevenlabs/scribe-v1 (ElevenLabs Scribe). Discover current models with GET /api/v1/models?output_modalities=text&input_modalities=audio. |
| provider | object | Provider routing overrides (order, sort, allow_fallbacks, etc.). |
| response_format | string | Output format for transcription. Default: json. |
| temperature | number | Sampling temperature for transcription (0–1). |
start_chat_completionAsync background job for long-running reasoning models| Parameter | Type | Description |
|---|---|---|
| frequency_penalty | number | Penalize tokens by existing frequency. Between -2 and 2. |
| fusion | boolean | Enable `openrouter:fusion` — multi-model deliberation. |
| include_reasoning | boolean | |
| logprobs | boolean | Return log probabilities of output tokens (same as chat_completion). |
| max_tokens | integer | |
| messages * | any | |
| model | string | Model ID (same options as chat_completion). |
| online | boolean | |
| presence_penalty | number | Penalize tokens by whether they appeared already. Between -2 and 2. |
| provider | object | |
| reasoning_effort | string | Control reasoning depth for thinking models. Common values: `low`, `medium`, `high`. |
| response_format | object | Request structured output (same as chat_completion). `{ "type": "json_object" }` or `{ "type": "json_schema", "json_schema": {...} }`. |
| response_healing | boolean | Enable `openrouter:response_healing` — auto-fix malformed JSON. |
| seed | integer | Deterministic sampling seed (same as chat_completion). |
| stop | any | Up to 4 sequences where the API will stop generating further tokens. |
| subagent | any | Enable `openrouter:subagent` — delegate subtasks to a cheaper model. |
| temperature | number | |
| top_logprobs | integer | Number of most likely tokens at each position (0–20). Requires `logprobs: true`. |
| top_p | number | Nucleus sampling (alternative to temperature). Between 0 and 1. |
| web_blocked_domains | array | Block specific domains from web search results. |
| web_max_results | integer |
text_to_speechDedicated TTS (`/api/v1/audio/speech`) — Deepgram, ElevenLabs, OpenAI; voices, speed, mp3/pcm| Parameter | Type | Description |
|---|---|---|
| input * | string | Text to convert to speech. |
| instructions | string | Tone/style instructions (e.g. "speak in a warm, friendly tone"). OpenAI models only. |
| model | string | TTS model for OpenRouter POST /audio/speech. Default: ${DEFAULT_TTS_MODEL}. Discover current models with GET /api/v1/models?output_modalities=speech. |
| provider | object | Provider routing overrides (order, sort, allow_fallbacks, etc.). |
| response_format | string | Output audio format. Default: ${DEFAULT_TTS_RESPONSE_FORMAT}. PCM output is auto-wrapped in a WAV container. |
| save_path | any | |
| speed | number | Speed of speech (0.25–4.0). Default: 1.0. |
| voice | string | Voice ID (model-specific). Default: ${DEFAULT_TTS_VOICE} for ${DEFAULT_TTS_MODEL}; pass a voice supported by another model. |
validate_modelCheap model ID existence check| Parameter | Type | Description |
|---|---|---|
| model * | string | Full OpenRouter model slug to check. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.6K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and python/uv.lock.
- ✓No dynamic code executionScanned 54 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdiosrc/index.ts:7
- Starts other programs
- 2 callspython/mcp_server_openrouter_multimodal/launcher.py:51, python/mcp_server_openrouter_multimodal/launcher.py:82
- Outbound network calls
- 3 callssrc/openrouter-api.ts:95, src/tool-handlers/fetch-utils.ts:466, src/tool-handlers/fetch-utils.ts:486
- Writes or deletes files
- 8 callssrc/tool-handlers/async-chat.ts:197, src/tool-handlers/async-chat.ts:198, src/tool-handlers/async-chat.ts:200
- Lockfile
- package-lock.json and python/uv.lock
Pattern matches on the source text of 54 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README