jtxmp/openrouter-imgen-mcp
MCP server for image generation via OpenRouter
Platform-specific configuration:
{
"mcpServers": {
"openrouter-imgen-mcp": {
"command": "npx",
"args": [
"-y",
"openrouter-imgen-mcp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
Give your AI assistant the ability to generate and edit images. One install, multiple models, no vendor lock-in.
| Before | After | |--------|-------| | | |
Works with Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, and any MCP client.
Get an OpenRouter API key, then add the server to your client.
# macOS / Linux
claude mcp add openrouter-imgen-mcp -s user -e OPENROUTER_API_KEY=YOURAPIKEY -- npx -y openrouter-imgen-mcp@latest
# Windows
claude mcp add openrouter-imgen-mcp -s user -e OPENROUTER_API_KEY=YOURAPIKEY -- cmd /c npx -y openrouter-imgen-mcp@latestAdd to your MCP config JSON:
{
"mcpServers": {
"openrouter-imgen-mcp": {
"command": "npx",
"args": ["-y", "openrouter-imgen-mcp@latest"],
"env": {
"OPENROUTER_API_KEY": "YOURAPIKEY"
}
}
}
}Simply chat with your assistant:
Generate a product photo of a ceramic mug on a wooden table, warm lightingGenerate 3 variations of a logo concept for a coffee brand, pixel-art styleEdit /path/to/headshot.pLoading reviews...