原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

OpenAI Image

作者:mindstone版本 0.4.0i★ –i在你的电脑上运行
注册名称io.github.mindstone/mcp-server-openai-image

安装

概览

作者提供的说明(英文原文)

OpenAI image generation MCP server for Model Context Protocol hosts

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 设计、图片与音频
  • 你需要填写:OPENAI_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: OPENAI_API_KEY, MCP_WORKSPACE_PATH, OPENAI_IMAGE_MODEL, OPENAI_IMAGE_REQUEST_TIMEOUT_MS, MCP_ALLOWED_SYMLINK_ROOTS, MCP_HTTP_PORT

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "openai-image": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-openai-image"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "MCP_WORKSPACE_PATH": "your-value",
        "OPENAI_IMAGE_MODEL": "your-value",
        "OPENAI_IMAGE_REQUEST_TIMEOUT_MS": "your-value",
        "MCP_ALLOWED_SYMLINK_ROOTS": "your-value",
        "MCP_HTTP_PORT": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add openai-image --env OPENAI_API_KEY=your-value --env MCP_WORKSPACE_PATH=your-value --env OPENAI_IMAGE_MODEL=your-value --env OPENAI_IMAGE_REQUEST_TIMEOUT_MS=your-value --env MCP_ALLOWED_SYMLINK_ROOTS=your-value --env MCP_HTTP_PORT=your-value -- npx -y @mindstone/mcp-server-openai-image

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "openai-image": {
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-openai-image"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "MCP_WORKSPACE_PATH": "your-value",
        "OPENAI_IMAGE_MODEL": "your-value",
        "OPENAI_IMAGE_REQUEST_TIMEOUT_MS": "your-value",
        "MCP_ALLOWED_SYMLINK_ROOTS": "your-value",
        "MCP_HTTP_PORT": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "openai-image": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mindstone/mcp-server-openai-image"
      ],
      "env": {
        "OPENAI_API_KEY": "your-value",
        "MCP_WORKSPACE_PATH": "your-value",
        "OPENAI_IMAGE_MODEL": "your-value",
        "OPENAI_IMAGE_REQUEST_TIMEOUT_MS": "your-value",
        "MCP_ALLOWED_SYMLINK_ROOTS": "your-value",
        "MCP_HTTP_PORT": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • OPENAI_API_KEY 机密 必填 env
    OpenAI API key with image generation access
  • MCP_WORKSPACE_PATH env
    Workspace directory for saving generated images
  • OPENAI_IMAGE_MODEL env
    Override the default OpenAI image model identifier
  • OPENAI_IMAGE_REQUEST_TIMEOUT_MS env
    Outbound HTTP request timeout in milliseconds (max 1800000)
  • MCP_ALLOWED_SYMLINK_ROOTS env
    JSON array of absolute paths the connector may read through (and write generated images through) in-workspace symlinks that resolve into them. Mirrors the host's built-in file-tool declared-Space roo…
  • MCP_HTTP_PORT env
    When set, serve MCP over HTTP on this port bound to 127.0.0.1 (loopback only) instead of stdio. Intended for host-managed local deployments; stdio hosts omit it.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mindstone 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“设计、图片与音频”中的其他服务器比较i

  • 星标数多于此分类中其他 2202 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2202 个服务器的 88% 更新
  • 基础检查结果等于或优于此分类中其他 2202 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

OpenAI Image 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:OPENAI_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.4.0)于4天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Figma Context MCP, Claude Real Video, Figma MCP Server

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Figma Context MCP

作者:GLips

Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.

在你的电脑上运行★ 16,165MIT5个月前更新
安装

Claude Real Video

作者:HUANGCHIHHUNGLeo

Let any LLM watch a video locally — and search everything it has ever watched.

在你的电脑上运行★ 2,284MIT2个月前更新
安装

Figma MCP Server

作者:figma

The Figma MCP server brings Figma design context directly into your AI workflow.

在云端运行★ 2,15213个月前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@mindstone/mcp-server-openai-image

OpenAI image generation MCP server — text-to-image and image edits via OpenAI's gpt-image-2.5 models, with sharp text rendering, multilingual prompts, four quality levels, and three aspect ratios.

*Workspace-sandboxed OpenAI image MCP. Generated PNGs land under MCP_WORKSPACE_PATH only, every error returns a structured recovery code, and the API key is hard-pinned to api.openai.com.*

Status

  • Version: 0.4.0 · npm
  • Auth: API key (OPENAI_API_KEY)
  • Tools: 2 (image generation, image editing)
  • Surface: cloud-api
  • Machine-readable: STATUS.json

Why this exists

When we started this connector in early 2026, OpenAI had not published an MCP server for its image-generation surface and the available community options either embedded their own download daemons or wrote generated bytes to unconstrained paths on the host. We wrote our own so that an MCP host could call generate_image and edit_image with the same sandboxing, recovery-contract, and key-handling guarantees we apply across the rest of this repository — saved PNGs land under a realpath-fenced workspace, every error is returned as a structured { ok, code, error, resolution } object, and the OpenAI API key is hard-pinned to https://api.openai.com so an attacker-controlled environment cannot redirect prompts, image bytes, or the bearer token elsewhere.

Example interaction

"Generate a 1024x1536 portrait of a Belgian draft horse pulling a brewery cart in soft morning light."

Tools the host calls:

  1. generate_image — submits the prompt with size: portrait, quality: high, count: 1.

Response (trimmed):

{

"ok": true, "saved_paths": [ "/Users/me/workspace/Chief-of-Staff/generated-images/20260519-1530-a1b2c3.png" ], "model": "gpt-image-2.5-sunburst", "size": "1024x1536", "quality": "high" }

On failure:

{

"ok": false, "code": "WORKSPACE_FENCE_VIOLATION", "error": "Reference image is outside your workspace and folders linked as Spaces. Path: /linked.png. Workspace: /Users/me/workspace.", "resolution": "Move or copy the file into your workspace or a folder linked as a Space, then try again." }

Requirements

  • Node.js 20.3+
  • npm
  • An OpenAI API key with image generation access

One-click install

After clicking the button, your host will prompt you to fill: OPENAI_API_KEY, OPENAI_IMAGE_MODEL, OPENAI_IMAGE_REQUEST_TIMEOUT_MS.

Manual config for Claude Desktop / Claude Code / Goose / Continue.dev (OpenAI Image)

{

"mcpServers": { "OpenAI Image": { "command": "npx", "args": [ "-y", "@mindstone/mcp-server-openai-image" ], "env": { "OPENAI_API_KEY": "", "OPENAI_IMAGE_MODEL": "gpt-image-2.5-sunburst", "OPENAI_IMAGE_REQUEST_TIMEOUT_MS": "180000" } } } }

Quick Start

Install & build
cd <path-to-repo>/connectors/openai-image

npm install npm run build

npx (once published)
npx -y @mindstone/mcp-server-openai-image
Local
node dist/index.js

Configuration

Environment variables
  • OPENAI_API_KEY — OpenAI API key. Required for tool calls; if absent, the server starts in *unconfigured* mode and each tool call returns a structured NOT_CONFIGURED response instead of crashing.
  • MCP_WORKSPACE_PATH — optional workspace path. Generated images are written under /Chief-of-Staff/generated-images/. Defaults to ~/Pictures/MCP-Generated-Images/ when unset.
  • OPENAI_IMAGE_MODEL — optional model override. Defaults to gpt-image-2.5-sunburst. The known list now also includes gpt-image-2.6-sunburst and gpt-image-2.6-flare; gpt-image-2.5-flare is faster at the same token price. The full known list lives in src/models.ts; other values are passed through to OpenAI and log a warning.
  • OPENAI_IMAGE_REQUEST_TIMEOUT_MS — optional override (positive integer ms, max 30 min) for the OpenAI image API timeout. Default: 180000 (3 min). Sized for quality: 'high' generation, which OpenAI documents as taking up to ~2 min for complex prompts; lower for tighter bounds.
  • MCP_ALLOWED_SYMLINK_ROOTS — optional JSON array of absolute paths. The connector reads (and writes generated images) through in-workspace symlinks whose canonical targets land inside MCP_WORKSPACE_PATH or one of these declared roots — the same roots the host's built-in file tools trust for declared Spaces. Fail-closed: if the value is missing, empty, malformed JSON, not an array, or any entry is non-string / empty / relative, the whole value is rejected and the connector falls back to strict workspace-only containment with one structured stderr warning. Standalone OSS users omit it; Rebel's host injects it automatically from your declared Spaces.
  • MCP_HTTP_PORT — optional. When set, the server speaks MCP over HTTP on this port bound to 127.0.0.1 (loopback only, non-loopback Host headers are rejected) instead of stdio. Intended for host-managed local deployments; stdio hosts omit it.

Host configuration examples

Claude Desktop / Cursor
{

"mcpServers": { "OpenAIImage": { "command": "npx", "args": ["-y", "@mindstone/mcp-server-openai-image"], "env": { "OPENAI_API_KEY": "your-openai-api-key" } } } }

Mindstone Rebel

Use the catalog entry in Rebel's connector picker. Rebel injects OPENAI_API_KEY from your configured provider keys and points MCP_WORKSPACE_PATH at your active workspace.

Local development (no npm publish needed)
{

"mcpServers": { "OpenAIImage": { "command": "node", "args": [" /connectors/openai-image/dist/index.js"], "env": { "OPENAI_API_KEY": "your-openai-api-key", "MCP_WORKSPACE_PATH": "/absolute/path/to/workspace" } } } }

Tools (2)

generate_image

Inputs:

  • prompt (string, required) — text description of the image to generate.
  • size (square | portrait | landscape, optional) — 1024x1024, 1024x1536, 1536x1024.
  • quality (low | medium | high | auto, optional) — defaults to high. Medium is usually about 10-20 seconds and $0.01-0.02; high usually takes 20-60 seconds and costs about $0.05-0.08 (measured on gpt-image-2.5). Lower quality is dramatically cheaper.
  • count (integer 1–8, optional) — defaults to 1. Cost scales linearly with count.
  • moderation (auto | low, optional) — content moderation strictness, defaults to auto. low weakens OpenAI's content filtering on your account and is passed through like any other tool input; invocation gating is the host's tool-approval layer's job.
  • output_format (png | jpeg | webp, optional) — output file format, defaults to png. The saved filename extension and inline preview MIME type follow the chosen format (.png / .jpg / .webp).
  • output_compression (integer 0–100, optional) — compression level; only valid with jpeg or webp output. Combining it with png fails fast with a structured INVALID_INPUT error before any API call.
  • background (transparent | opaque | auto, optional) — background style. transparent produces a cutout with an alpha channel and requires png/webp output plus a transparency-capable model. Both gpt-image-2.5 models (the default included) support it; gpt-image-2 and its dated snapshots reject transparent backgrounds upstream, so with that override the tool fails fast with INVALID_INPUT and a resolution pointing at OPENAI_IMAGE_MODEL=gpt-image-2.5-sunburst. Unknown model overrides are passed through to upstream validation, matching the connector's existing OPENAI_IMAGE_MODEL philosophy.

Returns a text content block with the saved path(s) plus up to 5 inline image content blocks. On failure, returns a structured { ok: false, code, error, resolution } response. The tool is annotated destructiveHint: true, openWorldHint: true, idempotentHint: false.

edit_image

Inputs:

  • prompt (string, required) — what to change about the input images.
  • image_paths (array of 1–4 absolute file paths, required) — source images. Each path is validated: it must resolve lexically inside MCP_WORKSPACE_PATH, and its canonical realpath must land inside the canonical workspace or one of the declared roots in MCP_ALLOWED_SYMLINK_ROOTS (matching the host's built-in file-tool containment). Paths outside both are rejected with WORKSPACE_FENCE_VIOLATION before any read.
  • mask_path (PNG path, optional) — alpha-channel mask indicating which area to edit.
  • size, quality, count, moderation, output_format, output_compression, background — same shape as generate_image.

Returns the same content shape as generate_image. Same destructiveHint / openWorldHint / idempotentHint annotations.

Recovery contract

Every tool error is returned as structured JSON with these fields:

{

"ok": false, "code": "NOT_CONFIGURED | INVALID_API_KEY | RATE_LIMITED | CONTENT_POLICY | WORKSPACE_FENCE_VIOLATION | MODEL_UNAVAILABLE | NETWORK_ERROR | TIMEOUT | WRITE_FAILED | INVALID_INPUT | INVALID_IMAGE_DATA", "error": "Human-readable message", "resolution": "Concrete next step for the operator" }

The structured shape lets agentic hosts route to recovery flows rather than surfacing raw exception text.

Security notes

  • Tool inputs that name local files (edit_image.image_paths, edit_image.mask_path) pass through a two-gate fence before any read: a lexical workspace pre-gate (the path must resolve lexically inside MCP_WORKSPACE_PATH), then a canonical containment gate (the path's realpath must land inside the canonical workspace or one of the declared roots in MCP_ALLOWED_SYMLINK_ROOTS, judged by path.relative segment semantics — never startsWith). Paths outside both are rejected with WORKSPACE_FENCE_VIOLATION to prevent symlink-escape and traversal. The same containment

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx