FLUXイメージジェネレーターMCPサーバー
Black Forest LabのFLUXモデルを用いて画像を生成するためのMCP(Model Context Protocol)サーバー。最新のMCP SDK(v1.7.0)を使用しています。
特徴
- テキストプロンプトに基づいて画像を生成する
- 画像のサイズ、プロンプトのアップサンプリング、および安全設定をカスタマイズします
- 生成された画像をローカルに保存する
- 複数のプロンプトからのバッチ画像生成
前提条件
- Node.js (v18.0.0 以上)
- Black Forest Lab API キー ( https://api.bfl.mlで取得)
インストール
ソースから
- このリポジトリをクローンする
- 依存関係をインストールします:
.env.example
に基づいて.env
ファイルを作成し、Black Forest Lab API キーを追加します。
- プロジェクトをビルドします。
npmの使用
使用法
MCPサーバーの起動
次のコマンドでサーバーを起動します。
自動再コンパイルを使用した開発の場合:
MCPクライアントとの統合
このサーバーを MCP クライアント (Claude など) で使用するには、クライアントの構成に以下を追加します。
利用可能なツール
画像を生成する
カスタマイズ可能な設定でテキスト プロンプトに基づいて画像を生成します。
パラメータ:
prompt
(文字列、必須): 生成する画像のテキスト説明width
(数値、オプション、デフォルト:1024):画像の幅(ピクセル単位)height
(数値、オプション、デフォルト:1024):画像の高さ(ピクセル単位)promptUpsampling
(ブール値、オプション、デフォルト: false): プロンプトをアップサンプリングして詳細を強調しますseed
(数値、オプション):再現性のある結果を得るためのランダムシードsafetyTolerance
(数値、オプション、デフォルト:3):コンテンツモデレーションの許容範囲(1~5)
例:
クイックイメージ
デフォルト設定で画像を素早く生成するための簡素化されたツール。
パラメータ:
prompt
(文字列、必須): 生成する画像のテキスト説明
例:
バッチ画像生成
プロンプトのリストから複数の画像を生成します。
パラメータ:
prompts
(文字列の配列、必須): テキストプロンプトのリスト(最大10個)width
(数値、オプション、デフォルト:1024):画像の幅height
(数値、オプション、デフォルト:1024):画像の高さ
例:
出力形式
すべてのツールは次の形式で応答を返します。
エラーの場合:
バッチ ツールは次を返します:
ライセンス
マサチューセッツ工科大学
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Black Forest Lab の FLUX モデルを使用してテキスト プロンプトに基づいて画像を生成する MCP サーバー。カスタマイズされた画像サイズ、プロンプトのアップサンプリング、安全性の設定、バッチ生成が可能です。
Related MCP Servers
- AsecurityAlicenseAqualityAn intelligent MCP server with a fully automated batch pipeline for web-ready images. Features include noise reduction, auto levels/curves, JPEG artifact removal, 4K resizing, smart sharpening with shadow/highlight enhancement, and advanced WebP conversion.Last updated -15JavaScriptMIT License
- AsecurityFlicenseAqualityEnables users to generate images from text prompts using Replicate's model, with configurable parameters and full MCP protocol compliance.Last updated -163TypeScript
- AsecurityAlicenseAqualityA MCP server that enables Claude and other MCP-compatible assistants to generate images from text prompts using Together AI's image generation models.Last updated -12TypeScriptMIT License
- -securityAlicense-qualityA MCP server that integrates with Cursor IDE to generate images based on text descriptions using JiMeng AI, allowing users to create and save custom images directly within their development environment.Last updated -82PythonMIT License