
MCP Imagenate
io.github.mimo-3由 GitHub 帳號 mimo-3 發布v0.1.5更新於 Oct 24, 2026
MCP server for image generation using multiple providers (Google Gemini, OpenAI, BFL FLUX)
概覽
讓助理透過多個託管服務商(Google Gemini、OpenAI、BFL FLUX、Reve)產生圖片與短影片,並把檔案存到本機。
- 可以做什麼
- 提供 generate_image 工具,接受提示詞、模型、解析度、長寬比、背景模式與選用輸入圖片,把結果寫入指定目錄並回傳儲存的檔案路徑。另有 generate_video 工具,透過 Google Gemini Omni 產生帶音訊的 3 至 10 秒 mp4 短片,並可回傳 interactionId 來延長片段。模型依服務商分組,只有 OpenAI gpt-image 模型能回傳透明背景。
- 適用情境
- 適合助理在任務中需要產生圖片或短片的場景,例如插圖、示意圖,或用於簡報的去背素材,且你已持有至少一個受支援服務商的金鑰。也可作為函式庫嵌入其他宿主,把圖片產生暴露為它自己的工具。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行(npx mcp-imagenate 或全域安裝),需要 Node.js 20+。必須至少設定一個服務商 API 金鑰:GEMINI_API_KEY 或 NANO_BANANA_API_KEY、OPENAI_API_KEY 或 GPT_IMAGE_API_KEY、BFL_API_KEY,或 REVE_API_KEY 或 REVE_API_TOKEN。選用的 NANO_BANANA_OUTPUT_DIR 指定輸出基礎目錄。需要連線至服務商 API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 MCP Imagenate,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-imagenate
An MCP server for image generation using multiple providers: Google Gemini, OpenAI (gpt-image), BFL FLUX, and Reve — plus short video clips through Google Gemini Omni.
Providers & Models
Google Gemini (Nano Banana)
Google Gemini Omni (video)
Uses the same GEMINI_API_KEY. Exposed through a separate generate_video tool —
see Tool: generate_video.
OpenAI
These are the only models here that can return a transparent background — see Transparent backgrounds.
BFL FLUX
Reve
This provider calls Reve's v2/image/create endpoint. latest is the only version
alias v2 exposes, and it is what the response reports back, so there is no dated
build to pin to. Do not confuse it with the v1 endpoints, which still serve the
older reve-create@20250915 model.
Things worth knowing before sending Reve a prompt written for another provider:
resolutionis ignored — Reve has no size parameter and returns its own large output. Exact dimensions vary between requests:16:9came back as both 5408x3072 and 5376x3072, and3:4as 3456x4800.- Prompts are capped at 4,000 characters, and this provider rejects longer ones before spending a request.
inputImagesbecome v2references. Reve accepts at most eight; a longer list is rejected before any of the files are read.- The saved file's extension follows the format Reve actually returned (PNG, JPEG or WebP), which is detected from the bytes rather than assumed.
- A generation costs 150 credits (about $0.20) and typically takes 40-80 seconds. Give any proxy or job runner in front of it a timeout of at least 120 seconds.
Requirements
- Node.js 22+
- At least one provider API key
Installation
Or install globally:
Setup
Set API keys for the providers you want to use:
Claude Desktop
Add to your claude_desktop_config.json:
Environment Variables
* At least one provider API key must be set.
Tool: generate_image
Parameters
Supported aspect ratios
1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9
Transparent backgrounds
background: "transparent" saves a PNG with an alpha channel, which is useful for
cutting out a subject to place on a slide or over another image.
Only the OpenAI gpt-image models can do this. Asking any other model
(nano-banana-*, flux-2-*, reve-image) for a transparent background fails
with an error rather than quietly returning an opaque image — the request is
rejected before it is sent, so nothing is spent on it. Writing "transparent
background" into the prompt does not help either: those providers have no
transparency mode at all.
"opaque" forces a filled background on every provider that reads the field, and
"auto" — the default — leaves the choice to the model, which is what this server
has always done.
Response
Returns a JSON object:
descriptionis only present whenmodeis"image_and_text".
Tool: generate_video
Available when a Google key is configured. Generates one clip with audio and saves it as an mp4.
Parameters
Things worth knowing:
- A single request is capped at 10 s by the model. To go longer, pass the
returned
interactionIdback aspreviousInteractionId; each extension adds up to 10 s, and the whole clip is returned each time. - Text in the prompt is rendered on screen as written, including non-Latin scripts, though Google only documents English as fully supported.
- Clips are fetched through Google's file endpoint rather than inlined in the JSON response, as the API documentation recommends above 4 MB. Expect one extra request per generation.
- 720p costs about $0.10 per second of output; there is no free tier for this model.
Response
descriptionis only present when the model returns text alongside the clip.
Use as a library
Besides the standalone MCP server, this package can be embedded in another host — an app, or another MCP server that wants to expose image generation as its own tool.
generateImageToDisk takes the same options as the tool, so background: "transparent" throws for a model that cannot deliver an alpha channel. Check
registry.resolve(model).supportsTransparentBackground first if the model is not
one you chose yourself.
The library entry point never reads process.env, writes to stdio, or exits the
process. To read keys from the conventional environment variables anyway, use the
keysFromEnv() helper. The standalone server is available at mcp-imagenate/server.
Security
- Path sandboxing: When
NANO_BANANA_OUTPUT_DIRis set, both output and input image paths are sandboxed within this directory. Symlinks that resolve outside the sandbox are rejected. For library embedders this is opt-in viaoutputBaseDir, since the host usually controls which paths reach the call. - Input validation: Input images are validated for format (PNG/JPEG/WEBP/GIF) and size (max 20 MB). Video durations outside the model's range are rejected before any request is sent.
- API key validation: The server exits immediately if no API keys are configured. The library reports this as an empty registry instead, leaving the decision to the host.
License
MIT
來源:README.md,提交 0c34606
工具
0版本歷史
1- v0.1.5最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分