Flux Schnell

by bytefer

4 stars
364 downloads
Not rated
GitHub

About

Generates images using the Flux Schnell model via a Cloudflare worker API, providing a streamlined text-to-image generation service with robust error handling and environment variable configuration.

Details

Author
bytefer
Repository
bytefer/mcp-flux-schnell
GitHub stars
4
Downloads
364
License
MIT License
Categories
Developer Tools, AI, Design, Media, Infrastructure, API, Cloud Service

- Single generate_image tool to create images from text prompts.
- Supports prompts between 1 and 2048 characters.
- Returns the file path of the generated image.
- Configurable output directory via WORKING_DIR environment variable.
- Can be configured per project or globally in Cursor.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Flux Schnell
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /path/to/mcp-flux-schnell/build/index.js
    Environment
    • WORKING_DIR your working directory
    • FLUX_API_URL your flux api url
    • FLUX_API_TOKEN your flux api token

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

The following environment variables must be configured:

- FLUX_API_URL - The URL of the Flux Schnell API endpoint
- FLUX_API_TOKEN - Your authentication token for the Flux Schnell API
- WORKING_DIR (optional) - Directory where generated images will be saved (defaults to current working directory)

To install Flux Schnell Image Generator for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @bytefer/mcp-flux-schnell --client claude

There are two ways to configure the MCP server in Cursor:

For tools specific to a project, create a .cursor/mcp.json file in your project directory:

{
  "mcpServers": {
    "mcp-flux-schnell": {
      "command": "node",
      "args": ["/path/to/mcp-flux-schnell/build/index.js"],
      "env": {
        "FLUX_API_URL": "your flux api url",
        "FLUX_API_TOKEN": "your flux api token",
        "WORKING_DIR": "your working directory"
      }
    }
  }
}

This configuration will only be available within the specific project.

For tools that you want to use across all projects, create a ~/.cursor/mcp.json file in your home directory with the same configuration:

{
  "mcpServers": {
    "mcp-flux-schnell": {
      "command": "node",
      "args": ["/path/to/mcp-flux-schnell/build/index.js"],
      "env": {
        "FLUX_API_URL": "your flux api url",
        "FLUX_API_TOKEN": "your flux api token",
        "WORKING_DIR": "your working directory"
      }
    }
  }
}

This makes the MCP server available in all your Cursor workspaces.

generate_image

Generate images from text descriptions. Takes a text prompt as input (1-2048 characters) and returns the path to the generated image file.

- generate_image - Generate images from text descriptions
- Takes a text prompt as input (1-2048 characters)
- Returns the path to the generated image file

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "flux schnell": {
            "env": {
                "WORKING_DIR": "your working directory",
                "FLUX_API_URL": "your flux api url",
                "FLUX_API_TOKEN": "your flux api token"
            },
            "args": [
                "/path/to/mcp-flux-schnell/build/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "WORKING_DIR": "your working directory",
        "FLUX_API_URL": "your flux api url",
        "FLUX_API_TOKEN": "your flux api token"
    },
    "args": [
        "/path/to/mcp-flux-schnell/build/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "WORKING_DIR": "your working directory",
        "FLUX_API_URL": "your flux api url",
        "FLUX_API_TOKEN": "your flux api token"
    },
    "args": [
        "/path/to/mcp-flux-schnell/build/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "WORKING_DIR": "your working directory",
        "FLUX_API_URL": "your flux api url",
        "FLUX_API_TOKEN": "your flux api token"
    },
    "args": [
        "/path/to/mcp-flux-schnell/build/index.js"
    ],
    "command": "node"
}

A text-to-image generation server using the Flux Schnell model.

A TypeScript-based MCP server that implements a text-to-image generation tool using the Flux Schnell model. This server integrates with Cloudflare's Flux Schnell worker API to provide image generation capabilities through MCP.

- Creating your own Flux Schnell MCP Server is so easy! — Part 1
-
Creating your own Flux Schnell MCP Server is so easy! — Part 2

- generate_image- Generate images from text descriptions

- Takes a text prompt as input (1-2048 characters)
- Returns the path to the generated image file

The following environment variables must be configured:

- FLUX_API_URL- The URL of the Flux Schnell API endpoint
- FLUX_API_TOKEN- Your authentication token for the Flux Schnell API
- WORKING_DIR(optional) - Directory where generated images will be saved (defaults to current working directory)

To install Flux Schnell Image Generator for Claude Desktop automatically viaSmithery:

npx -y @smithery/cli install @bytefer/mcp-flux-schnell --client claude

There are two ways to configure the MCP server in Cursor:

For tools specific to a project, create a.cursor/mcp.jsonfile in your project directory:

{ "mcpServers": { "mcp-flux-schnell": { "command": "node", "args": ["/path/to/mcp-flux-schnell/build/index.js"], "env": { "FLUX_API_URL": "your flux api url", "FLUX_API_TOKEN": "your flux api token", "WORKING_DIR": "your working directory" } } } }

This configuration will only be available within the specific project.

For tools that you want to use across all projects, create a~/.cursor/mcp.jsonfile in your home directory with the same configuration:

{ "mcpServers": { "mcp-flux-schnell": { "command": "node", "args": ["/path/to/mcp-flux-schnell/build/index.js"], "env": { "FLUX_API_URL": "your flux api url", "FLUX_API_TOKEN": "your flux api token", "WORKING_DIR": "your working directory" } } } }

This makes the MCP server available in all your Cursor workspaces.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Create crafted UI components inspired by the best 21st.dev design engineers.

Bring agent evaluations, observability, and synthetic test set generation directly into your IDE for free with Galileo's new MCP server

An MCP server to help AI assistants to answer questions and generate AccelByte Extend SDK code more effectively .

MCP server for AI Diagram Maker — generate beautiful software engineering diagrams directly inside Cursor, Claude Desktop, Claude Code, or any MCP-compatible AI agent

ALAPI MCP Tools,Call hundreds of API interfaces via MCP

AI-powered SVG animation generator that transforms static files into animated SVG components using the Allyson platform

MCP server that gives AI assistants on-demand access to 1,500+ amCharts docs, ~300 code examples, and 1000+ class API references.

APIMatic MCP Server is used to validate OpenAPI specifications using APIMatic. The server processes OpenAPI files and returns validation summaries by leveraging APIMatic’s API.

One shared context layer for AI agents and humans — live API specs, DB schemas, and versioned contracts across repos so every agent and teammate works from the same source of truth.

Build and deploy full-stack Next.js apps with 98 tools for React, AWS, and MongoDB

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.