mcp-flux-schnell

by bytefer

Integrations

  • Integrates with Cloudflare's Flux Schnell worker API to provide text-to-image generation capabilities through MCP.

mcp-flux-schnell MCP Server

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.

Features

Tools

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

Environment Variables

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)

Development

Install dependencies:

npm install # or pnpm install

Build the server:

npm run build # or pnpm build

Installation

Cursor Configuration

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

Project Configuration

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.

Global Configuration

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.

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A TypeScript-based MCP server that enables text-to-image generation using Cloudflare's Flux Schnell model API.

  1. Features
    1. Tools
  2. Environment Variables
    1. Development
      1. Installation
        1. Cursor Configuration

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        Provides image generation capabilities using the Flux Schnell model on Replicate, allowing users to create images from text prompts.
        Last updated -
        1
        JavaScript
        MIT License
      • A
        security
        F
        license
        A
        quality
        A TypeScript-based MCP server that generates images using OpenAI's dall-e-3 model based on text prompts and saves them to a specified directory.
        Last updated -
        1
        6
        JavaScript
        • Apple
      • -
        security
        -
        license
        -
        quality
        A TypeScript-based MCP server that lets users generate images using OpenAI's dall-e-3 model by providing a prompt and image name.
        Last updated -
        1
      • A
        security
        A
        license
        A
        quality
        A MCP server that integrates with Stable Diffusion WebUI to provide text-to-image generation and image upscaling capabilities through simple API calls.
        Last updated -
        5
        4
        JavaScript
        MIT License

      View all related MCP servers

      ID: 37deytaz5i