generate_image
Generate an image from a text prompt using Flux Schnell model
Generate an image from a text prompt inside the conversation, using your own Cloudflare Flux Schnell worker endpoint.
LABSCO SUMMARY
This is a thin bridge rather than an image service: it does not bundle a model or an account, it calls the Cloudflare worker whose URL and token you supply. That means cost and rate limits are whatever your own endpoint charges, and it also means the server is useless until that endpoint exists.
A small TypeScript server that puts one text-to-image call in front of the Flux Schnell model. It sends your prompt to a Flux Schnell worker API you point it at, writes the resulting image to disk, and answers with the file path.
generate_imageWORKING_DIR variableYour own Flux Schnell endpoint: FLUX_API_URL for the worker URL and FLUX_API_TOKEN for its token, both required. WORKING_DIR is optional and defaults to the current working directory. Runs as a Node process from the built build/index.js; there is also a Smithery install for Claude Desktop. The package is mcp-flux-schnell 0.1.0.
Build from source
USE CASES
Describe the picture you want and get back a file path you can drop straight into a mockup or a slide.
Point WORKING_DIR at the project folder so every image the agent makes is written where the rest of the assets live, instead of the directory the server happened to start in.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
generate_imageGenerate an image from a text prompt using Flux Schnell model
BEFORE YOU INSTALL
1 tool when we connected.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the one tool definition that rides along on every turn
INSTALLATION
You clone and build this one yourself.
git clone https://github.com/bytefer/mcp-flux-schnell
cd mcp-flux-schnell
npm install
npm run build{
"mcpServers": {
"mcp-flux-schnell": {
"command": "node",
"args": [
"<YOUR_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_DIR>"
}
}
}
}<YOUR_PATH_TO_MCP_FLUX_SCHNELL>/build/index.js is the full path of build/index.js in your clone (npm run build creates it). Set FLUX_API_URL to the URL of your Flux Schnell worker API and FLUX_API_TOKEN to its token. WORKING_DIR is optional: set it to the folder images should be saved in, or delete that line to save them in the current working directory.