
mcp flux schnell
mcp server for cloudflare flux schnell worker api.
Repository Info
About This Server
mcp server for cloudflare flux schnell worker api.
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
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.
Quick Start
Clone the repository
git clone https://github.com/bytefer/mcp-flux-schnellInstall dependencies
cd mcp-flux-schnell
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.