images-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@images-mcpGenerate an image of a dragon in a forest"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
image-mcp
An MCP server that provides image generation tools powered by OpenRouter. Runs on Cloudflare Workers.
Tools
generate_image
Generate an image from a text prompt.
Parameter | Type | Required | Description |
| string | yes | Image description (max 1500 chars) |
| string | no |
|
| string | no |
|
| string | no | OpenRouter image model (default: |
Related MCP server: OpenRouter MCP Multimodal Server
Setup
1. Get an OpenRouter API key
Create an API key at OpenRouter.
2. Configure your MCP client
Add the server to your MCP configuration file (e.g. ~/.claude/mcp.json for Claude Code, claude_desktop_config.json for Claude Desktop):
{
"mcpServers": {
"image-mcp": {
"type": "url",
"url": "https://image.mcp.nqs.io?apiKey=YOUR_OPENROUTER_API_KEY"
}
}
}Replace YOUR_OPENROUTER_API_KEY with your actual OpenRouter API key.
Self-hosting
If you'd prefer to deploy your own instance instead of using the hosted version:
Prerequisites
Node.js >= 20
A Cloudflare account
An OpenRouter API key
Deploy
Clone the repo and install dependencies:
git clone https://github.com/nqs/images-mcp.git cd images-mcp npm installSet your OpenRouter API key as a Wrangler secret:
npx wrangler secret put OPENROUTER_API_KEY # Paste your OpenRouter API key when promptedUpdate
wrangler.tomlwith your own domain or remove theroutessection to use the default*.workers.devsubdomain.Deploy with Wrangler:
npx wrangler deployOr push to
mainto trigger the included GitHub Actions workflow (requiresCLOUDFLARE_API_TOKENandCLOUDFLARE_ACCOUNT_IDsecrets).Point your MCP config at your deployed URL:
{ "mcpServers": { "image-mcp": { "type": "url", "url": "https://your-worker.your-subdomain.workers.dev?apiKey=YOUR_OPENROUTER_API_KEY" } } }
Local development
export OPENROUTER_API_KEY="your-openrouter-key-here"
npm run dev # starts server with file watcher
npm test # runs the test suiteImage Generation Model
This server uses black-forest-labs/flux.2-klein-4b via OpenRouter for image generation by default. You can specify a different model via the model parameter in the generate_image tool call.
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Create images and videos from prompts, with options for image mixing, reference images, and start/…
Generate AI images, video, voiceovers and music from Claude, ChatGPT or Cursor through 50+ models (Veo 3.1, Kling 3, Seedance, Nano Banana, GPT Image, ElevenLabs). Also image editing, upscaling, background removal, face swap, transcription, voice cloning and UGC-style video ads. Sign in with OAuth — no API key to paste. Tools are annotated (read-only vs. credit-spending); failed generations are refunded.
Multi-model AI image and video generator. 14 models behind one OAuth-secured MCP endpoint.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables image generation via OpenRouter API, supporting models like Gemini 2.5 Flash Image Preview with options to save files locally.21Do What The F*ck You Want To Public
- AlicenseNot gradedqualityDmaintenanceEnables chat and image analysis through OpenRouter.ai models. Supports text chat, image generation, and analysis with multiple images and custom questions.787 npmApache 2.0
- FlicenseNot gradedqualityBmaintenanceImage generation MCP server running on Cloudflare Workers, supporting multiple models like FLUX and SDXL with OpenAI-compatible endpoints.-
- AlicenseAqualityCmaintenanceGives AI assistants image generation and editing capabilities through OpenRouter, supporting multiple models, style presets, variations, and batch operations.545 npm2MIT