Flux Studio
STDIOPowerful MCP server bringing Flux's image generation capabilities to AI coding assistants.
Powerful MCP server bringing Flux's image generation capabilities to AI coding assistants.
A powerful Model Context Protocol (MCP) server that brings Flux's advanced image generation capabilities to your AI coding assistants. This server enables direct integration of Flux's image generation, manipulation, and control features into Cursor and Windsurf (Codeium) IDEs.
MCP Flux Studio bridges the gap between AI coding assistants and Flux's powerful image generation API, allowing seamless integration of image generation capabilities directly into your development workflow.
Image Generation
Image Manipulation
Advanced Controls
IDE Integration
Prerequisites
Installation
To install Flux Studio for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @jmanhype/mcp-flux-studio --client claude
git clone https://github.com/jmanhype/mcp-flux-studio.git cd mcp-flux-studio npm install npm run build
BFL_API_KEY=your_flux_api_key FLUX_PATH=/path/to/flux/installation
For detailed setup instructions, including IDE-specific configuration and troubleshooting, see our Installation Guide.
MCP Flux Studio integrates seamlessly with Cursor's AI assistant:
Configuration
Usage
Integration with Windsurf's Cascade AI:
Configuration
~/.codeium/windsurf/mcp_config.json
Usage
For detailed IDE-specific setup instructions, see the Installation Guide.
The server provides the following tools:
Generate an image from a text prompt.
{ "prompt": "A photorealistic cat", "model": "flux.1.1-pro", "aspect_ratio": "1:1", "output": "generated.jpg" }
Generate an image using another image as reference.
{ "image": "input.jpg", "prompt": "Convert to oil painting", "model": "flux.1.1-pro", "strength": 0.85, "output": "output.jpg", "name": "oil_painting" }
Inpaint an image using a mask.
{ "image": "input.jpg", "prompt": "Add flowers", "mask_shape": "circle", "position": "center", "output": "inpainted.jpg" }
Generate an image using structural control.
{ "type": "canny", "image": "control.jpg", "prompt": "A realistic photo", "output": "controlled.jpg" }
flux-mcp-server/
├── src/
│ ├── index.ts # Main server implementation
│ └── types.ts # TypeScript type definitions
├── tests/
│ └── server.test.ts # Server tests
├── docs/
│ ├── API.md # API documentation
│ └── CONTRIBUTING.md # Contribution guidelines
├── examples/
│ ├── generate.json # Example tool usage
│ └── config.json # Example configuration
├── package.json
├── tsconfig.json
└── README.md
npm test
npm run build
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.