Labsco
MCP SERVER

Replicate Flux MCP

by awkoy

Generate an image from a prompt — one, a batch, or variants of the same idea — and reach any other Replicate model through the same token.

Image GenerationVerified
Summary
Prompt-to-image without a browser tab, and the rest of Replicate behind the same token.

The Flux tools expose the parameters that make an image reproducible — seed, inference steps, megapixels — so a result you liked can be regenerated rather than re-rolled. When the model you need is not Flux, get_model_schema hands you its input shape and run_replicate_model runs it, which keeps one integration where there would have been two.

What it is

A Replicate client built around Flux Schnell image generation, with SVG generation on Recraft and a general path that runs any model hosted on Replicate by reference.

What you get
  • An image from a text prompt with aspect ratio, megapixels, inference steps, output format, output quality and a seed
  • A batch of images generated from an array of prompts in one call
  • Variants of a single prompt, with the number of variants and the way the prompt is varied under your control
  • An SVG generated from a prompt through the Recraft model at a size and style you choose
  • Any model on Replicate run by its 'owner/name[:version]' reference, with its OpenAPI input schema and description fetched first so you know what to pass
  • Predictions created and polled to completion, fetched by ID, and the recent ones listed
Requirements

A Replicate account and an API token in REPLICATE_API_TOKEN, plus npx on your PATH.

Setup effort

One command plus a key — REPLICATE_API_TOKEN=YOUR_TOKEN npx -y replicate-flux-mcp, then supply credentials