プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Codex / OpenAI Image

作者:meet30997バージョン 0.1.2i★ –iパソコンで動く
レジストリ名io.github.meet30997/codex-openai-image-mcp

インストール

概要

作者による説明(英語の原文)

Generate, edit and make matching sets of images with the Codex CLI or the OpenAI Images API

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: 検索・AIの記憶
  • 入力が必要なもの:IMAGEGEN_PROVIDER, OPENAI_API_KEY

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: IMAGEGEN_PROVIDER, OPENAI_API_KEY, IMAGEGEN_OUT_DIR

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "codex-openai-image": {
      "command": "npx",
      "args": [
        "-y",
        "codex-openai-image-mcp"
      ],
      "env": {
        "IMAGEGEN_PROVIDER": "your-value",
        "OPENAI_API_KEY": "your-value",
        "IMAGEGEN_OUT_DIR": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add codex-openai-image --env IMAGEGEN_PROVIDER=your-value --env OPENAI_API_KEY=your-value --env IMAGEGEN_OUT_DIR=your-value -- npx -y codex-openai-image-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "codex-openai-image": {
      "command": "npx",
      "args": [
        "-y",
        "codex-openai-image-mcp"
      ],
      "env": {
        "IMAGEGEN_PROVIDER": "your-value",
        "OPENAI_API_KEY": "your-value",
        "IMAGEGEN_OUT_DIR": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "codex-openai-image": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "codex-openai-image-mcp"
      ],
      "env": {
        "IMAGEGEN_PROVIDER": "your-value",
        "OPENAI_API_KEY": "your-value",
        "IMAGEGEN_OUT_DIR": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • IMAGEGEN_PROVIDER 必須 env
    Image backend: codex-cli (your ChatGPT plan via the Codex CLI), openai-api, or mock
  • OPENAI_API_KEY 秘密 env
    OpenAI API key, only needed for the openai-api backend
  • IMAGEGEN_OUT_DIR env
    Folder for generated images, relative to the working folder (default generated-images)

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント meet30997 で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

検索・AIの記憶のほかのサーバーとの比較i

  • このカテゴリのほかの7277件のうち0%よりスターが多い
  • このカテゴリのほかの7277件のうち77%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの7277件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Codex / OpenAI Imageは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:IMAGEGEN_PROVIDER, OPENAI_API_KEY

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.1.2)がレジストリに届いたのは11 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:Context7, Codebase Memory, Exa

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Context7

作者:upstash

Up-to-date docs for AI agents

パソコンでもクラウドでも★ 64,224MIT昨日更新
インストール

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

パソコンで動く★ 48,148MIT21 日前更新
インストール

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

クラウドで動く★ 5,213MIT先月更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

codex-openai-image-mcp

An MCP server that lets Claude (and any other MCP client) generate images, edit them, and make matching sets, then look at the result and keep going.

It works with two image backends:

  • Codex CLI: uses the ChatGPT plan you already have through the Codex CLI. No API key, no per-image bill.
  • OpenAI Images API: uses an OPENAI_API_KEY, for people without Codex.

Not affiliated with or endorsed by OpenAI. "OpenAI" and "Codex" are trademarks of OpenAI.

Edit an image: *"make it a night scene, keep the car and composition"*
A matching set in one call: *"cute flat stickers: coffee, cactus, moon"*

Both examples are real, unretouched output from the Codex backend.

What makes it different

  • Matching sets. generate_set makes several different images that share one style, each saved under its own name.
  • Two backends, one interface. Switch between Codex and the OpenAI API with one setting.
  • Made for an agent loop. Every call returns small previews that Claude can see, reports progress during long runs, can be cancelled, and writes a .json sidecar with the prompt and settings next to each image.
  • Careful with your files. It writes only inside its output folder, never overwrites an existing file, never changes the image you edit, and runs Codex read-only in an empty temporary folder.

Quick start

You need Node.js 20.3 or newer, plus one of:

  • the [Codex CLI](https://github.com/openai/codex), signed in (codex login) with a ChatGPT plan that includes Codex image generation, or
  • an OpenAI API key with credits.
Claude Code
# Codex backend (your ChatGPT plan)

claude mcp add images -e IMAGEGEN_PROVIDER=codex-cli -- npx -y codex-openai-image-mcp

or the OpenAI API

claude mcp add images -e IMAGEGEN_PROVIDER=openai-api -e OPENAI_API_KEY=sk-... -- npx -y codex-openai-image-mcp

Claude Desktop, Cursor and other clients

Add this to the client's MCP config (for Claude Desktop, claude_desktop_config.json):

{

"mcpServers": { "images": { "command": "npx", "args": ["-y", "codex-openai-image-mcp"], "env": { "IMAGEGEN_PROVIDER": "codex-cli" } } } }

For the API backend use "IMAGEGEN_PROVIDER": "openai-api" and add "OPENAI_API_KEY".

Then just ask:

  • *"Make a watercolour fox for my blog header, 1536x864."*
  • *"Edit photo.png so it looks like a sunset."*
  • *"Make 5 matching app icons: home, search, profile, settings, bell."*

Images are saved in ./generated-images in the folder the client was started from.

Tools

generate_image
InputDefaultNotes
promptrequired
size1024x1024Any WxH from 16 to 4096 px per side
count11–4 variants, saved as -v1, -v2, …
transparentfalseAsks for a transparent background; the result says if the output has none
references[]Up to 4 images whose style to match
out_nameslug of the promptPath inside the output folder, without extension, e.g. icons/rocket
edit_image
InputDefaultNotes
imagerequiredThe image to change. It is never modified
promptrequiredThe change, e.g. "remove the person on the left", "make it watercolour"
sizethe input's sizeWxH
masknonePNG whose transparent areas mark where to edit (OpenAI API only)
count11–4 variants
transparentfalsee.g. for cutouts
references[]Up to 3 supporting images: something to insert, or a style to apply
out_name -edited
generate_set
InputDefaultNotes
stylerequiredWhat every image shares: medium, palette, rendering, background
itemsrequired1–8 { name, prompt }; each is saved as / .png
size1024x1024Same for every image
transparentfalse
references[]Up to 4 images whose style the whole set matches
folderslug of styleFolder inside the output folder

All tools crop and resize the result to exactly the size you ask for, and return the saved paths with a 512 px preview of each image.

Backends

codex-cliopenai-apimock
NeedsCodex CLI, signed inOPENAI_API_KEYnothing
Costyour ChatGPT plan's usageper imagefree
Speed~30–60 s per imagedepends on model and sizeinstant
References, edits, transparencyyesyesedits only
Edit masksnoyesno
Setsone Codex session for the whole setone image at a time, first image used as a style referenceone at a time

mock draws placeholder images, for trying the server out and for tests.

Codex backend. Each call runs codex exec --json --skip-git-repo-check --sandbox read-only --cd [--image= …] -- - with a prompt that asks Codex to call its built-in image_gen tool and nothing else. The server reads the session id from Codex's JSON events and collects the images from $CODEX_HOME/generated_images/ /. Codex never gets write access or sees your project beyond the images you pass it. Cancelling the request, or hitting the timeout, stops Codex. Check OpenAI's terms for scripted use of the Codex CLI with your plan.

OpenAI backend. Uses the official openai SDK. The default model is gpt-image-2.5-sunburst; set IMAGEGEN_OPENAI_MODEL=gpt-image-2.5-flare for faster results. Sizes are rounded to ones the API accepts, then resized to yours. This backend is covered by automated tests against a mocked client; it has not yet had a full live test.

Settings

VariableDefault
IMAGEGEN_PROVIDERmock; set codex-cli or openai-api
OPENAI_API_KEYrequired for openai-api
IMAGEGEN_OPENAI_MODELgpt-image-2.5-sunburst
IMAGEGEN_CODEX_BINcodex
IMAGEGEN_OUT_DIRgenerated-images, relative to the working folder
IMAGEGEN_READ_ROOTthe working folder; input images must be inside it
IMAGEGEN_TIMEOUT_SEC300, per image asked for
IMAGEGEN_MAX_PER_CALL8 images
IMAGEGEN_PREVIEW_SIZE512 px

Files and safety

  • Output is written only inside IMAGEGEN_OUT_DIR. Absolute paths, .. and symlinks that lead outside are rejected.
  • Input images (to edit, or as references) must be inside IMAGEGEN_READ_ROOT.
  • Existing files are never overwritten: a new file gets -2, -3, … instead.
  • Each image gets a .json sidecar with the prompt, backend, model, size, inputs and time.
  • API keys are read from the environment only and never logged or written to sidecars.
  • IMAGEGEN_MAX_PER_CALL caps how many images one call can make.

Images are AI-generated. You are responsible for how you use them, including platform rules on AI-generated content, and for not imitating real people or brands.

Development

git clone https://github.com/meet30997/codex-openai-image-mcp.git

cd codex-openai-image-mcp npm install npm run build npm test # unit and end-to-end tests; no network or API key needed npm run inspect # try the tools in the MCP Inspector

To run a local build from Claude Code:

claude mcp add images -e IMAGEGEN_PROVIDER=codex-cli -- node /path/to/codex-openai-image-mcp/dist/index.js

The tests run the Codex backend against a stand-in script (test/fixtures/fake-codex.mjs) and the OpenAI backend against a fake client, so they are free and quick. PLAN.md has the design notes and roadmap. Issues and pull requests are welcome.

License

MIT

PopNxに聞く