Flux Schnell MCP Server
A text-to-image generation server using the Flux Schnell model.
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:
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.
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Remote MCP Server on Cloudflare
A template for deploying a remote MCP server on Cloudflare Workers, allowing for custom tool integration.
APIWeaver
A universal bridge to convert any web API into an MCP server, supporting multiple transport types.
Aider MCP Server
An MCP server for offloading AI coding tasks to Aider, enhancing development efficiency and flexibility.
AppSignal MCP
Integrate with the AppSignal monitoring API to query and fetch error and performance data.
MCP SGF Server
Process SGF (Smart Game Format) files to extract game information and generate visual board diagrams.
OpenDia
An open-source server that exposes browser functions via MCP, allowing AI models to interact with browser capabilities.
markmap-http-mcp
An MCP server for converting Markdown to interactive mind maps with export support (PNG/JPG/SVG). Server runs as HTTP service.
OpenAI GPT Image
Generate and edit images using OpenAI's GPT-4o image generation and editing APIs with advanced prompt control.
MCPStore
An enterprise-grade MCP tool management solution for simplifying AI Agent tool integration, service management, and system monitoring.
MasterGo Magic MCP
A standalone MCP service that connects MasterGo design tools with AI models, enabling them to retrieve DSL data directly from design files.