Replicate Flux MCP Server

A MCP server for running Flux AI image generation model on Replicate

Local serverstdioTypeScript

What is the Replicate Flux MCP server?

A MCP server for running Flux AI image generation model on Replicate. The replicate flux mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 5 defined tools rather than through you.

What it actually does

  • Generate images using the black-forest-labs/flux-dev model through Replicate
  • Simple integration with any MCP-compatible application (Claude, etc.)
  • Customizable image generation parameters

Adding it to your client

After on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Its toolset

Everything the assistant can do here goes through one of these:

  • REPLICATE_API_TOKEN — Your Replicate API token
  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — 1. Clone this repository 2. Install dependencies: bash npm install
  • Running — The Running tool exposed by this server
  • Debugging — Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP

Configuration

You will need one environment variable: REPLICATE_API_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the replicate flux mcp server does with a few real requests.

When to reach for it

This sits in the AI and media services group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Replicate Flux's toolset — REPLICATE_API_TOKEN, Prerequisites, Installation and 2 more — is a fair guide to whether it matches your workflow. It is maintained by newtype-01; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
REPLICATE_API_TOKENYour Replicate API token
PrerequisitesThe Prerequisites tool exposed by this server.
Installation1. Clone this repository 2. Install dependencies: bash npm install
RunningThe Running tool exposed by this server.
DebuggingSince MCP servers communicate over stdio, debugging can be challenging. We recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector), which is available as a package script:

How to install the Replicate Flux MCP server

#### Using npx

```json
{
  "mcpServers": {
    "replicate-flux": {
      "command": "npx",
      "args": ["Replicate-Flux"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
REPLICATE_API_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Replicate Flux to REPLICATE API TOKEN.
  • Use Replicate Flux to Prerequisites.
  • Use Replicate Flux to Installation.

Frequently asked questions

Obtain your token from your Replicate account at https://replicate.com/account.