Codex / OpenAI Image runs on your own machine — the client starts it, so there is no endpoint to ping. 686 installs a week from npm. Last commit 30 Oct 2026.
Generate, edit and make matching sets of images with the Codex CLI or the OpenAI Images API
We read the source, 2 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
const child = spawn(opts.bin, args, {
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add codex-openai-image-mcp -e 'IMAGEGEN_PROVIDER=<IMAGEGEN_PROVIDER>' -- npx -y codex-openai-image-mcp
{
"mcpServers": {
"codex-openai-image-mcp": {
"command": "npx",
"args": [
"-y",
"codex-openai-image-mcp"
],
"env": {
"IMAGEGEN_PROVIDER": "<IMAGEGEN_PROVIDER>"
}
}
}
}
[mcp_servers.codex-openai-image-mcp]
command = "npx"
args = ["-y", "codex-openai-image-mcp"]
env = { IMAGEGEN_PROVIDER = "<IMAGEGEN_PROVIDER>" }
{
"mcpServers": {
"codex-openai-image-mcp": {
"command": "npx",
"args": [
"-y",
"codex-openai-image-mcp"
],
"env": {
"IMAGEGEN_PROVIDER": "<IMAGEGEN_PROVIDER>"
}
}
}
}
{
"servers": {
"codex-openai-image-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codex-openai-image-mcp"
],
"env": {
"IMAGEGEN_PROVIDER": "<IMAGEGEN_PROVIDER>"
}
}
}
}
Put your own value in place of
<IMAGEGEN_PROVIDER> (Image backend: codex-cli (your ChatGPT plan via the Codex CLI), openai-api, or mock).
The author’s registry entry marks it as required.
Optional settings from the registry entry, left out of the block above:
OPENAI_API_KEY (OpenAI API key, only needed for the openai-api backend), IMAGEGEN_OUT_DIR (Folder for generated images, relative to the working folder (default generated-images)).
MCP server for OpenAI GPT image generation and editing
Generate and edit images with every image model on the platform. Returns the image to the agent.
Delegate coding tasks to the OpenAI Codex CLI, installed separately, with explicit model and effort.
Generate images with your own ChatGPT subscription (Plus, Pro or Team), without spending API credits
Generate, edit and track dynamic (editable) QR codes with scan analytics. Hosted MCP and REST API.
MCP server for Grok image generation and editing
Image processing over MCP: compress and split images, generate images and QR codes.
Analyzes codebases with tree-sitter and generates AGENTS.md files for AI coding agents.
Answers built from our own checks of this server.