Skip to main content
Glama

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

クイックスタート

  1. 前提条件

    • Node.js 18歳以上

    • Python 3.12以上

    • Flux APIキー

    • 互換性のある IDE (Cursor または Windsurf)

  2. インストール

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
  1. 基本構成

    BFL_API_KEY=your_flux_api_key
    FLUX_PATH=/path/to/flux/installation

IDE 固有の構成やトラブルシューティングを含む詳細なセットアップ手順については、インストール ガイドを参照してください。

ドキュメント

IDE統合

カーソル (v0.45.7+)

MCP Flux Studio は、Cursor の AI アシスタントとシームレスに統合されます。

  1. 構成

    • 設定 > 機能 > MCP から設定します。

    • stdioとSSE接続の両方をサポート

    • 環境変数はラッパースクリプト経由で設定できます

  2. 使用法

    • カーソルのAIアシスタントに自動的に利用できるツール

    • ツールの呼び出しにはユーザーの承認が必要です

    • 生成の進行状況に関するリアルタイムフィードバック

ウィンドサーフィン/コディウム(ウェーブ3以上)

Windsurf の Cascade AI との統合:

  1. 構成

    • ~/.codeium/windsurf/mcp_config.jsonを編集します。

    • プロセスベースのツール実行をサポート

    • JSONで設定された環境変数

  2. 使用法

    • 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ファイルを参照してください。

謝辞

Available Tools

4 tools
controlC

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

    B3.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    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.

    Naming Consistency3/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers