Codex Images
v0.1.1Generate and edit images with gpt-image-2, including masks and transparency.
Values you need
| Variable | What it is | |
|---|---|---|
CODEX_IMAGES_HTTP_TOKEN | required secret | Bearer token. The image listens on 0.0.0.0 and refuses to start without this. |
PyPI (uvx)
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add codex-images-mcp -e 'CODEX_IMAGES_HTTP_TOKEN=<CODEX_IMAGES_HTTP_TOKEN>' -- uvx codex-images-mcp==0.1.1Add to
claude_desktop_config.json{
"mcpServers": {
"codex-images-mcp": {
"args": [
"codex-images-mcp==0.1.1"
],
"command": "uvx",
"env": {
"CODEX_IMAGES_HTTP_TOKEN": "<CODEX_IMAGES_HTTP_TOKEN>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"codex-images-mcp": {
"args": [
"codex-images-mcp==0.1.1"
],
"command": "uvx",
"env": {
"CODEX_IMAGES_HTTP_TOKEN": "<CODEX_IMAGES_HTTP_TOKEN>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "CODEX_IMAGES_HTTP_TOKEN",
"id": "codex-images-http-token",
"password": true,
"type": "promptString"
}
],
"servers": {
"codex-images-mcp": {
"args": [
"codex-images-mcp==0.1.1"
],
"command": "uvx",
"env": {
"CODEX_IMAGES_HTTP_TOKEN": "${input:codex-images-http-token}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.codex-images-mcp]
command = "uvx"
args = ["codex-images-mcp==0.1.1"]
env = { "CODEX_IMAGES_HTTP_TOKEN" = "<CODEX_IMAGES_HTTP_TOKEN>" }For AI agents
- Ask the user for: CODEX_IMAGES_HTTP_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json