Image Generation MCP Server
画像生成MCPサーバー
Together AI による高品質な画像をシームレスに生成する Model Context Protocol (MCP) サーバー。画像生成パラメータを指定するための標準化されたインターフェースを提供します。
特徴
Flux.1 Schnellモデルを活用した高品質画像生成
カスタマイズ可能な寸法(幅と高さ)のサポート
プロンプト検証と API の問題に対する明確なエラー処理
MCP対応クライアントとの簡単な統合
Related MCP server: MCP Replicate FLUX
インストール
クロードデスクトップ
MacOSの場合:
~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows の場合:
%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
マクピー
貢献
貢献を歓迎します!貢献するには、次の手順に従ってください。
リポジトリをフォークする
新しいブランチを作成する (
feature/my-new-feature)変更をコミットする
ブランチをフォークにプッシュする
プルリクエストを開く
大幅な変更については、まず問題を開いて、提案する変更について話し合ってください。
ライセンス
このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。
Available Tools
1 toolgenerate_imageC
Generate an image based on the text prompt, model, and optional dimensions
| Name | Required | Description | Default |
|---|---|---|---|
| height | No | Optional height for the image | |
| model | Yes | 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). | |
| prompt | Yes | The text prompt for image generation | |
| width | No | Optional width for the image |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the action ('Generate an image') but lacks details on permissions, rate limits, output format, or error handling. For a generative tool with zero annotation coverage, this is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core purpose without unnecessary details. Every word contributes to understanding the tool's function, making it appropriately concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of image generation, lack of annotations, and no output schema, the description is incomplete. It doesn't address behavioral aspects like response format, errors, or constraints, leaving significant gaps for the agent to infer usage.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all parameters. The description adds minimal value by listing inputs ('text prompt, model, and optional dimensions') but doesn't provide additional context beyond what the schema already specifies, aligning with the baseline for high coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose: 'Generate an image based on the text prompt, model, and optional dimensions.' It specifies the verb ('Generate') and resource ('image'), and mentions key inputs. However, with no sibling tools, it doesn't need to differentiate from alternatives, so a 5 is not warranted.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or constraints. It simply lists inputs without context about appropriate scenarios or limitations, leaving the agent with minimal usage direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.0- First observed
generate_image
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools. The tool's purpose is clearly defined and distinct by default.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The name 'generate_image' follows a clear verb_noun pattern.
A single tool for an image generation server feels thin and limited in scope. While it covers the core functionality, it lacks related operations like listing models, retrieving generated images, or managing parameters, making it borderline too few for the domain.
The server is severely incomplete for image generation. It only offers generation without any supporting tools for model selection, image retrieval, history management, or parameter tuning, which are common in such domains, leading to potential dead ends for agents.
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.
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables high-quality image generation using the Flux.1 Schnell model via Together AI with customizable parameters.143 npm10MIT
- FlicenseDqualityDmaintenanceA Model Context Protocol server that generates images using Replicate's FLUX model and stores them in Cloudflare R2, allowing users to create images through simple prompts and retrieve accessible URLs.111-
- AlicenseNot gradedqualityDmaintenanceA server that enables generating images through the Replicate API by calling the Flux Schnell model via the Model Context Protocol (MCP).3MIT
- FlicenseCqualityCmaintenanceAn MCP server that generates images based on text prompts using Black Forest Lab's FLUX model, allowing for customized image dimensions, prompt upsampling, safety settings, and batch generation.31-