This project implements an MCP (Model Context Protocol) server that provides tools for generating and editing images using OpenAI's `gpt-image-1`
Chatgpt Native Image Gen MCP becomes available to MCP clients through the chatgpt native image gen mcp mcp server. This project implements an MCP (Model Context Protocol) server that provides tools for generating and editing images using OpenAI's gpt-image-1 model via the official Python SDK.
This project implements an MCP (Model Context Protocol) server that provides tools for generating and editing images using OpenAI's gpt-image-1 model via the official Python SDK.
Setup follows the standard MCP pattern: clone or install the server, then register it in your client's configuration file and restart the client. The configuration snippets on this page cover Claude Desktop, Claude Code and Cursor.
Before the server will start you need to supply one environment variable: OPENAI_API_KEY. Keep credentials in your client's env block or a secrets manager rather than committing them.
OPENAI_API_KEY environment variable - using environment variables is strongly recommended for security). * An MCP client environment (like the one used by Cline) capable of managing and launching MCP servers.AI-service servers chain other models into your assistant, turning a single chat into a small production pipeline. Chatgpt Native Image Gen MCP sits in that group. Worth comparing against the other ai services servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
{
"mcpServers": {
// ... other server configurations ...
"openai-image-gen-mcp": {
"autoApprove": [
"generate_image",
"edit_image"
],
"disabled": false,
"timeout": 180, // Increased timeout for potentially long image generation
"command": "python", // Or path to python executable if not in PATH
"args": [
// IMPORTANT: Replace this path with the actual absolute path
// to the openai_image_mcp.py file on your system
"C:/path/to/your/cloned/repo/chatgpt-native-image-gen-mcp/openai_image_mcp.py"
],
"env": {
// If using environment variables for the API key:
// "OPENAI_API_KEY": "YOUR_API_KEY_HERE"
},
"transportType": "stdio"
}
// ... other server configurations ...
}
}Configuration as documented by the project. Restart the client after saving.
OPENAI_API_KEY environment variable - using environment variables is strongly recommended for security). * An MCP client environment (like the one used by Cline) capable of managing and launching MCP servers.| Variable | Description | Required |
|---|---|---|
| OPENAI_API_KEY | Credential the server authenticates with. | Yes |
Build a programmable telecommunications stack for connecting telephony services with the Internet via a cloud-based utility.
Search built for AI, not humans — semantic web search that returns model-ready content, plus code context.
Answers, not links — delegate questions to Perplexity's search-grounded models and get cited responses back.
Give your assistant a voice — text-to-speech, voice cloning and audio tools from the ElevenLabs API.
Give your assistant a real code sandbox — isolated cloud VMs for actually running the code it writes.
The ML hub in your context window — search models, datasets, papers and run Spaces from the official server.