codex-image-gen

OSS

An MCP server that generates and edits images by driving the local Codex CLI.

MCP server

Get it
install
codex mcp add codex-image-gen -- node /opt/mcp/codex-image-gen/build/index.js
# env: CODEX_BIN (path to the codex CLI)

It generates and edits raster images by shelling out to the local Codex CLI. Two backends, auto-selected: a keyless built-in path for everyday work, and a keyed high-fidelity path when I actually need the quality. Requesting high fidelity is the only thing that triggers a billable call, so nothing costs money unless I asked for it by name.

Editing without regret

Edits are non-destructive. The server writes to a sandboxed area with atomic, collision-free filenames, so two runs never race for the same path and a reference image is never mutated in place. I can point it at a source picture a dozen times and the original is still sitting there untouched, which is the whole reason I trust it in a loop.

now runningwhisper_scheduleopen