mcp-flux-schnell MCP Server

mcp-flux-schnell MCP Server

By bytefer GitHub

mcp server for cloudflare flux schnell worker api.

flux mcp
Overview

what is mcp-flux-schnell?

The mcp-flux-schnell is a TypeScript-based MCP server that integrates with Cloudflare's Flux Schnell worker API to provide image generation capabilities from text descriptions.

how to use mcp-flux-schnell?

To use the mcp-flux-schnell server, configure the necessary environment variables, install the dependencies, and run the server using Node.js. You can generate images by sending text prompts to the generate_image tool.

key features of mcp-flux-schnell?

  • Generates images from text descriptions (1-2048 characters)
  • Easy configuration for project-specific or global use
  • Integration with Cloudflare's Flux Schnell API for enhanced image generation capabilities

use cases of mcp-flux-schnell?

  1. Creating visual content from textual descriptions for marketing materials.
  2. Generating images for creative projects or artwork.
  3. Assisting developers in building applications that require image generation from user input.

FAQ from mcp-flux-schnell?

  • What programming language is mcp-flux-schnell built with?

It is built using TypeScript.

  • Is there a specific way to configure the server?

Yes, you can configure it either per project or globally using a JSON configuration file.

  • What are the requirements to run mcp-flux-schnell?

You need Node.js and the necessary environment variables set up for the Flux API.

Content

mcp-flux-schnell MCP Server

smithery badge

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

Installing via Smithery

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

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

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.

No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details