OpenRouter MCP Multimodal

MCP serverMedia

Your AI gains access to hundreds of language models and can work with images, audio, and video. Once added, it can chat with 300+ models through OpenRouter and analyze or generate pictures, sound, and video when you ask.

Unavailable. This server has no hosted endpoint yet, so ahel can't serve it.

After adding it, choose a model and start a chat, or share an image, audio clip, or video to try analysis and generation.

What your AI can do with it

  • Chat with over 300 language models through OpenRouter
  • Analyze images, audio, or video that you share
  • Describe what is shown in an image or video
  • Generate new images, audio, or video
  • Combine text conversation with media analysis in one place

From the project's README

As published by stabgan/openrouter-mcp-multimodal in README.md.


What is this?

OpenRouter MCP Multimodal is a production-grade Model Context Protocol (MCP) server — listed on the official MCP Registry as io.github.stabgan/openrouter-multimodal. It connects AI coding agents (Cursor, Claude Desktop, VS Code, Windsurf, Cline, and others) to OpenRouter's unified LLM API over stdio.

Unlike text-only MCP servers, one install covers the full multimodal surface:

CapabilityToolsHighlights
Chatchat_completion, start_chat_completion, get_chat_completion_status300+ models, :nitro / :floor / :free / :online / :exacto suffixes, provider routing, web search, response caching, reasoning tokens, async jobs for long-running models
Visionanalyze_image, generate_image, generate_image_dedicatedOCR, captioning, VQA, image generation with reference inputs, dedicated Image API with resolution/quality/format control
Audioanalyze_audio, generate_audio, text_to_speech, speech_to_textTranscription, speech/music generation, dedicated TTS (free Deepgram default; model-specific voices, mp3/pcm), dedicated STT (Whisper/GPT-4o Transcribe)
Videoanalyze_video, generate_video, generate_video_from_image, get_video_statusClip understanding, Veo 3.1 / Seedance 2.0 / Wan 2.7 generation with progress notifications
Catalogsearch_models, get_model_info, validate_model, rerank_documents, health_checkModel discovery, validation, reranking, ops health

Production hardening: input/output path sandboxes (including analyze_* local files as of v4.5.2), SSRF guards, structured errors with _meta.code, MCP 2025-06-18 structured outputs, tool icons (2025-11-25), async video progress notifications, and 1000+ automated tests (unit, mock, regression, and live integration).

Quick start

1. Get an API key (free tier works) → openrouter.ai/keys

2. Run the server

export OPENROUTER_API_KEY=sk-or-v1-...
npx -y @stabgan/openrouter-mcp-multimodal

3. Add to your MCP client — copy one JSON block from Install into your client config:

ClientConfig location
CursorProject: .cursor/mcp.json · User: Cursor Settings → MCP
Claude DesktopmacOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
VS Code.vscode/mcp.json (workspace) or User Settings → MCP
WindsurfWindsurf Settings → MCP (same mcpServers JSON shape as Cursor)

Use the mcpServers object from Manual config below.

No credits required to start. Free models such as google/gemma-4-26b-a4b-it:free work for chat and vision. Video/audio generation typically needs credits.

Install

MCP servers are distributed through several packaging models. This server is implemented in Node.js/TypeScript; the table below maps each ecosystem method to how you run it here.

MethodRuntimeBest forThis server
npxNode.js 22+Most MCP clients (default)@stabgan/openrouter-mcp-multimodal
uvx / pipxPython 3.10+ and Node.js 22+Python-first workflows, same pattern as PyPI MCP serversmcp-server-openrouter-multimodal
npm globalNode.js 22+Pin a version without re-downloading
node (local)Node.js 22+Contributors / air-gapped builds
Docker HubDockerIsolation, no Node on hoststabgan/openrouter-mcp-multimodal
GHCRDockerGitHub-native OCI pullsghcr.io/stabgan/openrouter-mcp-multimodal
Smithery CLINode.js (via installer)Interactive install into Claude/Cursor/etc.
MCP Registrynpm or OCIOfficial discovery (io.github.stabgan/openrouter-multimodal)listing
One-click deeplinksNode.jsCursor, VS Code, Kiro
Claude Code CLINode.jsTerminal-first Claude Code users
MCP InspectorNode.jsDebug / list tools locally
Windows cmd /c npxNode.jsClaude Desktop / Cursor when npx not on GUI PATHsee below
pip / uv (direct)Native Python MCP servers only— use uvx row above
DXT desktop extensionsBundled Claude Desktop .dxtnot yet
Remote HTTP / SSEHosted Smithery / Cloudflare endpointsvia Smithery

uvx vs npx: In the MCP ecosystem, npx runs npm (Node) packages and uvx runs PyPI (Python) packages. Because this server is Node-based, uvx uses a thin Python launcher that execs npx -y @stabgan/openrouter-mcp-multimodal — you still need Node installed.

One-click

Paste your OPENROUTER_API_KEY when prompted — deeplinks use placeholders so secrets never appear in URLs.

Manual config

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

Pin a release: "args": ["-y", "@stabgan/openrouter-mcp-multimodal@5.0.1"]

Install uv (includes uvx), ensure Node.js 22+ is also on your PATH, then:

export OPENROUTER_API_KEY=sk-or-v1-...
uvx mcp-server-openrouter-multimodal
# pin npm version: OPENROUTER_MCP_NPM_VERSION=5.0.1 uvx mcp-server-openrouter-multimodal
{
  "mcpServers": {
    "openrouter": {
      "command": "uvx",
      "args": ["mcp-server-openrouter-multimodal"],
      "env": {
        "OPENROUTER_API_KEY": "sk-or-v1-..."
      }
    }
  }
}

pipx equivalent: pipx run mcp-server-openrouter-multimodal

Optional: OPENROUTER_MCP_NPM_VERSION=5.0.1 pins the underlying npm package.

npm install -g @stabgan/openrouter-mcp-multimodal
{
  "mcpServers": {
    "openrouter": {
      "command": "openrouter-multimodal",
      "env": { "OPENROUTER_API_KEY": "sk-or-v1-..." }
    }
  }
}
git clone https://github.com/stabgan/openrouter-mcp-multimodal.git
cd openrouter-mcp-multimodal
npm ci && npm run build
{
  "mcpServers": {
    "openrouter": {
      "command": "node",
      "args": ["/absolute/path/to/openrouter-mcp-multimodal/dist/index.js"],
      "env": { "OPENROUTER_API_KEY": "sk-or-v1-..." }
    }
  }
}
docker run --rm -i -e OPENROUTER_API_KEY=sk-or-v1-... stabgan/openrouter-mcp-multimodal:latest
{
  "mcpServers": {
    "openrouter": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "OPENROUTER_API_KEY=sk-or-v1-...",
        "stabgan/openrouter-mcp-multimodal:latest"
      ]
    }
  }
}

Use -i (interactive stdio). Avoid -t (TTY corrupts MCP framing on some hosts).

docker run --rm -i -e OPENROUTER_API_KEY=sk-or-v1-... \
  ghcr.io/stabgan/openrouter-mcp-multimodal:5.0.1
{
  "mcpServers": {
    "openrouter": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "OPENROUTER_API_KEY=sk-or-v1-...",
        "ghcr.io/stabgan/openrouter-mcp-multimodal:5.0.1"
      ]
    }
  }
}

Interactive install (writes config for your client):

npx -y @smithery/cli install @stabgan/openrouter-mcp-multimodal --client claude
# or: --client cursor | vscode | windsurf | ...

Listing: smithery.ai/server/@stabgan/openrouter-mcp-multimodal

Official name: io.github.stabgan/openrouter-multimodal

Clients that support registry-driven install will offer npm or Docker; otherwise use the JSON blocks above.

claude mcp add openrouter -- npx -y @stabgan/openrouter-mcp-multimodal
# project scope:
claude mcp add --scope project openrouter -- npx -y @stabgan/openrouter-mcp-multimodal

Set OPENROUTER_API_KEY in your shell or client env before starting Claude Code.

Debug tools/list and tool calls against a live OpenRouter key:

export OPENROUTER_API_KEY=sk-or-v1-...
npx -y @modelcontextprotocol/inspector npx -y @stabgan/openrouter-mcp-multimodal

When Claude Desktop or Cursor cannot find npx (GUI apps often miss shell PATH), wrap with cmd:

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

If still failing, use the full path from where npx as the command.

Why this server?

CapabilityThis serverTypical MCP LLM servers
Text chat (300+ models)
Image analysis + generationpartial
Audio analysis + TTS
Video analysis + generation
Model search / validate / rerank
Path sandbox + SSRF protectionrare
MCP 2025 structured outputsrare
Async video + progress notifications

Tools

19 MCP tools. Each description includes Use when, Good/Bad examples, Fails when, and Works with so agents pick the right tool and recover from errors.

ToolPurpose
chat_completionText chat, web search, provider routing, caching, reasoning
start_chat_completionAsync background job for long-running reasoning models
get_chat_completion_statusPoll / retrieve async completion results
analyze_imageVision — local path, URL, or data URL + question
analyze_audioTranscribe / analyze audio files
analyze_videoDescribe / Q&A over video files
generate_imageText-to-image via chat completions with reference images
generate_image_dedicatedText-to-image via dedicated /api/v1/images (resolution, quality, format)
generate_audioText-to-speech / music via chat completions
text_to_speechDedicated TTS (/api/v1/audio/speech) — free Deepgram default, voices, speed, mp3/pcm
speech_to_textDedicated STT (/api/v1/audio/transcriptions) — Whisper, GPT-4o
generate_videoText-to-video (async, resumable)
generate_video_from_imageImage-to-video (narrower schema)
get_video_statusPoll / resume video jobs
search_modelsPaginated model catalog search
get_model_infoPricing, context, modalities
validate_modelCheap model ID existence check
rerank_documentsRelevance ranking for RAG
health_checkAPI key + reachability probe

Errors use a closed _meta.code taxonomy: INVALID_INPUT · UNSAFE_PATH · UPSTREAM_* · MODEL_NOT_FOUND · JOB_STILL_RUNNING · and more.

Binary tool results (v4.7.0+)

Generate tools (generate_image, generate_image_dedicated, generate_audio, text_to_speech, generate_video, generate_video_from_image, get_video_status) return image, audio, or video bytes. As of 4.7.0 the behavior is explicit:

save_pathTool result
SetText pointer only — e.g. Image saved to: out.png (… bytes, image/png) plus _meta.save_path. No inline base64 (avoids duplicating large payloads in the MCP channel).
Unset, under byte ceilingInline media block and summary text (images/audio use MCP image / audio types; video uses MCP resource blocks).
Unset, over ceilingText only with a hint to pass save_path.

Default inline ceilings (override per kind or globally):

Shortened here. Read the whole README on GitHub.

Signals

GitHub stars
86
Forks
27
Last commit
Sep 2026
Advanced
Delivery
openrouter-multimodal MCP server → your ahel gateway (mcp.ahel.ai) → every connected AI client.
Catalog kind
mcp-server
Gateway key
io-github-stabgan-openrouter-multimodal
Source
github.com/stabgan/openrouter-mcp-multimodal