← Back to directory
M

MCP Image Generator

Community
Optimize prompts for image generation and editing.
Category
Other #133 of 678
Stars
★ 198 Popular
Transport
stdio (local process)
Runtime
Node.js 22+
Credentials
API key / credential required
License
MIT
Last commit
Tools
1
58FMRS · C

This is a stdio MCP server for image generation and editing with a generate_image tool. It supports Gemini, OpenAI, and BytePlus Seedream, and can optimize prompts automatically. A provider API key is required, and outputs are saved locally.

Strongest · Documentation 15/20 Weakest · Reliability 9/20

Reliability
9/20
Security and permissions
10/20
Maintenance
10/20
Documentation
15/20
Setup experience
14/20
Why each score
Reliability 9/20
The README and manifest declare stdio transport and a generate_image tool, and describe generation, editing, and input limits, so the happy path appears plausible. The supplied material contains no server implementation, committed tests, or CI evidence to verify the initialization handshake, actual tool behavior, or error handling, so the static-review calibration warrants deductions.
Security and permissions 10/20
API keys are configured through environment variables and marked secret in the manifest; input paths and the output directory are also documented. The tool reads user-specified images, calls external image services, and writes local files, but the material provides no evidence of permission boundaries, detailed data flows, or confirmation controls for risky operations. No red-line issue is evidenced in the supplied material.
Maintenance 10/20
The material provides an MIT license, a version, an npm release path, and a GitHub issues channel, and the repository is not archived. There is no evidence here of commit history, maintainer response, dependency updates, or a security-response process; stars do not contribute to this score.
Documentation 15/20
The README includes setup for three providers, examples for mainstream clients, tool parameters, some format and size limits, and common troubleshooting steps. Cost information is only summarized as higher quality settings potentially taking longer and costing more. Implementation evidence and fuller data-handling, error, and service-limit details are absent, so the score is not higher.
Setup experience 14/20
The docs specify Node.js 22 or later and provide Codex, Cursor, and Claude Code configuration examples, API-key setup, and local build steps, making the install path clear. There is no platform compatibility matrix or verifiable execution evidence; under the static calibration, setup is capped at 15.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesUses the network

Best for

  • Users who want to generate or edit images through an MCP client and have visual prompt details added automatically.
  • Users willing to configure an API key for Gemini, OpenAI, or BytePlus Seedream.

Not for

  • Users who need image generation without an external image provider API key.
  • Users who need capabilities beyond image generation and editing.

Required permissions

  • Requires the selected provider's API key in the server environment: GEMINI_API_KEY, OPENAI_API_KEY, or ARK_API_KEY.
  • Requires permission to write generated images to IMAGE_OUTPUT_DIR; the default is ./output relative to the working directory.
  • For editing, the server needs to read the files at the supplied input image paths.

Risks and side effects

  • Image generation and editing requests are sent to the selected external image provider; the source does not describe data retention or privacy practices.
  • Higher quality presets may take longer and cost more; results vary by provider.
  • Input images must be no larger than 10 MiB each; Seedream editing accepts PNG and JPEG only.

Setup

Before you start

Runtime:Node.js 22+

GEMINI_API_KEY optionalsecret API key for Gemini image generation; get one from Google AI Studio.
OPENAI_API_KEY optionalsecret API key for OpenAI image generation; get one from OpenAI. Organization verification may be required.
ARK_API_KEY optionalsecret BytePlus ModelArk AP region API key required for Seedream; get one from the BytePlus console.
Other optional settings (4)
IMAGE_PROVIDER optional Selects gemini (the default), openai, or seedream; can be set in the environment or per request.
IMAGE_OUTPUT_DIR optional Directory for generated images; use an absolute path, or it defaults to ./output.
IMAGE_QUALITY optional Default quality preset: fast (default), balanced, or quality.
SKIP_PROMPT_ENHANCEMENT optional Set to true to disable automatic prompt optimization and send prompts unchanged.

Requires Node.js 22 or later, an MCP-compatible client, and an API key for the selected image provider. Configure the provider key and optional IMAGE_OUTPUT_DIR in the client server environment; the example uses npx -y mcp-image with Gemini. Restart the client after changing its configuration.

.cursor/mcp.json
{"mcpServers":{"mcp-image":{"command":"npx","args":["-y","mcp-image"],"env":{"GEMINI_API_KEY":"your_gemini_api_key_here","IMAGE_OUTPUT_DIR":"/absolute/path/to/images"}}}}

Shown for Cursor. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "mcp-image": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-image"
      ],
      "env": {
        "GEMINI_API_KEY": "your_gemini_api_key_here",
        "IMAGE_OUTPUT_DIR": "/absolute/path/to/images"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.mcp-image]
command = "npx"
args = ["-y", "mcp-image"]

[mcp_servers.mcp-image.env]
GEMINI_API_KEY = "your_gemini_api_key_here"
IMAGE_OUTPUT_DIR = "/absolute/path/to/images"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add mcp-image -e GEMINI_API_KEY=your_gemini_api_key_here -e IMAGE_OUTPUT_DIR=/absolute/path/to/images -- npx -y mcp-image

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm `generate_image` appears in the client’s tool list, then request an image. Check that the file is saved in the configured output directory and returned as an MCP resource.

Troubleshooting

  1. Check that the selected provider's API key is set, then restart the client after changing its configuration.
  2. Use absolute paths for input images; check server file access, supported format, and the 10 MiB limit.
  3. Check image size support for the selected provider; Seedream does not support 4K, and Google Search grounding is Gemini-only.
  4. For OpenAI permission errors, check organization settings; for quota or rate-limit errors, check the provider account.

Things to try

Once connected, you can ask your AI assistant things like:

  • Generate a product photo of a ceramic coffee mug on a wooden desk.
  • Edit /path/to/image.jpg so the person is facing right.
  • Generate a cinematic desert landscape in a 21:9 aspect ratio.

Tools 1

generate_image writes
Generate an image from a prompt or edit images using input image paths; options include provider, quality, size, aspect ratio, and other image controls.

Use cases

Generate images for products, recipe sites, or social media.
Edit an image by providing its absolute path and describing the requested change.
Set requirements such as intended use, aspect ratio, quality preset, or character consistency.

Supported clients

Codex
Cursor
Claude Code

Listed from the project's documentation, not tested by this site.

Overview

MCP Image Generator is an MCP server for generating and editing images through an MCP client. It can optimize prompts and supports Gemini, OpenAI, and BytePlus Seedream. Generated images are saved to a configured directory and returned as MCP resources.

Similar servers

Source revision 564289c6d2b6 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/mcp-image.svg)](https://followmcp.com/en/servers/mcp-image)