FG

fujc683/gpt-image-2-6-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

102 stars 0 forks 质量 71 趋势 48NOASSERTION

通过MCP使用来自克洛德的GPT图像2.6,Cursor和VS代码.

概览

将GPT Image 2.6作为MCP工具进行曝光,因此代理可以自行生成图像. 一个MCP(模式上下文协议)服务器,将GPT Image 2.6曝光给克洛德桌面,克洛德代码,Cursor和任何其他MCP相容客户端. - 代理商决定何时调用模型, 不调用复制- 复制循环 - 每调用成本返回, 因此代理商可以解释预算 - 工程跨客户端( Claude, Cursor, VS Code) 带有一个配置 服务器为~120行:每个端点有一个MCP工具定义,外加投票. 参考执行情况见文件Docs/。 - 快速库: gpt-image-2-6-prompts - 更多图像模型:真棒快速收藏

概述(AI 翻译)

将 GPT 图像 2.6 曝光为 MCP 工具,所以代理可以自行生成图像.

在APIMart上尝试 GPT 图像 2.6 **

https://gola.apimart.ai/k-EXCk8v

得到 API 密钥

– – . . .

∮这是什么∮

一个将 GPT 图像 2.6 曝光给 Claude 的 MCP( 模式背景协议) 服务器 桌面,克洛德代码,Cursor和任何其他MCP相容客户端.

□ 工具已曝光

工具 参数 返回 |.

list_models 可用图像模型.

□ 实例会话

□ 为什么MCP代替剧本

  • 代理商决定何时呼叫模型,没有复制-复制循环
  • 费用是每个电话退回的,所以代理可以解释预算
  • 工作跨客户端(Claude、Cursor、VS代码),配置一个

□ 自己建造它

服务器为~120行:每个端点有一个MCP工具定义,外加投票. 参考执行见docs/。

– – . . .

□ 相关

  • 快速库:gpt-image-2-6-timps
  • 更多图像模型:惊人的即时收藏

□ 许可证

CC BY 4.0 (英语)

本页由 AI 翻译,技术细节请以原文为准。

README

GPT Image 2.6 MCP Server — use it from Claude, Cursor, VS Code

Expose GPT Image 2.6 as MCP tools so agents can generate images on their own.

👉 Try GPT Image 2.6 on APIMart

https://gola.apimart.ai/k-EXCk8v

💰 Pricing · 🔑 Get an API key


What this is

An MCP (Model Context Protocol) server that exposes GPT Image 2.6 to Claude Desktop, Claude Code, Cursor and any other MCP-compatible client.

// claude_desktop_config.json
{
  "mcpServers": {
    "apimart-image": {
      "command": "npx",
      "args": ["-y", "@apimart/mcp-image"],
      "env": { "APIMART_API_KEY": "YOUR_KEY" }
    }
  }
}

Tools exposed

Tool Arguments Returns
generate_image prompt, model?, size? image URL + cost
list_models — available image models
get_task task_id status + result

Example session

you:  draw a minimal poster for a coffee shop called "Morning Ritual"
claude → generate_image(prompt="minimal poster, serif headline 'Morning Ritual' ...")
       ← https://.../out.jpg  (cost $0.0198)

Why MCP instead of a script

  • The agent decides when to call the model, no copy-paste loop
  • Cost is returned per call, so the agent can reason about budget
  • Works across clients (Claude, Cursor, VS Code) with one config

Build it yourself

The server is ~120 lines: one MCP tool definition per endpoint, plus polling. See docs/ for the reference implementation.


License

CC BY 4.0

在 GitHub 查看完整 README

安装

npx -y @apimart/mcp-image
新手?先看 mcpskill.org 教程 →

配置

// claude_desktop_config.json { "mcpServers": { "apimart-image": { "command": "npx", "args": ["-y", "@apimart/mcp-image"], "env": { "APIMART_API_KEY": "YOUR_KEY" } } } }