MCP.so
登录

Replicate Flux

@newtype-01

关于 Replicate Flux

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

基本信息

分类

其他

运行时

node

传输方式

stdio

发布者

newtype-01

提交者

Huang Yihe

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "replicate-flux": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-e",
        "REPLICATE_API_TOKEN=your_token_here",
        "replicate-flux"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Replicate Flux?

Replicate Flux is a TypeScript-based MCP server that runs the Flux AI image generation model (black-forest-labs/flux-dev) on the Replicate platform. It is designed for developers using MCP-compatible applications such as Claude to generate images programmatically.

How to use Replicate Flux?

Clone the repository, install dependencies with npm install, create a .env file with your Replicate API token, then build with npm run build. Run the server directly via node build/index.js, via npx Replicate-Flux, or using Docker. Configure MCP clients (e.g., Claude) by adding a JSON entry to their settings, specifying the command as the server path, npx, or docker.

Key features of Replicate Flux

  • Generate images using the black-forest-labs/flux-dev model on Replicate.
  • Simple integration with any MCP-compatible client (Claude, etc.).
  • Customizable image generation parameters.
  • Supports local, npx, and Docker execution methods.
  • Environment variable configuration for the API token.
  • Auto-rebuild during development with npm run watch.

Use cases of Replicate Flux

  • Generate AI images from text prompts directly within Claude.
  • Integrate image generation into automated workflows using MCP.
  • Test and iterate on image prompts with customizable parameters.
  • Deploy image generation in containerized environments.

FAQ from Replicate Flux

What runtime does Replicate Flux require?

Node.js 18 or later must be installed.

How do I get a Replicate API token?

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

Can I run Replicate Flux in a Docker container?

Yes. Build the Docker image with docker build -t replicate-flux . and run it, passing the API token via the -e flag.

How do I configure Replicate Flux for use with Claude?

Add a JSON entry to your MCP client settings using the local installation path, npx, or Docker command, and include the environment variable if not set system-wide.

How can I debug the server?

Use the MCP Inspector by running npm run inspector, which provides a URL for browser-based debugging.

评论

其他 分类下的更多 MCP 服务器