Provides tools for generating images through Replicate's Flux 1.1 Pro model, allowing for customization of aspect ratios, output formats, and safety settings.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Replicate Designer MCPcreate a 16:9 image of a futuristic library with bioluminescent plants"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Replicate Designer MCP
An MCP server for generating images using Replicate's Flux 1.1 Pro model.
Installation
Using Directly from GitHub
You can use the MCP server directly from GitHub in several ways:
Option 1: Install directly with pip
Then run it with:
Option 2: Use npx with GitHub repository
Create a configuration file (e.g., mcps.json):
Then use it with Claude or another assistant:
This method allows you to include your Replicate API token directly in the configuration file, which is more convenient than setting environment variables separately.
Option 3: Local Installation
Clone the repository and install from the local directory:
Publishing and Using via npm
To make your MCP available via npm (for easier distribution):
Package and publish your MCP:
Then users can install and use it directly:
Usage
Setting the API Token
There are several ways to provide your Replicate API token:
Environment variable (for command line usage):
export REPLICATE_API_TOKEN=your_api_token_hereIn the MCP configuration file (as shown in Option 2 above):
{ "mcpServers": { "replicateDesigner": { "command": "...", "args": ["..."], "env": { "REPLICATE_API_TOKEN": "your_replicate_api_token_here" } } } }Using a .env file in your project directory:
REPLICATE_API_TOKEN=your_api_token_hereThen, install the python-dotenv package:
pip install python-dotenv
Security Note: Be careful with your API tokens. Never commit them to public repositories, and use environment variables or secure secret management when possible.
Running the MCP server
By default, it runs in stdio mode which is compatible with npx use. You can also run it in SSE mode:
Using with npx
This MCP can be used with an AI agent using npx in two ways:
Direct command line
As a configuration object
In your configuration JSON:
Then use it with:
Tool
This MCP exposes a single tool:
generate_image
Generates an image using Replicate's Flux 1.1 Pro model.
Parameters:
prompt(string, required): Text description of the image to generateaspect_ratio(string, optional, default: "1:1"): Aspect ratio for the generated imageoutput_format(string, optional, default: "webp"): Format of the output imageoutput_quality(integer, optional, default: 80): Quality of the output image (1-100)safety_tolerance(integer, optional, default: 2): Safety tolerance level (0-3)prompt_upsampling(boolean, optional, default: true): Whether to use prompt upsampling
Example: