Gpt Image Mcp

io.github.youbotapi由 GitHub 账号 youbotapi 发布v0.2.2更新于 Oct 24, 2026

Generate and edit images with GPT Image 2.5 for $0.029 — free key, 50 credits, no card.

已验证STDIO仅桌面媒体与设计AI 与机器学习

概览

AI 生成的概览

一个本地 MCP 服务器,让助手通过 you.bot 网关根据文字提示生成新图片,并编辑已有图片,按张计费。

可以做什么
根据文字提示按指定宽高比生成图片,等待约 30–60 秒后在对话中直接显示,并按张计费。编辑可通过公开 URL 访问的已有图片,例如更换背景、增删物体或改变风格。免费查询剩余额度以及可生成的图片数量。可选地将每张生成的图片以 PNG 形式保存到指定文件夹。
适用场景
适合希望在 MCP 客户端内生成或编辑图片、又不想使用 OpenAI 账号,并愿意通过转售网关按张支付少量费用的场景。适用于快速制作插图、带文字的海报或标牌,以及对公开 URL 图片做简单修改。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 18 或更高版本。需要在 YOUBOT_API_KEY 环境变量中提供 you.bot 的 API 密钥,OpenAI 密钥无效。需要带额度的 you.bot 账号,并能访问 you.bot 网关的网络。可选设置 YOUBOT_IMAGE_DIR 以同时把图片保存到文件夹。
安装前请注意
每次生成或编辑都会消耗额度(约每张 0.029 美元),免费注册额度用完后会产生实际费用。YOUBOT_API_KEY 是付费凭证,应避免放入共享配置。提示词和图片 URL 会发送给第三方网关 you.bot,而非直接发送给 OpenAI。设置 YOUBOT_IMAGE_DIR 会把生成的文件写入本地磁盘。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

GPT Image 2.5 MCP Server

Generate and edit images with GPT Image 2.5 — OpenAI's most capable image model — directly inside Claude, Cursor, or any MCP client. $0.029 per image.

[npm] [license]

Ask Claude for a picture and get one back in the chat:

"A friendly robot painting a picture at an easel in a sunlit studio, warm morning light through a tall window, soft shadows, detailed illustration style, a small wooden sign on the easel reading 'GPT IMAGE 2.5'"

[Example output from GPT Image 2.5]

Generated with this server in 45 seconds for $0.029. Note that the text on the sign came out exactly as asked — GPT Image 2.5 is unusually good at rendering words inside an image.


⚠️ Read this first: the API key comes from you.bot, not OpenAI

This server reaches GPT Image 2.5 through you.bot, an API gateway that resells the model below OpenAI's own rate.

  • You need a you.bot API key. It starts with sk-live-.
  • An OpenAI key will not work, and you do not need an OpenAI account at all.
  • If you paste an OpenAI key by mistake, the server will tell you so by name rather than failing with a confusing 401.

Why people use it: signup gives you 50 free credits — about 17 images — with no credit card, so the server works the moment you paste the key in.


Setup

1. Get a free key (2 minutes)

  1. Sign up at https://you.bot — no credit card.
  2. You start with 50 credits ≈ 17 images.
  3. Create a key at https://you.bot/dashboard/api-keys and copy it (it begins with sk-live-).

2. Add the server to your client

Claude Desktop

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

json
{  "mcpServers": {    "gpt-image": {      "command": "npx",      "args": ["-y", "gpt-image-2-5-mcp"],      "env": {        "YOUBOT_API_KEY": "sk-live-your-key-from-you.bot"      }    }  }}

Restart Claude Desktop.

Claude Code
bash
claude mcp add gpt-image -e YOUBOT_API_KEY=sk-live-your-key -- npx -y gpt-image-2-5-mcp
Cursor

In ~/.cursor/mcp.json (or Settings → MCP → Add new server):

json
{  "mcpServers": {    "gpt-image": {      "command": "npx",      "args": ["-y", "gpt-image-2-5-mcp"],      "env": { "YOUBOT_API_KEY": "sk-live-your-key-from-you.bot" }    }  }}
Any other MCP client

Run npx -y gpt-image-2-5-mcp over stdio with YOUBOT_API_KEY in the environment.

3. Check it works

Ask your assistant: "check my image credits". You should see your balance and how many images it buys.


Tools

ToolWhat it doesCost
generate_imageMake an image from a text prompt2.9 credits ($0.029)
edit_imageChange an existing image from a public URL — swap a background, add or remove objects, restyle2.9 credits ($0.029)
check_creditsShow remaining balance and images leftfree

There is also a setup prompt that walks you through configuration if something isn't working.

Aspect ratios: 1:1 (default), 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 2:1, 1:2, 21:9

Output is fixed at 1024px (1K), which is what keeps every call at a flat $0.029. A generation typically takes 30–60 seconds; the server polls until the image is ready and then shows it to you inline.


What it costs

Per image$0.029
Free on signup50 credits ≈ 17 images, no card
Credit value1 credit = $0.01
ExpiryCredits never expire
Failed generationsRefunded automatically

The server tells you the cost after every image, and check_credits never spends anything.


Optional settings

Environment variableEffect
YOUBOT_API_KEYRequired. Your you.bot key (sk-live-…)
YOUBOT_IMAGE_DIRIf set, every generated image is also saved to this folder as a PNG

Tips for better images

GPT Image 2.5 rewards long, specific prompts. Describe subject, setting, lighting, composition and style instead of stacking keywords.

It also renders text inside images accurately — so if you want words on a poster or a sign, quote them exactly:

"A minimalist café sign reading 'OPEN DAILY 7AM' in clean sans-serif, warm morning light, shallow depth of field"

For edit_image, say what should change and what should stay:

"Replace the background with a snowy forest. Keep the subject, pose and lighting unchanged."


Troubleshooting

"No API key found" — YOUBOT_API_KEY isn't reaching the server. Check it's inside the env block of your MCP config, then fully restart the client.

"That key looks like an OpenAI API key" — exactly what it says. Get a key from https://you.bot instead; it starts with sk-live-.

"Out of credits" — each image is 2.9 credits. Top up at https://you.bot; credits never expire.

Nothing happens / tool isn't offered — confirm your client picked the server up (Claude Desktop lists it under the tools icon), and that you have Node 18 or newer.


Links

MIT licensed. Not affiliated with OpenAI; GPT Image 2.5 is accessed through the you.bot API.

来源:README.md,提交 f60654c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.2最新Sep 17, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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