Generate, edit and make matching sets of images with the Codex CLI or the OpenAI Images API
Connect Runs on your machine
claude mcp add codex-openai-image-mcp -e IMAGEGEN_PROVIDER=<IMAGEGEN_PROVIDER> -e OPENAI_API_KEY=<OPENAI_API_KEY> -e IMAGEGEN_OUT_DIR=<IMAGEGEN_OUT_DIR> -- npx -y [email protected]
{
"mcpServers": {
"codex-openai-image-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"IMAGEGEN_PROVIDER": "<IMAGEGEN_PROVIDER>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"IMAGEGEN_OUT_DIR": "<IMAGEGEN_OUT_DIR>"
}
}
}
}
{
"mcpServers": {
"codex-openai-image-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"IMAGEGEN_PROVIDER": "<IMAGEGEN_PROVIDER>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"IMAGEGEN_OUT_DIR": "<IMAGEGEN_OUT_DIR>"
}
}
}
}
{
"servers": {
"codex-openai-image-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"IMAGEGEN_PROVIDER": "<IMAGEGEN_PROVIDER>",
"OPENAI_API_KEY": "<OPENAI_API_KEY>",
"IMAGEGEN_OUT_DIR": "<IMAGEGEN_OUT_DIR>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
IMAGEGEN_PROVIDERRequired | Image backend: codex-cli (your ChatGPT plan via the Codex CLI), openai-api, or mock |
OPENAI_API_KEYOptional, secret | OpenAI API key, only needed for the openai-api backend |
IMAGEGEN_OUT_DIROptional | Folder for generated images, relative to the working folder (default generated-images) |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 27 Oct 2026 |
| Last updated | 27 Oct 2026 |
| Registry name | io.github.meet30997/codex-openai-image-mcp |
More ai and media servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
