image2-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| IMAGE2_API_KEY | Yes | Required. API key for the relay. | |
| IMAGE2_BASE_URL | Yes | Required. Relay root URL, without /images/... | |
| IMAGE2_ENV_FILE | No | Path to an extra `.env` (useful for multi-environment setups) | |
| IMAGE2_EDIT_FIELD | No | multipart field name for `edit_image` | image |
| IMAGE2_OUTPUT_DIR | No | Output directory; relative paths resolve against server root | ./output |
| IMAGE2_TIMEOUT_MS | No | Per-request timeout (ms); max 2147483647 | 300000 |
| IMAGE2_DEFAULT_SIZE | No | Default size | 1024x1024 |
| IMAGE2_DEFAULT_MODEL | No | Model used when `model` is omitted — set this to a model your relay serves | gpt-image-2 |
| IMAGE2_MODEL_ALIASES | No | Your own shorthands, `alias=model-id,alias2=id2`. Replaces the built-in aliases | |
| IMAGE2_DEFAULT_QUALITY | No | Default quality | high |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageA | 根据文字描述生成图片并保存到本地磁盘,返回保存后的绝对路径。适合海报、插画、产品图、图标、场景概念图等。单次耗时约 40-180 秒。 |
| edit_imageA | 基于一张或多张已有图片生成新图。用于风格迁移、局部修改、换背景、扩图、多图融合(把多张参考图合成一张新图)等。输入为本地文件路径。 |
| check_image_serviceA | 探测中转站是否可达、API Key 是否有效,并列出服务端声明的模型清单。排障时先运行它。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool maps to a distinct stage of the workflow: health/diagnostic check, text-to-image generation, and image-to-image editing. There is no overlap in inputs or purpose, and the descriptions make the boundaries explicit (local path output vs. local path input).
All three names use consistent snake_case with a verb_noun shape (check_image_service, generate_image, edit_image). The pattern is predictable and readable, even if check_image_service is slightly longer.
Three tools is on the thin side but each earns its place: one diagnostic plus the two core image operations. A single-purpose image generation server does not need more surface area, though a batch or list operation could justify one more.
The surface covers the main lifecycle: verify connectivity/credentials, generate from text, and edit from existing files including multi-image fusion. Minor gaps exist around batch generation, listing/cleaning previously generated outputs, or discovering model capabilities beyond what check_image_service reports.