generate_imageLABSCO SUMMARY
One prompt in, one URL out.
There is nothing to learn here, which is the point — a model that wants an image mid-conversation should not have to negotiate a dozen parameters to get one. Flux Schnell is the fast variant of the family, so the trade is speed over the maximum quality the larger models reach. The cost lands on your Replicate token, so every generated image is a charge you control.
What it is
A single-purpose image generation server. It takes a prompt, runs it through the Flux Schnell model hosted on Replicate, and hands back a URL — no local model, no GPU, nothing to manage beyond an API token.
What you get
- One tool taking one required
promptstring — a text description of the image you want —generate_image - A structured response rather than bare text: a
statusfor the request, anoutputcarrying the URL of the generated image when it succeeded, and anerrorwhen it did not - Input validation before the API call, so a malformed request fails locally instead of costing a round trip
- Named error handling for the cases that actually occur — a missing token, invalid parameters, an API failure, a network problem
Requirements
A Replicate API token from your Replicate account settings, supplied as REPLICATE_API_TOKEN in the env block of your client config — never committed to the repository. Node.js: clone into your MCP servers directory, npm install, npm run build, and point your client at the built entry with node. Generation is billed by Replicate against that token.
Setup effort
Build from source — git clone https://github.com/ckz/flux-img-mcp.git
USE CASES
Illustrating something mid-conversation
Describe the image in words and get a URL back, without leaving for a separate generation tool.
Iterating on a visual idea
Reword the prompt and regenerate in the same thread, so each attempt sits next to the description that produced it.
Producing placeholder art for a draft
Generate something to fill a layout while the real asset is commissioned, at Flux Schnell's speed rather than a slower model's.
1 tool
Listed in project docs. Your client may show a different list.
BEFORE YOU INSTALL
What to know first
Tools you get
1 tool named in the project's documentation.
Requires
REPLICATE_API_TOKEN in your environment
Where it runs
The documented client runs the server on your machine.
INSTALLATION
Connect your client
Server setup
git clone https://github.com/ckz/flux-img-mcp.git
cd flux-img-mcp
npm install
npm run buildMCP Clients
Cline
{
"mcpServers": {
"flux-img": {
"command": "node",
"args": [
"<YOUR_PATH_TO_FLUX_IMG_MCP>/build/index.js"
],
"env": {
"REPLICATE_API_TOKEN": "<YOUR_REPLICATE_API_TOKEN>"
},
"disabled": false,
"alwaysAllow": []
}
}
}