Generates images from text using the Flux Schnell model on a Cloudflare Workers AI endpoint.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add flux-schnell --env FLUX_API_TOKEN='<FLUX_API_TOKEN>' --env FLUX_API_URL='<FLUX_API_URL>' --env WORKING_DIR='<WORKING_DIR>' -- node /path/to/mcp-flux-schnell/build/index.js~/.codex/config.toml
[mcp_servers.flux-schnell]
command = "node"
args = ["/path/to/mcp-flux-schnell/build/index.js"]
env = { FLUX_API_TOKEN = "<FLUX_API_TOKEN>", FLUX_API_URL = "<FLUX_API_URL>", WORKING_DIR = "<WORKING_DIR>" }
# codex mcp add flux-schnell --env FLUX_API_TOKEN='<FLUX_API_TOKEN>' --env FLUX_API_URL='<FLUX_API_URL>' --env WORKING_DIR='<WORKING_DIR>' -- node /path/to/mcp-flux-schnell/build/index.js~/.cursor/mcp.json
{
"mcpServers": {
"flux-schnell": {
"command": "node",
"args": [
"/path/to/mcp-flux-schnell/build/index.js"
],
"env": {
"FLUX_API_TOKEN": "<FLUX_API_TOKEN>",
"FLUX_API_URL": "<FLUX_API_URL>",
"WORKING_DIR": "<WORKING_DIR>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"flux-schnell": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/mcp-flux-schnell/build/index.js"
],
"env": {
"FLUX_API_TOKEN": "<FLUX_API_TOKEN>",
"FLUX_API_URL": "<FLUX_API_URL>",
"WORKING_DIR": "<WORKING_DIR>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"flux-schnell": {
"command": "node",
"args": [
"/path/to/mcp-flux-schnell/build/index.js"
],
"env": {
"FLUX_API_TOKEN": "<FLUX_API_TOKEN>",
"FLUX_API_URL": "<FLUX_API_URL>",
"WORKING_DIR": "<WORKING_DIR>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"flux-schnell": {
"command": "node",
"args": [
"/path/to/mcp-flux-schnell/build/index.js"
],
"env": {
"FLUX_API_TOKEN": "<FLUX_API_TOKEN>",
"FLUX_API_URL": "<FLUX_API_URL>",
"WORKING_DIR": "<WORKING_DIR>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"flux-schnell": {
"command": "node",
"args": [
"/path/to/mcp-flux-schnell/build/index.js"
],
"env": {
"FLUX_API_TOKEN": "<FLUX_API_TOKEN>",
"FLUX_API_URL": "<FLUX_API_URL>",
"WORKING_DIR": "<WORKING_DIR>"
}
}
}
}Environment variables
FLUX_API_TOKENFLUX_API_URLWORKING_DIR
Replace the placeholders with your own credentials and keep them out of version control.