generate_image
Generate a new image from a text prompt or edit an existing image using inputImagePath. Saves the result and returns a file resource.
Generate an image from a written prompt, or edit one you already have on disk, and get back a saved file rather than a blob in the conversation.
LABSCO SUMMARY
Creating and editing share a single entry point, and the input image path is what switches between them, so there is no second tool to learn and no separate edit flow. The prompt optimizer is doing real work here — a short brief becomes a described scene before the image model sees it — and it is the first thing to turn off when the exact wording matters. What the server does not do is anything after the save: no listing, no deletion, no reopening an earlier result, so the file name you choose is the handle you keep.
A single-tool image server in front of Gemini, OpenAI or BytePlus Seedream, writing every result into an output directory and handing it back as a file resource.
Node.js 22 or newer, and a key for whichever provider you use: GEMINI_API_KEY by default, OPENAI_API_KEY with IMAGE_PROVIDER=openai — which needs a verified OpenAI organization — or ARK_API_KEY for Seedream. IMAGE_OUTPUT_DIR must be an absolute path and is created if missing; without it, results land in ./output. The server starts without any key, and the error on the first call names the variable to set. MIT.
One command plus a key — npx -y mcp-image, then supply credentials
USE CASES
Describe the picture, set the aspect ratio and size for where it has to fit, and name the file so it can be found again.
Point at the image you already accepted and ask for character consistency, so the next image continues the same subject rather than inventing a new one.
Work at the fast preset while the composition is still moving, and switch that one call to the quality preset when it is the deliverable.
Turn on search grounding or world knowledge so a landmark, a product or a historical subject is depicted from outside detail rather than from the prompt text alone.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
generate_imageGenerate a new image from a text prompt or edit an existing image using inputImagePath. Saves the result and returns a file resource.
BEFORE YOU INSTALL
1 tool when we connected. Editing, character consistency, 4K and Google Search grounding all run through generate_image parameters such as inputImagePath, not separate tools.
All 3 documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
npx -y mcp-image[mcp_servers.mcp-image]
command = "npx"
args = ["-y", "mcp-image"]
[mcp_servers.mcp-image.env]
GEMINI_API_KEY = "<YOUR_GEMINI_API_KEY>"
IMAGE_OUTPUT_DIR = "<YOUR_IMAGE_OUTPUT_DIR>"{
"mcpServers": {
"mcp-image": {
"command": "npx",
"args": [
"-y",
"mcp-image"
],
"env": {
"GEMINI_API_KEY": "<YOUR_GEMINI_API_KEY>",
"IMAGE_OUTPUT_DIR": "<YOUR_IMAGE_OUTPUT_DIR>"
}
}
}
}claude mcp add mcp-image --env GEMINI_API_KEY=<YOUR_GEMINI_API_KEY> --env IMAGE_OUTPUT_DIR=<YOUR_IMAGE_OUTPUT_DIR> -- npx -y mcp-image