← Back to directory
O

OpenRouter MCP Multimodal

Community
Use OpenRouter text and multimodal AI capabilities through MCP.
Category
Other #84 of 678
Stars
★ 105 Very popular
Transport
stdio (local process)
Runtime
Node.js 22+
Credentials
API key / credential required
License
Apache-2.0
Last commit
Tools
21
60FMRS · C

This is a multimodal OpenRouter MCP server with tools for chat, media analysis and generation, and model catalog operations. An OpenRouter API key is required; available models and costs depend on OpenRouter, providers, and the account.

Strongest · Documentation 15/20 Weakest · Reliability 10/20

Reliability
10/20
Security and permissions
11/20
Maintenance
11/20
Documentation
15/20
Setup experience
13/20
Why each score
Reliability 10/20
The README lists 21 tools, structured errors, asynchronous jobs, many automated tests, and CI. This review only has the supplied README and manifest; it has no workflow or test files to inspect and no verifiable initialization-handshake evidence. The claimed tool behavior therefore cannot be confirmed, so points are deducted.
Security and permissions 11/20
The materials describe an environment-based API key, input/output path sandboxes, SSRF protection, log redaction, and untrusted-content marking, indicating visible boundary controls. These protections are documented but their implementation cannot be verified; OPENROUTER_ALLOW_UNSAFE_PATHS can disable the sandboxes, and disclosure of external API data flows and generation costs is limited. No supplied evidence establishes a red-line issue, so the score is not placed in the red-line range.
Maintenance 11/20
The supplied materials identify an Apache-2.0 license, version 5.1.3, a release process, a CI badge, and a private vulnerability reporting channel. They do not provide commit history, issue response data, dependency update evidence, or verifiable evidence of sustained maintainer activity, so the score remains moderate.
Documentation 15/20
The README covers several installation routes, client configuration examples, tool lists and examples, error codes, media size limits, cost notes, security, and troubleshooting. Points are deducted because capability, test-count, and security claims are README assertions without inspectable implementation evidence, and complete parameter definitions are not shown for every tool.
Setup experience 13/20
The documentation offers npx, Docker, and uvx routes, with client configuration examples for Cursor, VS Code, Claude Desktop, and others, plus runtime requirements. Points are deducted because users must obtain and configure an OpenRouter key, uvx still depends on Node, and no execution evidence verifies installation or the MCP handshake. The static-evidence cap therefore applies.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the network

Best for

  • Users who need OpenRouter multimodal models from an MCP client.
  • Users who want one server for chat, media analysis, and media generation.
  • Developers able to configure an OpenRouter API key and manage its usage credits.

Not for

  • Users who need operation without an external API key or fully offline operation.
  • Users who require every model to support every media capability.
  • Users seeking a server maintained by OpenRouter or the MCP protocol owner; the source does not identify it as official.

Required permissions

  • Required: provide an OpenRouter API key, which the server uses to access OpenRouter.
  • For local media analysis or saving generated results, allow access to input/output files within the configured sandbox directories.
  • Media generation and some model calls may use OpenRouter credits; free models are available for some chat and vision use cases.

Risks and side effects

  • Requests and media processing depend on OpenRouter and the selected model/provider; capabilities, costs, and data handling can vary accordingly.
  • Local file access is constrained by input/output directory sandboxes; setting OPENROUTER_ALLOW_UNSAFE_PATHS=1 disables these sandboxes.
  • Video and audio generation usually require credits; calls may encounter rate limits, upstream errors, or unfinished jobs.
  • An API key is required and should be kept secret.

Setup

Before you start

Runtime:Node.js 22+

OPENROUTER_API_KEY requiredsecret Required OpenRouter API key; get one at https://openrouter.ai/keys.
Other optional settings (24)
OPENROUTER_DEFAULT_MODEL optional Optional default model for chat and analysis; defaults to google/gemma-4-26b-a4b-it:free.
OPENROUTER_OUTPUT_DIR optional Optional sandbox directory for generated files; defaults to the current working directory.
OPENROUTER_INPUT_DIR optional Optional local read sandbox for analysis files; falls back to OPENROUTER_OUTPUT_DIR, then the current working directory.
OPENROUTER_ALLOW_UNSAFE_PATHS optional Set to 1 to disable input and output path sandboxes.
OPENROUTER_INLINE_MAX_BYTES optional Global byte ceiling for inline media in tool results when save_path is unset; defaults to 1048576 bytes.
OPENROUTER_IMAGE_INLINE_MAX_BYTES optional Image inline byte ceiling; falls back to OPENROUTER_INLINE_MAX_BYTES when unset.
OPENROUTER_AUDIO_INLINE_MAX_BYTES optional Audio inline byte ceiling; falls back to OPENROUTER_INLINE_MAX_BYTES when unset.
OPENROUTER_VIDEO_INLINE_MAX_BYTES optional Video inline byte ceiling; defaults to 10485760 bytes.
OPENROUTER_MAX_TOKENS optional Default max_tokens for chat_completion when not supplied in a request.
OPENROUTER_PROVIDER_SORT optional Optional provider sort order: price, throughput, or latency.
OPENROUTER_PROVIDER_IGNORE optional Comma-separated provider slugs to exclude.
OPENROUTER_PROVIDER_ONLY optional Allowed provider slugs as a JSON array or comma-separated list; preferred over ignore.
OPENROUTER_PROVIDER_ORDER optional Preferred provider IDs as a JSON array or comma-separated list.
OPENROUTER_PROVIDER_QUANTIZATIONS optional Comma-separated quantization levels, such as fp16 or int8.
OPENROUTER_PROVIDER_REQUIRE_PARAMETERS optional Set to true or false to require providers to support all request parameters.
OPENROUTER_PROVIDER_DATA_COLLECTION optional Provider data collection setting: allow or deny.
OPENROUTER_PROVIDER_ALLOW_FALLBACKS optional Set to true or false to control provider fallbacks.
OPENROUTER_CACHE_RESPONSES optional Enables server-wide response caching; chat and analysis calls send X-OpenRouter-Cache: true by default.
OPENROUTER_INCLUDE_REASONING optional Enables reasoning token passthrough and adds _meta.reasoning to chat_completion responses.
OPENROUTER_MODEL_CACHE_TTL_MS optional Model list cache lifetime in milliseconds; defaults to 3600000.
OPENROUTER_LOG_LEVEL optional Server log level: error, warn, info, or debug.
OPENROUTER_MAX_RESULT_TEXT_CHARS optional Character cap for chat and rerank result text; defaults to 512000. Set to 0 to disable the cap.
OPENROUTER_ASYNC_JOBS_MEMORY_MAX optional Maximum in-memory async chat jobs before eviction; defaults to 200. Set to 0 to disable the cap.
OPENROUTER_MCP_NPM_VERSION optional Optional pin for the underlying @stabgan/openrouter-mcp-multimodal npm release; used by the uvx launcher only.

Get an OpenRouter API key, replace the placeholder in install_config with the real key, and add the configuration to your MCP client. The npm launch method requires Node.js 22+; the server uses stdio.

claude_desktop_config.json
{"mcpServers":{"openrouter":{"command":"npx","args":["-y","@stabgan/openrouter-mcp-multimodal"],"env":{"OPENROUTER_API_KEY":"sk-or-v1-..."}}}}

Shown for Claude Desktop. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "openrouter": {
      "command": "npx",
      "args": [
        "-y",
        "@stabgan/openrouter-mcp-multimodal"
      ],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-..."
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.openrouter]
command = "npx"
args = ["-y", "@stabgan/openrouter-mcp-multimodal"]

[mcp_servers.openrouter.env]
OPENROUTER_API_KEY = "sk-or-v1-..."

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add openrouter -e OPENROUTER_API_KEY=sk-or-v1-... -- npx -y @stabgan/openrouter-mcp-multimodal

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

After starting the server, confirm chat_completion and analyze_image appear in the client’s tool list. Call health_check to check the API key and OpenRouter connectivity.

Troubleshooting

  1. If the server exits because the key is missing, check that OPENROUTER_API_KEY is set and non-empty in the client configuration.
  2. For INVALID_CREDENTIALS or HTTP 401, check that the key is valid and restart the MCP client.
  3. For MODEL_NOT_FOUND, check the model ID with search_models or validate_model.
  4. For HTTP 402 or insufficient credits, check account credits or try a supported free model.
  5. For UNSAFE_PATH, place files within the scope of OPENROUTER_INPUT_DIR or OPENROUTER_OUTPUT_DIR.
  6. If a generation job is still running, poll it with the relevant status tool; for rate limits, check the retry guidance.

Things to try

Once connected, you can ask your AI assistant things like:

  • Explain MCP in one sentence using a free model.
  • Analyze diagram.png and list every label in it.
  • Turn this text into speech and save it as speech.mp3.

Tools 21

chat_completion read-only
Chat with OpenRouter models, with options for provider routing, caching, reasoning, and structured output.
start_chat_completion read-only
Start an asynchronous chat job.
get_chat_completion_status read-only
Check or retrieve the result of an asynchronous chat job.
analyze_image read-only
Analyze an image and answer a question about it.
analyze_audio read-only
Transcribe or analyze audio files.
analyze_video read-only
Describe video content or answer questions about it.
generate_image writes
Generate images through chat completions, with optional reference images.
generate_image_dedicated writes
Generate images through the dedicated image API, with resolution, quality, and format controls.
Show 13 more tools
generate_audio writes
Generate speech or music.
text_to_speech writes
Convert text to speech through the dedicated speech API.
speech_to_text read-only
Transcribe speech through the dedicated transcription API.
generate_video writes
Start an asynchronous text-to-video job.
generate_video_from_image writes
Generate video from an image.
get_video_status read-only
Check or resume a video generation job.
search_models read-only
Search the model catalog with pagination.
get_model_info read-only
Retrieve model pricing, context, and modality information.
validate_model read-only
Check whether a model ID exists.
rerank_documents read-only
Reorder documents by relevance.
embed_text read-only
Create vector embeddings for text.
decide read-only
Return structured yes/no, choice, or score decisions with probabilities.
health_check read-only
Check the API key and service reachability.

Use cases

Access multiple OpenRouter chat models from one MCP interface.
Analyze images, audio, and video, or generate images, speech, music, and video.
Create text embeddings and rerank documents for retrieval-augmented workflows.
Search, inspect, and validate models in the catalog.

Supported clients

Claude Desktop
Cursor
VS Code
Kiro
Windsurf
Cline

Listed from the project's documentation, not tested by this site.

Overview

OpenRouter MCP Multimodal is a server that connects MCP clients to OpenRouter over stdio. It provides tools for chat, image/audio/video analysis and generation, speech transcription and synthesis, model search, embeddings, reranking, and structured decisions. The source describes support for 300+ models; specific capabilities depend on the selected model, provider, and account credits.

Similar servers

Source revision dbc5ceb84cee Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/openrouter-mcp-multimodal.svg)](https://followmcp.com/en/servers/openrouter-mcp-multimodal)