Image Generation MCP Server

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.

Integrations

  • Enables image generation using the Flux.1 Schnell model from Together AI, allowing for customizable image dimensions and text-to-image creation based on descriptive prompts.

  • Supports integration with Claude Desktop on macOS, providing a configuration path for the MCP server in the MacOS application support directory.

画像生成MCPサーバー

Together AI による高品質な画像をシームレスに生成する Model Context Protocol (MCP) サーバー。画像生成パラメータを指定するための標準化されたインターフェースを提供します。

特徴

  • Flux.1 Schnellモデルを活用した高品質画像生成
  • カスタマイズ可能な寸法(幅と高さ)のサポート
  • プロンプト検証と API の問題に対する明確なエラー処理
  • MCP対応クライアントとの簡単な統合

インストール

クロードデスクトップ

  • MacOSの場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • Windows の場合: %APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "image-gen": { "command": "uv", "args": ["--directory", "/ABSOLUTE/PATH/TO/image-gen/", "run", "image-gen"], "env": { "TOGETHER_AI_API_KEY": "<API KEY>" } } } }

利用可能なツール

サーバーは 1 つのツールを実装します。

画像を生成する

指定されたテキスト プロンプトとオプションの寸法に基づいて画像を生成します。

入力スキーマ:

{ "prompt": { "type": "string", "description": "A descriptive prompt for generating the image (e.g., 'a futuristic cityscape at sunset')" }, "width": { "type": "integer", "description": "Width of the generated image in pixels (optional)" }, "height": { "type": "integer", "description": "Height of the generated image in pixels (optional)" }, "model": { "type": "string", "description": "The exact model name as it appears in Together AI. If incorrect, it will fallback to the default model (black-forest-labs/FLUX.1-schnell)." } }

前提条件

  • Python 3.12以上
  • httpx
  • マクピー

貢献

貢献を歓迎します!貢献するには、次の手順に従ってください。

  1. リポジトリをフォークする
  2. 新しいブランチを作成する ( feature/my-new-feature )
  3. 変更をコミットする
  4. ブランチをフォークにプッシュする
  5. プルリクエストを開く

大幅な変更については、まず問題を開いて、提案する変更について話し合ってください。

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Together AI を介して Flux.1 Schnell モデルを使用して高品質の画像の生成を可能にするモデル コンテキスト プロトコル サーバー。これにより、ユーザーはカスタマイズ可能な寸法のテキスト プロンプトから画像を作成できます。

  1. Features
    1. Installation
      1. Claude Desktop
    2. Available Tools
      1. generate_image
    3. Prerequisites
      1. Contributing
        1. License
          ID: o0137xiz62