Replicate Designer MCP
An MCP server that enables image generation using Replicate's Flux 1.1 Pro model. It provides a tool for creating visuals from text prompts with customizable settings for aspect ratio, output format, and quality.
README
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
pip install git+https://github.com/yourusername/replicate-designer.git
Then run it with:
mcp-replicate-designer
Option 2: Use npx with GitHub repository
Create a configuration file (e.g., mcps.json):
{
"mcpServers": {
"replicateDesigner": {
"command": "npx",
"args": [
"-y",
"github:yourusername/replicate-designer"
],
"env": {
"REPLICATE_API_TOKEN": "your_replicate_api_token_here"
}
}
}
}
Then use it with Claude or another assistant:
npx @anthropic-ai/assistant --mcps-json mcps.json
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:
git clone https://github.com/yourusername/replicate-designer.git
cd replicate-designer
pip install -e .
Publishing and Using via npm
To make your MCP available via npm (for easier distribution):
- Package and publish your MCP:
# Build a wheel
pip install build
python -m build
# Publish to npm (after setting up an npm account)
npm init
npm publish
- Then users can install and use it directly:
npx -y mcp-replicate-designer
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_here -
In 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
mcp-replicate-designer
By default, it runs in stdio mode which is compatible with npx use. You can also run it in SSE mode:
mcp-replicate-designer --transport sse --port 8000
Using with npx
This MCP can be used with an AI agent using npx in two ways:
Direct command line
npx @anthropic-ai/assistant --mcp mcp-replicate-designer
As a configuration object
In your configuration JSON:
{
"mcpServers": {
"replicateDesigner": {
"command": "npx",
"args": [
"-y",
"mcp-replicate-designer"
]
}
}
}
Then use it with:
npx @anthropic-ai/assistant --mcps-json /path/to/your/config.json
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:
{
"prompt": "A photograph of an humanoid AI agent looking sad and in disrepair, the agent is sat at a workbench getting fixed by a human male",
"aspect_ratio": "1:1",
"output_format": "webp"
}
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.