MCP Flux Studio integrates Flux's image generation and manipulation capabilities into AI coding assistants.
Image Generation: Generate images from text prompts with multiple models, customizable aspect ratios, and dimensions.
Image Manipulation: Transform images using reference images (img2img), inpaint specific areas with masks, and upscale resolution.
Advanced Controls: Generate images using structural controls like edges (canny), depth, or pose guidance.
IDE Integration: Seamlessly integrate with Cursor and Windsurf/Codeium IDEs for AI-assisted tool invocation.
Customization: Configure generation settings including model, strength, and dimensions for precise outputs.
Automation: Streamline development workflows through CLI tools and IDE integrations.
Integrates with Windsurf/Codeium Cascade (Wave 3+), allowing users to access image generation tools through Cascade's MCP toolbar and AI capabilities
Integrates with Flux's image generation API, allowing for text-to-image generation, image-to-image transformation, inpainting, and advanced image controls like edge-based, depth-aware, and pose-guided generation
MCP Flux Studio
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.
Overview
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.
Features
Image Generation
Text-to-image generation with precise control
Multiple model support (flux.1.1-pro, flux.1-pro, flux.1-dev, flux.1.1-ultra)
Customizable aspect ratios and dimensions
Image Manipulation
Image-to-image transformation
Inpainting with customizable masks
Resolution upscaling and enhancement
Advanced Controls
Edge-based generation (canny)
Depth-aware generation
Pose-guided generation
IDE Integration
Full support for Cursor (v0.45.7+)
Compatible with Windsurf/Codeium Cascade (Wave 3+)
Seamless tool invocation through AI assistants
Quick Start
Prerequisites
Node.js 18+
Python 3.12+
Flux API key
Compatible IDE (Cursor or Windsurf)
Installation
Installing via Smithery
To install Flux Studio for Claude Desktop automatically via Smithery:
Manual Installation
Basic Configuration
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.
Documentation
Installation Guide - Comprehensive setup instructions
API Documentation - Detailed tool documentation
Example Usage - Real-world usage examples
Contributing Guidelines - How to contribute
IDE Integration
Cursor (v0.45.7+)
MCP Flux Studio integrates seamlessly with Cursor's AI assistant:
Configuration
Configure via Settings > Features > MCP
Supports both stdio and SSE connections
Environment variables can be set via wrapper scripts
Usage
Tools automatically available to Cursor's AI assistant
Tool invocations require user approval
Real-time feedback on generation progress
Windsurf/Codeium (Wave 3+)
Integration with Windsurf's Cascade AI:
Configuration
Edit
~/.codeium/windsurf/mcp_config.json
Supports process-based tool execution
Environment variables configured in JSON
Usage
Access tools through Cascade's MCP toolbar
Automatic tool discovery and loading
Integrated with Cascade's AI capabilities
For detailed IDE-specific setup instructions, see the Installation Guide.
Usage
The server provides the following tools:
generate
Generate an image from a text prompt.
img2img
Generate an image using another image as reference.
inpaint
Inpaint an image using a mask.
control
Generate an image using structural control.
Development
Project Structure
Running Tests
Building
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Model Context Protocol - The protocol specification
Flux API - The underlying image generation API
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A server that integrates Flux's advanced image generation and manipulation features into AI coding assistants, enabling seamless text-to-image and image control workflows in IDEs like Cursor and Windsurf.
Related Resources
Related MCP Servers
- -securityFlicense-qualityA server that connects AI coding assistants like Cursor and Cline to Apifox API definitions, allowing developers to implement API interfaces through natural language commands.Last updated -41241
- AsecurityAlicenseAqualityAn MCP server implementation that integrates with Minimax API to provide AI-powered image generation and text-to-speech functionality in editors like Windsurf and Cursor.Last updated -2651MIT License
- AsecurityAlicenseAqualityAn MCP server that enables AI assistants to generate images using Black Forest Labs' Flux model via Cloudflare Workers.Last updated -1MIT License
- -securityAlicense-qualityGives AI-powered coding tools like Cursor, Windsurf, and Cline access to Figma design files, enabling more accurate code generation directly from Figma designs.Last updated -106,929MIT License