Best for
- Users who want to generate and save images through an MCP client.
- Users who can sign in to ChatGPT web or have an OpenAI API key.
The README describes three MCP tools, a stdio server, two image-generation backends, and local file output. The server manifest was not cached, so additional configuration or capabilities cannot be verified from it.
Strongest · Documentation 8/20 Weakest · Reliability 4/20
Static review · not runReviewed 2026-11-29
Read the FMRS scoring method →Runtime:Node.js 20+
OPENAI_API_KEY
Set this for the api backend; obtain the key from OpenAI.
GPT_IMAGE_BACKEND
Selects api, chatgpt-web, or auto; the quick-start configuration uses chatgpt-web.
CHATGPT_WEB_PROFILE_DIR
Optional path for the local ChatGPT sign-in profile.
CHATGPT_WEB_LOGIN_TIMEOUT_SECONDS
Optional timeout in seconds for ChatGPT web sign-in.
CHATGPT_HIDE_WINDOW
Optional; set to 0 to keep the ChatGPT window visible after sign-in.
Add the example configuration to your MCP client. On first use in chatgpt-web mode, the server opens ChatGPT so you can sign in or complete verification. For api mode, set OPENAI_API_KEY and set GPT_IMAGE_BACKEND to api.
{"mcpServers":{"gpt-image-2":{"command":"npx","args":["-y","@ramlyburger/gpt-image-2-mcp"],"env":{"GPT_IMAGE_BACKEND":"chatgpt-web"}}}}
Works in clients that read an "mcpServers" key. For clients such as VS Code that use a different key, the configurator below converts it.
{
"servers": {
"gpt-image-2": {
"command": "npx",
"args": [
"-y",
"@ramlyburger/gpt-image-2-mcp"
],
"env": {
"GPT_IMAGE_BACKEND": "chatgpt-web"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
[mcp_servers.gpt-image-2] command = "npx" args = ["-y", "@ramlyburger/gpt-image-2-mcp"] [mcp_servers.gpt-image-2.env] GPT_IMAGE_BACKEND = "chatgpt-web"
Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).
claude mcp add gpt-image-2 -e GPT_IMAGE_BACKEND=chatgpt-web -- npx -y @ramlyburger/gpt-image-2-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Confirm that generate_image, backend_status, and browser_visibility appear in the client’s tool list. Call backend_status to check readiness, or request an image and confirm the result includes a saved file path.
Once connected, you can ask your AI assistant things like:
No matching tools
GPT Image 2 MCP Server is a TypeScript MCP server that exposes image generation tools to compatible MCP clients. It supports ChatGPT web mode, OpenAI API mode, and an automatic mode that tries the API first, then saves generated images and JSON metadata to a local directory.
Manage UniFi Network controllers through MCP.
Manage UniFi networks and devices through MCP.
Ask your affiliate networks in plain English from your AI workspace.
Run 119 Horosa astrology and metaphysics techniques locally.
Source revision 9240da04df2a Data synced 2026-12-05 Read the FMRS scoring method Markdown