Back to MCP Catalog

Replicate Flux MCP Server

Art & CultureTypeScript
Generate customized images and SVG assets with AI
Available Tools

generate_image

Generates an image based on a text prompt using the Flux Schnell model

promptwidthheightstylenegative_prompt

generate_svg

Generates an SVG vector graphic based on a text prompt using the Recraft V3 SVG model

promptstylenegative_prompt

generate_image_batch

Generates multiple images at once with variations on the same prompt

promptcountwidthheightstylenegative_prompt

generate_image_variant

Creates a variation of an existing image based on a new prompt

image_urlpromptwidthheightstylenegative_prompt

Replicate Flux is an advanced image generation tool that leverages Black Forest Labs' Flux Schnell model for raster images and Recraft's V3 SVG model for vector graphics. It enables AI assistants to create high-quality visuals that match specific coding vibes and aesthetic styles, streamlining the visual asset creation process for developers.

Overview

Replicate Flux is a powerful image generation tool that connects to Replicate's API to generate both raster images and vector graphics. It uses Black Forest Labs' Flux Schnell model for creating detailed raster images and Recraft's V3 SVG model for producing clean, scalable vector graphics.

Installation

To use Replicate Flux, you'll need a Replicate API token. Here's how to get started:

  1. Sign up at Replicate and create an API token in your account settings
  2. Choose one of the following integration methods:

Local Installation

You can run Replicate Flux directly using NPX:

env REPLICATE_API_TOKEN=your_token_here npx -y replicate-flux-mcp

Integration with AI Assistants

Cursor Integration

Option 1: Using mcp.json Create or edit the .cursor/mcp.json file in your project directory:

{
  "mcpServers": {
    "replicate-flux-mcp": {
      "command": "env REPLICATE_API_TOKEN=YOUR_TOKEN npx",
      "args": ["-y", "replicate-flux-mcp"]
    }
  }
}

Option 2: Manual Mode

  1. Open Cursor and go to Settings
  2. Navigate to the "MCP" section
  3. Click "Add Server"
  4. Enter the command: env REPLICATE_API_TOKEN=YOUR_TOKEN npx -y replicate-flux-mcp

Claude Desktop Integration

Create or edit the mcp.json file in your configuration directory:

{
  "mcpServers": {
    "replicate-flux-mcp": {
      "command": "npx",
      "args": ["-y", "replicate-flux-mcp"],
      "env": {
        "REPLICATE_API_TOKEN": "YOUR_TOKEN"
      }
    }
  }
}

Hosted Options

If you prefer not to set up your own server, you can use one of these hosted services:

Usage

Once integrated, you can ask your AI assistant to generate images using natural language:

  • For basic generation: "Generate an image of a mountain landscape at sunset"
  • For specific styles: "Create an image of a futuristic city in cyberpunk style"
  • For SVG generation: "Generate an SVG icon of a rocket ship"

You can customize your requests with parameters like dimensions, style preferences, and more detailed descriptions for better results.

Advanced Features

  • Batch Generation: Generate multiple images at once with variations
  • SVG Creation: Create scalable vector graphics for icons, illustrations, and UI elements
  • Style Customization: Specify artistic styles, color schemes, and visual aesthetics
  • Resolution Control: Set custom dimensions for your generated images

Troubleshooting

If you encounter issues:

  1. Verify your Replicate API token is valid and has sufficient credits
  2. Check your network connection
  3. For timeout errors during SVG generation, try simplifying your request
  4. Ensure you're using the latest version of the package

For persistent problems, check the GitHub repository for known issues or to report new ones.

Related MCPs

Video Jungle
Art & CulturePython

Upload, edit, search, and generate videos with AI assistance

Rijksmuseum
Art & CultureTypeScript

Access and explore the Rijksmuseum's art collection through natural language

AniList
Art & CultureTypeScript

Access and interact with anime, manga, character, and user data from AniList

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.