Replicate Designer MCP MCP Server

$pip install git+https://github.com/noeltg77/replicate-designer.git
README.md

An MCP server for generating images using Replicate's Flux 1.1 Pro model.

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):

  1. 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
  1. 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:

  1. Environment variable (for command line usage):

    export REPLICATE_API_TOKEN=your_api_token_here
    
  2. In the MCP configuration file (as shown in Option 2 above):

    {
      "mcpServers": {
        "replicateDesigner": {
          "command": "...",
          "args": ["..."],
          "env": {
            "REPLICATE_API_TOKEN": "your_replicate_api_token_here"
          }
        }
      }
    }
    
  3. Using a .env file in your project directory:

    REPLICATE_API_TOKEN=your_api_token_here
    

    Then, 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 generate
  • aspect_ratio (string, optional, default: "1:1"): Aspect ratio for the generated image
  • output_format (string, optional, default: "webp"): Format of the output image
  • output_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"
}

Tools (1)

generate_imageGenerates an image using Replicate's Flux 1.1 Pro model with text prompts and customizable settings.

Environment Variables

REPLICATE_API_TOKENrequiredYour Replicate API token for authentication

Configuration

claude_desktop_config.json
{
  "mcpServers": {
    "replicateDesigner": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-replicate-designer"
      ],
      "env": {
        "REPLICATE_API_TOKEN": "your_replicate_api_token_here"
      }
    }
  }
}

Try it

Generate a 16:9 photograph of a futuristic city skyline at sunset using Flux 1.1 Pro.
Create a high-quality webp image of a humanoid AI agent working at a workbench.
Generate a square image of a cyberpunk cat with prompt upsampling enabled and quality set to 100.
Design a visual based on the prompt 'a serene mountain lake' with a 3:2 aspect ratio.

Frequently Asked Questions

What are the key features of Replicate Designer MCP?

Image generation using Replicate's Flux 1.1 Pro model.. Customizable aspect ratios (e.g., 1:1, 16:9).. Support for multiple output formats including webp.. Adjustable safety tolerance and prompt upsampling settings.. Supports both stdio and SSE transport modes..

What can I use Replicate Designer MCP for?

Designers needing quick AI-generated visual assets directly within their AI chat workflow.. Content creators generating high-quality thumbnails or illustrations for articles.. Developers prototyping UI/UX concepts with realistic placeholder imagery.. Artists experimenting with Flux 1.1 Pro parameters like safety tolerance and upsampling..

How do I install Replicate Designer MCP?

Install Replicate Designer MCP by running: pip install git+https://github.com/noeltg77/replicate-designer.git

What MCP clients work with Replicate Designer MCP?

Replicate Designer MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use Replicate Designer MCP with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free