hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
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.
- Creating your own Flux Schnell MCP Server is so easy! — Part 1
- Creating your own Flux Schnell MCP Server is so easy! — Part 2
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 endpointFLUX_API_TOKEN
- Your authentication token for the Flux Schnell APIWORKING_DIR
(optional) - Directory where generated images will be saved (defaults to current working directory)
Development
Install dependencies:
Build the server:
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:
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:
This makes the MCP server available in all your Cursor workspaces.
This server cannot be installed
A TypeScript-based MCP server that enables text-to-image generation using Cloudflare's Flux Schnell model API.