generate_image
Generate an image using the Flux model
Generate images with the Flux model on Replicate from a text prompt, choosing the aspect ratio and output format, and pinning a seed when a result is worth reproducing.
No longer maintained. The GitHub repository for this server is archived — no fixes or security updates are expected.
LABSCO SUMMARY
One tool and five arguments: prompt, aspect_ratio, num_outputs, output_format and seed. The model comes from the MODEL environment variable, so it is decided once at configuration time and every generation in the session uses it — predictable, and not something a prompt can change by accident. There is no editing, upscaling or history here: it generates and returns.
A one-tool server for image generation through Replicate, using the Flux model.
REPLICATE_API_TOKEN and MODEL, and a Replicate account the token belongs to. MIT.
One command plus a key — npm install -g @gongrzhe/image-gen-server, then supply credentials
USE CASES
Describe the image, set the aspect ratio for where it will sit, and take back more than one candidate in the same call so there is something to choose between.
Once a result is close, hold its seed and change one thing at a time — the prompt wording or the aspect ratio — so each attempt is a comparison rather than a fresh roll.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
generate_imageGenerate an image using the Flux model
BEFORE YOU INSTALL
1 tool when we connected. The MODEL variable picks the Replicate model and defaults to black-forest-labs/flux-schnell; alternative-model-name in the example config is a placeholder. The tool returns image URLs, not image data.
Both documented setups run the server on your machine.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
npm install -g @gongrzhe/image-gen-server{
"mcpServers": {
"image-gen": {
"command": "npx",
"args": [
"@gongrzhe/image-gen-server"
],
"env": {
"REPLICATE_API_TOKEN": "<YOUR_REPLICATE_API_TOKEN>",
"MODEL": "alternative-model-name"
},
"disabled": false,
"autoApprove": []
}
}
}{
"mcpServers": {
"image-gen": {
"command": "node",
"args": [
"<YOUR_PATH_TO_IMAGE_GEN_SERVER>/build/index.js"
],
"env": {
"REPLICATE_API_TOKEN": "<YOUR_REPLICATE_API_TOKEN>",
"MODEL": "alternative-model-name"
},
"disabled": false,
"autoApprove": []
}
}
}