Imagegen Mcp

io.github.forgemeshlabs由 GitHub 账号 forgemeshlabs 发布v2.1.1更新于 Nov 3, 2026

AI image generation MCP — generate, bg removal, 4x upscale, or full pro pipeline. USDC/Base.

已验证STDIO仅桌面金融媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,让助手生成 AI 图像、去背景、4 倍放大并按身份保持预设变换照片,按张以 Base 上的 USDC 付费。

可以做什么
  • 按文本提示生成图像,可选多种画幅比例,并可附加去背景或 4 倍高清放大,或两者兼具的专业档
  • 列出 58 个针对人物或宠物的身份保持变换预设
  • 用指定预设对公开图片链接中的照片进行变换,同时保持主体身份
  • 每次付费调用返回图片链接与任务状态
适用场景
适合希望助手按需生成或编辑图片、又不想申请 API 密钥或订阅,并愿意从专用钱包按张支付几美分到不足一美元 USDC 的场景。
运行要求
通过 npx(Node.js)以 stdio 在本地运行,需在客户端 MCP 配置中登记。需要环境变量 WALLET_PRIVATE_KEY,即持有 USDC 的 Base 主网钱包私钥;无需其他 API 密钥。需要能访问 ForgeMesh 图像生成服务的网络。
安装前请注意
服务器会用你提供的钱包私钥自动签名并广播 USDC 转账,因此每次工具调用都会花真实资金;请使用专用的低余额钱包,切勿使用主钱包。提示词和图片链接会发送给第三方服务,并受其安全过滤约束。只提交你有权使用的图片,且不得包含未成年人。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Imagegen Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

forgemesh-imagegen

[M8ven Verified] [mcpservers.org]

MCP server for AI image generation. Generate images, remove backgrounds, upscale to 4x HD — all from a single MCP tool call. Payments handled automatically in USDC on Base mainnet via x402. No API key. No subscription. Pay per image.

Part of the ForgeMesh ecosystem — infrastructure for autonomous agents.


Tools

ToolWhat it doesPrice
generate_imageStandard text-to-image generation$0.25 USDC
generate_cleanGenerate + background removal$0.35 USDC
generate_hdPremium generate + 4x upscale (HD)$0.50 USDC
generate_proTop-tier generate + bg removal + 4x upscale$0.75 USDC
list_presetsList the 58 identity-preserving transform presets (person or pet)$0.005 USDC
transform_imageTransform a photo with a preset while keeping the subject's identity (FLUX Kontext Max)$0.75 USDC

The four generate_* tools accept prompt (required) and aspect (optional: 1:1, 16:9, 9:16, 4:3). transform_image takes a public image_url, a preset id from list_presets, an optional aspect (match_input_image default, or 1:1, 16:9, 9:16, 4:3, 3:4) and wait (default true: polls the free status URL until the PNG is ready, usually 15-30s). Submit only images you have rights to; no minors; the provider safety filter applies.


Install

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "forgemesh-imagegen": {      "command": "npx",      "args": ["-y", "forgemesh-imagegen"],      "env": {        "WALLET_PRIVATE_KEY": "0x..."      }    }  }}

Claude Code

bash
claude mcp add forgemesh-imagegen -- npx -y forgemesh-imagegen

Then set the env var:

bash
export WALLET_PRIVATE_KEY=0x...

Requirements

  • A dedicated, low-balance Base mainnet wallet private key with USDC (never your primary wallet: the server signs USDC transfers autonomously)
  • $1 USDC ≈ 4 base images, 2 clean, 2 HD, or 1 pro, or 1 transform
  • No other API keys needed

Get USDC on Base: Coinbase → Bridge to Base, or buy directly on Base.


Example usage

generate_image(prompt="a red panda in a spacesuit", aspect="1:1")→ { image_url: "https://...", prompt: "...", aspect: "1:1", tier: "image" }
generate_clean(prompt="a product photo of a ceramic mug")→ { image_url: "https://...", tier: "clean" }   // transparent PNG
generate_hd(prompt="a futuristic city at night, cyberpunk style")→ { image_url: "https://...", tier: "hd" }       // 4096x4096
generate_pro(prompt="a logo mark, geometric eagle")→ { image_url: "https://...", tier: "pro" }      // transparent + HD
list_presets()→ { count: 58, presets: [{ id: "pet-royal", title: "Pet Royalty", subject: "pet", ... }, ...] }
transform_image(image_url="https://example.com/my-dog.jpg", preset="pet-royal")→ { job_id: "...", status: "succeeded", preset: "pet-royal", image_url: "https://..." }

How it works

Each tool call makes an HTTP request to the ForgeMesh imagegen service gated by the x402 protocol. If payment is required, the MCP automatically signs and broadcasts a USDC transfer from your wallet on Base mainnet — then retries the request. You see the result, your wallet is charged, no manual steps.

  • Network: Base mainnet (eip155:8453)
  • Token: USDC
  • Protocol: x402
  • The server only ever connects to https://imagegen.coinopai.com; every request has a 60s timeout and a 1 MB response cap; no third-party payment routers or affiliate hops.

Links


License

MIT © ForgeMesh Labs

来源:README.md,提交 49e5a01

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:服务器未能启动。

版本历史

3
  1. v2.1.1最新Nov 3, 2026
  2. v2.1.0Oct 8, 2026
  3. v2.0.2Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分