Imagegen MCP Server
MCP server by writingmate Verified · npm:imagegen-mcp-server
ImageGen MCP Server generates images from text prompts using OpenAI, Google, Gemini and Replicate models. It is for people who want image generation inside an MCP-compatible AI assistant.
Install Imagegen MCP Server
Built from the published package, never by AI.
claude mcp add imagegen-mcp-server -- npx -y imagegen-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"imagegen-mcp-server": {
"args": [
"-y",
"imagegen-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"imagegen-mcp-server": {
"args": [
"-y",
"imagegen-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"imagegen-mcp-server": {
"args": [
"-y",
"imagegen-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add imagegen-mcp-server -- npx -y imagegen-mcp-server{
"mcpServers": {
"imagegen-mcp-server": {
"args": [
"-y",
"imagegen-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Imagegen MCP Server in Antigravity CLI
gemini mcp add imagegen-mcp-server npx -y imagegen-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the imagegen-mcp-server block.
About
ImageGen MCP Server is an MCP server for AI image generation. It provides four tools: image.generate.openai, image.generate.google, image.generate.gemini and image.generate.replicate. The OpenAI tool covers GPT-Image-1, DALL-E 3 and DALL-E 2. The Replicate tool covers Flux 1.1 Pro, Qwen Image and SeedDream-4. The Gemini tool uses Gemini 2.5 Flash Image Preview, which the project calls Nano Banana.
The server runs with npx imagegen-mcp-server or can be installed from npm or source. It needs API keys for the providers you use, set in a .env file. Generated images are saved to an output directory, and tools can also return base64 data. The project is aimed at users of MCP clients such as Claude Desktop and Claude Code. The README also describes a hosted option on WritingMate.ai with API keys pre-configured.
Written from the project's README and checked against it.
Tools it gives your assistant
image.generate.openaiGenerates images with GPT-Image-1, DALL-E 3 or DALL-E 2 from OpenAI.image.generate.googleGenerates images with Google Imagen 4 through a custom endpoint you configure.image.generate.geminiGenerates images with Gemini 2.5 Flash Image Preview via Google's official SDK.image.generate.replicateGenerates images with Flux 1.1 Pro, Qwen Image or SeedDream-4 via Replicate.
What you need
- At least one API key: OPENAI_API_KEY, GOOGLE_API_KEY or REPLICATE_API_TOKEN
- Node.js 18 or later
- GOOGLE_IMAGEN_ENDPOINT set, if using Google Imagen
Try asking
- Generate an image of a cyberpunk city using Flux 1.1
- Create an image with GPT-Image-1 on a transparent background
- Make a 1024x1024 SeedDream-4 image of an abstract art piece
Good to know
- Google Imagen requires a custom endpoint set in GOOGLE_IMAGEN_ENDPOINT.
- The README example notes SeedDream-4 needs a minimum of 1024x1024.
- The README lists approximate per-image costs of $0.02 to $0.08 for OpenAI and $0.003 to $0.01 for Replicate.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Imagegen MCP Server
All alternatives →HyperFrames is HeyGen's open-source AI video editor for people and agents. It turns HTML, CSS, JavaScript and seekable animations into MP4 videos, and can be used from a desktop app, coding agents or chat.
Remocn is a hosted MCP server that helps AI assistants make Remotion videos from 935 MIT-licensed components. It searches components, reads their docs, plans a storyboard and previews results. It is for developers building videos with Remotion.
Agent-Native Assets is the Assets agent from the Agent-Native framework, which creates and organizes on-brand media. It is for developers building agents that pair autonomous work with a purpose-built UI.
Runs an open source engine for a news site that finds hot AI events and writes daily, weekly and monthly briefs. Built for people who want an industry hot-news site in their own field, with MCP access for AI agents.
Turns long videos into captioned 9:16 shorts and can publish them to TikTok, Instagram, YouTube and other networks. It suits creators, marketing agencies and developers who want a self-hosted or hosted option.
Remove AI Watermarks removes AI provenance marks from images, video, audio, and text that you generated yourself. It is aimed at developers and researchers working on AI provenance signals.
Compare with HyperFrames by HeyGen, Remocn: Remotion MCP server or Agent-Native Assets
Imagegen MCP Server: common questions
Which image models does it support?
It supports GPT-Image-1, DALL-E 2 and DALL-E 3 from OpenAI, Imagen 4 through a custom endpoint, Gemini 2.5 Flash Image Preview, and Flux 1.1 Pro, Qwen Image and SeedDream-4 through Replicate.
Do I need API keys to use it?
Yes. You need at least one of OPENAI_API_KEY, GOOGLE_API_KEY or REPLICATE_API_TOKEN, depending on the models you want to use.
Where are generated images saved?
Images are saved to the directory set by OUTPUT_DIR, which defaults to outputs, with timestamped filenames.
How do I install Imagegen MCP Server?
In Claude Code run claude mcp add imagegen-mcp-server -- npx -y imagegen-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Imagegen MCP Server the official server?
Imagegen MCP Server is published by npm:imagegen-mcp-server from its verified domain in the official MCP Registry.
Is Imagegen MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Imagegen MCP Server safe to use?
It scores 50 of 100. Grades: maintenance F, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Imagegen MCP Server?
Similar MCP servers: HyperFrames by HeyGen, Remocn: Remotion MCP server, Agent-Native Assets, AIHOT.
Does Imagegen MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
