drio
Open app

Flux Schnell MCP Server

Source

mcp server to generate image via replicate flux schnell

Catalog onlyCatalog onlySTDIO

Overview

Flux Schnell MCP Server is a server based on the Model Context Protocol (MCP) that generates images using the Replicate API by calling the Flux Schnell model.

To use the server, you need to set up the environment, install dependencies, and configure the server with your Replicate API token. You can then call the generate_image tool to create images based on text prompts.

  • Provides a generate_image tool for image generation - Supports custom text prompts for image creation - Automatically handles communication with the Replicate API - Comprehensive error handling and response management
  1. Generating digital art based on user-defined prompts
  2. Creating images for creative projects or presentations
  3. Assisting developers in integrating image generation into applications

Add to your AI client

Use these steps to connect Flux Schnell MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "flux-schnell-mcp-ckz": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-flux-schnell-mcp-ckz"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "flux-schnell-mcp-ckz": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-flux-schnell-mcp-ckz"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "flux-schnell-mcp-ckz": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-flux-schnell-mcp-ckz"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "flux-schnell-mcp-ckz": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-flux-schnell-mcp-ckz"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "flux-schnell-mcp-ckz": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-flux-schnell-mcp-ckz"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "flux-schnell-mcp-ckz": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-flux-schnell-mcp-ckz"
      ]
    }
  }
}

FAQ

What are the prerequisites to use the server?

You need Node.js (v14 or higher), a Replicate API token, and an MCP-compatible environment.

How do I obtain a Replicate API token?

You can create an API token by registering on the Replicate website and accessing the API Tokens page.

Can I customize the image generation prompts?

Yes! You can provide detailed descriptions to enhance the quality of the generated images.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1623,"uuid":"0a0a1792-2feb-4300-ab19-2244b031b28b","name":"flux-schnell-mcp","title":"Flux Schnell MCP Server","description":"mcp server to generate image via replicate flux schnell","avatar_url":"https://avatars.githubusercontent.com/u/5303672?v=4","created_at":"2025-02-23T09:50:13.743Z","updated_at":"2025-03-05T04:20:34.104Z","status":"created","author_name":"ckz","author_avatar_url":"https://avatars.githubusercontent.com/u/5303672?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/ckz/flux-schnell-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"2\",\"license\":\"MIT license\",\"language\":\"JavaScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-10 19:24:28\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]