Image Gen logo

Image Gen

Generate and edit project images through Gemini or OpenAI with configurable models, formats, paths, and output controls.

Install Image Gen

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": {
    "image-gen": {
      "command": "npx",
      "args": [
        "-y",
        "@nuver-labs/image-gen-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_VALUE_HERE",
        "OPENAI_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.

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

Overview

Image Gen MCP server lets coding agents generate and edit image files through Google Gemini and OpenAI APIs. It exposes tools for text-to-image generation, source-image editing or combination, and capability inspection, with results saved to paths the agent can read. Configure either provider or both with environment variables and choose models, aspect ratios, image sizes, backgrounds, and output locations. Reach for it when an agent needs to create project assets, revise existing images, or produce visual variations without leaving the coding workflow.

Use cases

  • Generate hero images for project documentation
  • Edit logos and remove image backgrounds
  • Create multiple icon or illustration variations
  • Combine reference images into a new asset
  • Save generated assets directly into a project directory

Key features

  • Gemini and OpenAI image providers
  • Text-to-image generation
  • Non-destructive image editing
  • Configurable models and output paths
  • Aspect ratio, quality, size, and background controls
  • Optional filesystem directory restrictions

Tools3

What Image Gen lets your agent do. Expand a tool for its parameters.

Verified live~1.7k 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.

20/20 checks healthy over the last 95d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Can delete or modify data · 1Makes network requests · 2Read-only tools · 2
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age79 days
Maintainers1

Observed 2026-10-31 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 7d ago via OSV.dev · @nuver-labs/image-gen-mcp (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
npm downloads406Package downloads in the last 30 days.
Last commit3mo 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 exposed3Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Image Gen works

What the Image Gen MCP server does

Image Gen MCP server connects an MCP-compatible coding agent to Google Gemini image models and OpenAI GPT image models. It accepts natural-language prompts for new images, saves the results as PNG, JPEG, or WebP files, and returns absolute paths to those files. It can also modify an existing image or combine multiple source images without overwriting the originals.

The package supports one configured provider or both. A capability query reports which providers are available, the configured defaults, known model choices, output-directory behavior, and any active directory restriction. Provider API calls are billable and use the keys supplied through the environment.

How it works

The agent calls generate_image with a prompt and optional output path, provider, model, aspect ratio, number of results, quality, background, image size, or inline-return settings. An output path may identify a file or directory. When a directory is supplied, the filename is derived from the prompt. If no path is provided, the server checks its configured output directory, the Claude Code project directory, and then its working directory.

edit_image accepts one to 16 absolute source paths. The first image is the edit target and the remaining files act as references. It supports the generation options plus provider-specific fidelity controls. If no output path is given, the result is placed beside the first source image. Generated files remain available for the agent to inspect and refine.

The Image Gen MCP server runs as an MCP process started with npx -y @nuver-labs/image-gen-mcp. Its tools perform file reads and writes and send prompts or selected source images to the chosen provider. It does not provide shell execution or arbitrary URL fetching.

Setup and configuration

At least one provider key is required: GEMINI_API_KEY enables Gemini and OPENAI_API_KEY enables OpenAI. The default provider is Gemini when its key is present; otherwise OpenAI is selected. You can override provider defaults with IMAGE_GEN_MCP_DEFAULT_PROVIDER, IMAGE_GEN_MCP_GEMINI_MODEL, and IMAGE_GEN_MCP_OPENAI_MODEL.

Additional settings include IMAGE_GEN_MCP_OUTPUT_DIR for fallback files, IMAGE_GEN_MCP_ALLOWED_DIRS for restricting reads and writes, IMAGE_GEN_MCP_TIMEOUT_MS for provider request limits, and IMAGE_GEN_MCP_LOG_FILE for the JSONL activity ledger. Set the ledger variable to none to disable that file. API keys are read from the environment and are not returned by list_capabilities.

Claude Code can add the server with claude mcp add; Claude Desktop and Cursor use an MCP JSON configuration with npx as the command. On Windows, GUI hosts may need cmd /c npx -y @nuver-labs/image-gen-mcp instead.

Tools and capabilities

  • generate_image: Create one to four images from a text prompt.
  • edit_image: Edit or combine existing PNG, JPEG, or WebP files without replacing source files.
  • list_capabilities: Inspect configured providers, model defaults, model options, output fallback rules, and directory restrictions.

Gemini supports the listed Gemini image models and 1K, 2K, or 4K output on Gemini 3.x. OpenAI supports quality and background controls, with transparent backgrounds available through supported models. Aspect ratios include square, portrait, landscape, and wider formats; exact behavior varies by provider and model.

Limitations and notes

The server operates locally with the user’s privileges and is not sandboxed by the MCP client. Unless IMAGE_GEN_MCP_ALLOWED_DIRS is configured, paths selected for output and editing are unrestricted. With that setting, every path must resolve inside an allowed directory; invalid or nonexistent roots cause file access to be refused.

Gemini generates multiple requested images sequentially, so larger n values take longer. The return_image option places the first result in the model context and consumes context tokens. OpenAI-only and Gemini-only options are ignored or adjusted when an incompatible model is selected. The Image Gen MCP server sends prompts and edit source images to the selected provider, so avoid supplying material that should not leave the local environment.

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 Image Gen

Image Gen is an MCP server that connects coding agents to Google Gemini and OpenAI image APIs. Its main tools are `generate_image` for creating image files from prompts, `edit_image` for modifying or combining existing files, and `list_capabilities` for checking configured providers, models, and output rules.

Install it by running `npx -y @nuver-labs/image-gen-mcp` through your MCP client configuration. Claude Code can use `claude mcp add`, while Claude Desktop and Cursor use an MCP JSON entry with the package as the command.

It needs at least one of `GEMINI_API_KEY` or `OPENAI_API_KEY`. The first enables Gemini and the second enables OpenAI; configuring both allows either provider to be selected.

Yes, Image Gen works with Cursor through `.cursor/mcp.json`. Use the same `npx -y @nuver-labs/image-gen-mcp` command and provide one or both provider keys in the configuration.

Set `IMAGE_GEN_MCP_ALLOWED_DIRS` to a comma-separated list of permitted directories. Output files and edit sources must resolve inside those roots, and the server refuses access when configured roots do not exist.

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 PreviewImage Gen AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/image-gen?style=directory)](https://allmcps.com/mcp/image-gen)
HTML Embed
<a href="https://allmcps.com/mcp/image-gen"><img src="https://allmcps.com/api/badge/image-gen?style=directory" alt="Image Gen on AllMCPs" /></a>