Skip to main content
Glama
openrouter-image-mcp
by jtxmp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENROUTER_API_KEYYesOpenRouter API key. Required to authenticate with OpenRouter.
OPENROUTER_IMG_CACHE_TTLNoCache TTL in milliseconds. Default: 300000 (5 minutes).
OPENROUTER_IMG_LOG_LEVELNoLog level. Default: warn.
OPENROUTER_IMG_DEFAULT_MODELNoDefault image model to use. Default: google/gemini-3-pro-image-preview.
OPENROUTER_IMG_BATCH_CONCURRENCYNoBatch operation concurrency. Default: 3.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_image_modelsB

List available image generation models from OpenRouter with pricing and capabilities.

generate_imageA

Generate an image from a text prompt via OpenRouter. Supports quality presets (fast/balanced/quality) or explicit model IDs. For best results, expand brief prompts with details about composition, lighting, color palette, and mood before calling — unless the user explicitly asked for a simple/minimal prompt.

edit_imageB

Edit or transform existing images using a text prompt and reference images. Supports local file paths, URLs, and data URIs. For best results, expand brief prompts with details about composition, lighting, color palette, and mood before calling — unless the user explicitly asked for a simple/minimal prompt.

batch_imagesB

Generate or edit multiple images in a single call with concurrency control. Each task can be a generation (prompt only) or edit (prompt + reference images).

check_balanceA

Check your OpenRouter account balance — shows total credits, usage, and remaining balance.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 5 tools

Disambiguation4/5

generate_image vs edit_image are clearly distinct (text-only vs reference-image inputs), and list_image_models/check_balance are unambiguous utilities. batch_images partially overlaps with both generate and edit since it wraps them, but its multi-task concurrency framing makes the intended use reasonably clear.

Naming Consistency5/5

All five tools use snake_case verb_noun form: list_image_models, edit_image, generate_image, batch_images, check_balance. No camelCase or vague standalone verbs, so the pattern is fully predictable.

Tool Count5/5

Five tools is a tight, well-scoped surface for an image generation/editing server: discovery, two core operations, a batch wrapper, and account balance. Nothing feels padded or missing at the count level.

Completeness4/5

The core lifecycle (list models, generate, edit, batch, check credits) is covered with no dead ends for typical workflows. Minor gaps exist around post-processing/inspection such as saving results to disk explicitly, upscaling, or retrieving previously generated images.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues