Flux Schnell Image Generator
STDIOTypeScript-based MCP server for text-to-image generation using Flux Schnell model.
TypeScript-based MCP server for text-to-image generation using Flux Schnell model.
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.
generate_image
- Generate images from text descriptions
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)Install dependencies:
npm install # or pnpm install
Build the server:
npm run build # or pnpm build
To install Flux Schnell Image Generator for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @bytefer/mcp-flux-schnell --client claude
There are two ways to configure the MCP server in Cursor:
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.
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.