# Codex Imagem — MCP server on mcp.ai > Generate images with your own ChatGPT subscription (Plus, Pro or Team), without spending API credits. Connect your Codex login once and ask for the image in plain language, the file is saved to your mcp.ai account. By: mcp.ai · official Page: https://new.mcp.ai/codex_image ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_codex_image?ms=1796396520000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## Install in your AI client (step by step) Link to paste in any client: https://api.mcp.ai/p_codex_image ### Claude 1. Copy the Codex Imagem link above (Copy button). 2. In Claude, Plugins → Add → Add custom connector: name Codex Imagem, paste the link and click Continue. Under Authentication, choose Sign in now and click Add. 3. The first time, Claude opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Codex Imagem needs your account, the AI sends you a link to connect it: have Contents of the Codex auth.json file at hand. Install Codex (npm i -g @openai/codex), run codex login and pick 'Sign in with ChatGPT'. 5. Done: just ask in the chat. Open: https://claude.ai/plugins ### ChatGPT 1. Copy the Codex Imagem link above (Copy button). 2. In ChatGPT (web), Plugins → Add → Add custom MCP server: name Codex Imagem, paste the link, under Authentication choose OAuth or no authentication, check I understand, click Create as a plugin, then Sign in with Codex Imagem. 3. The first time, ChatGPT opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Codex Imagem needs your account, the AI sends you a link to connect it: have Contents of the Codex auth.json file at hand. Install Codex (npm i -g @openai/codex), run codex login and pick 'Sign in with ChatGPT'. 5. Done: just ask in the chat. Open: https://chatgpt.com/plugins ### Cursor 1. Copy the Codex Imagem link above (Copy button). 2. In Cursor, Settings → MCP → "Add new MCP server", paste the link and save. 3. The first time, Cursor opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Codex Imagem needs your account, the AI sends you a link to connect it: have Contents of the Codex auth.json file at hand. Install Codex (npm i -g @openai/codex), run codex login and pick 'Sign in with ChatGPT'. 5. Done: just ask in the chat. ### Claude Desktop 1. Copy the Codex Imagem link above (Copy button). 2. Added it in Claude? The connector lives in your account and shows up on Desktop. If not, Plugins → Add → Add custom connector, paste the link and choose Sign in now. 3. The first time, Claude opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Codex Imagem needs your account, the AI sends you a link to connect it: have Contents of the Codex auth.json file at hand. Install Codex (npm i -g @openai/codex), run codex login and pick 'Sign in with ChatGPT'. 5. Done: just ask in the chat. ### Manus 1. Copy the Codex Imagem link above (Copy button). 2. Paste the link into a Manus chat and ask it to connect the MCP server. 3. The first time, Manus opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Codex Imagem needs your account, the AI sends you a link to connect it: have Contents of the Codex auth.json file at hand. Install Codex (npm i -g @openai/codex), run codex login and pick 'Sign in with ChatGPT'. 5. Done: just ask in the chat. ### Agents 1. Copy the Codex Imagem link above (Copy button). 2. Paste the link into your MCP-compatible agent (remote HTTP server). 3. The first time, agent opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. When Codex Imagem needs your account, the AI sends you a link to connect it: have Contents of the Codex auth.json file at hand. Install Codex (npm i -g @openai/codex), run codex login and pick 'Sign in with ChatGPT'. 5. Done: just ask in the chat. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/codex_image/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/codex_image/ Authorization: Bearer sk_live_… # create one at https://new.mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs Install guide (prompt + clients + REST), markdown: https://new.mcp.ai/codex_image/index.md How to use (MCP or REST), markdown: https://new.mcp.ai/codex_image/skill.md Postman collection (v2.1): https://new.mcp.ai/codex_image/postman.json ## Tools - codex_image_generate(prompt: string, account?: string) — Gera uma imagem a partir de um texto, usando a cota de imagens da assinatura ChatGPT conectada (não consome créditos de API). Retorna um link de download do PNG, que também fica na aba Arquivos do mcp - codex_image_subscription(account?: string) — Mostra qual assinatura ChatGPT está conectada (e-mail e plano). Não gera imagem nem consome cota. ## Example prompts - "Generate a flat-style fox mascot image for my brand" - "Create a product photo of a ceramic mug on a light background" - "Which ChatGPT subscription is connected here?" ## Links Docs: https://mcp.ai/docs/mcps/codex_image Website: https://mcp.ai/mcps/codex_image