MCP Flux Studio
MCP フラックススタジオ
Flux の高度な画像生成機能を AI コーディングアシスタントに提供する、強力なモデルコンテキストプロトコル (MCP) サーバーです。このサーバーにより、Flux の画像生成、操作、制御機能を Cursor および Windsurf (Codeium) IDE に直接統合できます。
概要
MCP Flux Studio は、AI コーディング アシスタントと Flux の強力な画像生成 API 間のギャップを埋め、画像生成機能を開発ワークフローに直接シームレスに統合できるようにします。
特徴
画像生成
正確な制御によるテキストから画像への生成
複数のモデルのサポート (flux.1.1-pro、flux.1-pro、flux.1-dev、flux.1.1-ultra)
カスタマイズ可能なアスペクト比と寸法
画像操作
画像から画像への変換
カスタマイズ可能なマスクによるインペインティング
解像度のアップスケーリングと強化
高度なコントロール
エッジベースの生成(Canny)
深度を考慮した生成
ポーズガイド生成
IDE統合
カーソルの完全サポート (v0.45.7+)
Windsurf/Codeium Cascade (Wave 3+) と互換性あり
AIアシスタントによるシームレスなツール呼び出し
Related MCP server: Flux Schnell MCP Server
クイックスタート
前提条件
Node.js 18歳以上
Python 3.12以上
Flux APIキー
互換性のある IDE (Cursor または Windsurf)
インストール
Smithery経由でインストール
Smithery経由で Flux Studio for Claude Desktop を自動的にインストールするには:
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
IDE 固有の構成やトラブルシューティングを含む詳細なセットアップ手順については、インストール ガイドを参照してください。
ドキュメント
IDE統合
カーソル (v0.45.7+)
MCP Flux Studio は、Cursor の AI アシスタントとシームレスに統合されます。
構成
設定 > 機能 > MCP から設定します。
stdioとSSE接続の両方をサポート
環境変数はラッパースクリプト経由で設定できます
使用法
カーソルのAIアシスタントに自動的に利用できるツール
ツールの呼び出しにはユーザーの承認が必要です
生成の進行状況に関するリアルタイムフィードバック
ウィンドサーフィン/コディウム(ウェーブ3以上)
Windsurf の Cascade AI との統合:
構成
~/.codeium/windsurf/mcp_config.jsonを編集します。プロセスベースのツール実行をサポート
JSONで設定された環境変数
使用法
Cascade の MCP ツールバーからツールにアクセスします
自動ツール検出と読み込み
CascadeのAI機能と統合
IDE 固有の詳細なセットアップ手順については、インストール ガイドを参照してください。
使用法
サーバーは次のツールを提供します。
生成する
テキストプロンプトから画像を生成します。
{
"prompt": "A photorealistic cat",
"model": "flux.1.1-pro",
"aspect_ratio": "1:1",
"output": "generated.jpg"
}画像2画像
別の画像を参照として使用して画像を生成します。
{
"image": "input.jpg",
"prompt": "Convert to oil painting",
"model": "flux.1.1-pro",
"strength": 0.85,
"output": "output.jpg",
"name": "oil_painting"
}インペイント
マスクを使用して画像を修復します。
{
"image": "input.jpg",
"prompt": "Add flowers",
"mask_shape": "circle",
"position": "center",
"output": "inpainted.jpg"
}コントロール
構造制御を使用して画像を生成します。
{
"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貢献
行動規範とプル リクエストの送信プロセスの詳細については、 CONTRIBUTING.md をお読みください。
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
謝辞
モデルコンテキストプロトコル- プロトコル仕様
Flux API - 基盤となる画像生成API
Available Tools
4 toolscontrolC
Generate an image using structural control
Inputs: type (required), image (required), prompt (required), steps, +2 more.
generateC
Generate an image from a text prompt
Inputs: prompt (required), model, aspect_ratio, width, +2 more.
img2imgC
Generate an image using another image as reference
Inputs: image (required), prompt (required), name (required), model, +4 more.
inpaintC
Inpaint an image using a mask
Inputs: image (required), prompt (required), mask_shape, position, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose with no overlap: 'control' uses structural guidance, 'generate' creates from text, 'img2img' references an image, and 'inpaint' modifies with a mask. The descriptions make it easy to differentiate between structural generation, text-to-image, image-to-image, and inpainting workflows.
The naming is mixed: 'control' and 'generate' are verbs only, while 'img2img' and 'inpaint' are compound terms. There's no consistent pattern like verb_noun, but the names are still readable and descriptive of their functions, avoiding chaotic conventions.
With 4 tools, this is well-scoped for an image generation server. Each tool earns its place by covering distinct aspects of image creation and manipulation, providing a focused set without being too thin or overwhelming for the domain.
The toolset covers core image generation workflows: text-to-image, image-to-image, inpainting, and controlled generation. A minor gap might be the lack of tools for post-processing or batch operations, but the essential CRUD-like operations for image creation are well-represented.
Maintenance
Related MCP Connectors
MCP server for Flux AI image generation
Official FLUX MCP server. Generate, edit, vary, and browse images from Black Forest Labs.
Image and video AI tools and your own pipelines, run from any AI assistant.
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models. Up to 4 images per call, SVG vectorization, background removal, upscaling and image-to-video. Remote MCP with OAuth, no API keys.
Related MCP Servers
- AlicenseBqualityBmaintenanceA Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.155 npm10MIT
- AlicenseNot gradedqualityDmaintenanceA server that enables generating images through the Replicate API by calling the Flux Schnell model via the Model Context Protocol (MCP).2MIT
- AlicenseBqualityDmaintenanceAn MCP server that enables AI assistants to generate images using Black Forest Labs' Flux model via Cloudflare Workers.1MIT
- AlicenseAqualityBmaintenanceAI image generation with 6 Flux models (flux-dev, flux-pro, flux-kontext) including context-aware image editing, async task management, and built-in model guide.7264 PyPI4MIT