Openrouter Imgen MCP logo

Openrouter Imgen MCP

Generate, edit, and batch-process images through OpenRouter with model selection, presets, references, and file output.

Install Openrouter Imgen MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "openrouter-imgen-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "openrouter-imgen-mcp@latest"
      ],
      "env": {
        "OPENROUTER_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env OPENROUTER_API_KEY=YOUR_VALUE_HERE --transport stdio openrouter-imgen-mcp -- npx -y openrouter-imgen-mcp@latest

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 5 tools correctly ().

Overview

openrouter-imgen-mcp connects MCP clients to OpenRouter for image generation and editing across multiple image models. It provides tools for prompt-based generation, reference-image editing, parallel batch jobs, model and pricing lookup, and credit-balance checks. Quality and style presets reduce the need to remember model IDs, while custom OpenRouter model IDs remain available. Reach for it when an agent needs to create image files, produce variations, transform existing images, or compare model options.

Use cases

  • Generate product and promotional images
  • Create multiple logo or concept variations
  • Edit backgrounds using reference images
  • Batch-produce social media banners
  • Compare image models and pricing

Key features

  • Generate images with quality and style presets
  • Edit images with up to 12 references
  • Run up to 20 generation or editing tasks in batches
  • Save images with selectable formats, sizes, and aspect ratios
  • Browse model pricing and check OpenRouter credit balance

Tools5

What Openrouter Imgen MCP lets your agent do. Expand a tool for its parameters.

Verified live~1.2k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 29d

What it can do

From the 5 tools this server returned when we ran it.

Read-only tools · 5
Network at startup4 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age260 days
Maintainers1

Observed 2026-11-22 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · openrouter-imgen-mcp@latest (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
Last commit9mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed5Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Openrouter Imgen MCP works

What openrouter-imgen-mcp does

openrouter-imgen-mcp gives an MCP-compatible assistant access to OpenRouter image models. It covers both new image creation and transformations of existing images, with controls for model choice, visual style, output dimensions, variations, and saved files.

The server is useful for workflows such as creating product imagery, exploring logo concepts, preparing social media graphics, or changing the background of a supplied photo. OpenRouter provides access to multiple image models through one API key, so a client can use named quality presets or pass a model ID directly.

How it works

The server runs as an MCP process and receives tool calls from a compatible client. Generation requests can use the fast, balanced, or quality presets, or specify an OpenRouter image model directly. Style keywords map to built-in presets including photo, illustration, watercolor, pixel art, 3D render, anime, sketch, and oil painting.

generate_image accepts a prompt and can produce one to four variations. Requests can also select an aspect ratio, image size, and output path or directory. Supported aspect ratios include 1:1, 2:3, 3:2, 16:9, 9:16, 4:3, and 3:4; supported sizes range from 0.5K to 4K.

edit_image applies a prompt to an existing image and accepts up to 12 reference images. References may be local files, URLs, or data URIs. batch_images combines generation and editing tasks, running as many as 20 jobs with configurable concurrency.

Setup and configuration

An OpenRouter API key is required. The package can be launched with npx and configured in an MCP client's JSON settings:

config.json
{
  "mcpServers": {
    "openrouter-imgen-mcp": {
      "command": "npx",
      "args": ["-y", "openrouter-imgen-mcp@latest"],
      "env": {
        "OPENROUTER_API_KEY": "YOURAPIKEY"
      }
    }
  }
}

Claude Code can also register it with claude mcp add, passing the API key as an environment setting. Optional configuration controls the default model, batch concurrency, cache lifetime, and logging level. Their environment variables are OPENROUTER_IMG_DEFAULT_MODEL, OPENROUTER_IMG_BATCH_CONCURRENCY, OPENROUTER_IMG_CACHE_TTL, and OPENROUTER_IMG_LOG_LEVEL.

Tools and capabilities

  • generate_image: Create images from text with quality and style presets, variations, aspect ratios, sizes, and file output.
  • edit_image: Transform an image using a prompt and up to 12 file, URL, or data-URI references.
  • batch_images: Process up to 20 generation or editing tasks in parallel with concurrency control.
  • list_image_models: View available image models and their pricing.
  • check_balance: Inspect the OpenRouter credit balance.

Generated files can receive descriptive names automatically when saved to a path or directory. Input formats include PNG, JPEG, WebP, and GIF.

Limitations and notes

Batch processing is capped at 20 tasks and has a memory limit of 200 MB. Generation variations are limited to four, and image editing accepts no more than 12 references. OpenRouter usage is charged according to its pricing, including per-token and per-image costs.

The server validates inputs against schemas, checks image URLs for SSRF patterns, blocks directory traversal in file paths, and keeps API keys out of logs and error messages. Development commands use pnpm for installation, building, and tests.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Openrouter Imgen MCP

openrouter-imgen-mcp is an MCP server that connects AI assistants to OpenRouter image models. Its main tools generate images, edit images with references, run batch jobs, list available models and pricing, and check account credit balance. It supports quality and style presets as well as direct OpenRouter model IDs.

Install it by adding the `npx -y openrouter-imgen-mcp@latest` command to your MCP client configuration and setting `OPENROUTER_API_KEY`. Claude Code can use `claude mcp add`; Claude Desktop, Cursor, VS Code, and Windsurf use an MCP JSON configuration.

Set `OPENROUTER_API_KEY`; it is required to run the server. Optional variables select the default model, batch concurrency, cache TTL, and log level: `OPENROUTER_IMG_DEFAULT_MODEL`, `OPENROUTER_IMG_BATCH_CONCURRENCY`, `OPENROUTER_IMG_CACHE_TTL`, and `OPENROUTER_IMG_LOG_LEVEL`.

Yes, openrouter-imgen-mcp works with Cursor through its MCP JSON configuration. Add the server command and `OPENROUTER_API_KEY` under `mcpServers`, then use the image-generation, editing, batch, model-listing, and balance tools from the client.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOpenrouter Imgen MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/openrouter-imgen-mcp?style=directory)](https://allmcps.com/mcp/openrouter-imgen-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/openrouter-imgen-mcp"><img src="https://allmcps.com/api/badge/openrouter-imgen-mcp?style=directory" alt="Openrouter Imgen MCP on AllMCPs" /></a>