mcp-flux-schnell
mcp server for cloudflare flux schnell worker api.
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 endpoint
- `FLUX_API_TOKEN` - Your authentication token for the Flux Schnell API
- `WORKING_DIR` (optional) - Directory where generated images will be saved (defaults to current working directory)
Development
Install dependencies:
npm install
# or
pnpm installBuild the server:
npm run build
# or
pnpm buildInstallation
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 claudeCursor 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.
Frequently asked questions
What is mcp-flux-schnell?
mcp-flux-schnell is mcp server for cloudflare flux schnell worker api.
How do I install mcp-flux-schnell?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-flux-schnell open source?
Yes — it is hosted on GitHub at https://github.com/bytefer/mcp-flux-schnell and has 5 stars.
Related MCP tools
Official remote MCP server for Atlassian. Securely connect Jira, Confluence, Jira Service Management, Bitbucket, and Compass to Claude, ChatGPT, Cursor, VS Code, and other AI tools using OAuth 2.1 or API tokens.
🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
This is a 12306 ticket search server based on the Model Context Protocol (MCP).
A model context protocol server to work with JetBrains IDEs: IntelliJ, PyCharm, WebStorm, etc. Also, works with Android Studio
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth! Python-based implementation. Trusted by 11000+ developers.
Browser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP