OpenAI GPT image generation/editing MCP server.
Add to Claude Desktop config.json
{
"mcpServers": {
"surescaleai-openai-gpt-image-mcp": {
"command": "node",
"args": [
"~/.mcp/openai-gpt-image-mcp/index.js"
]
}
}
} Get the source and run locally
git clone https://github.com/SureScaleAI/openai-gpt-image-mcp.git ~/.mcp/openai-gpt-image-mcp
cd ~/.mcp/openai-gpt-image-mcp A Model Context Protocol (MCP) tool server for OpenAI’s GPT-4o/gpt-image-1 image generation and editing APIs.
git clone https://github.com/SureScaleAI/openai-gpt-image-mcp.git
cd openai-gpt-image-mcp
yarn install
yarn build
Add to Claude Desktop or VSCode (including Cursor/Windsurf) config:
{
"mcpServers": {
"openai-gpt-image-mcp": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"],
"env": { "OPENAI_API_KEY": "sk-..." }
}
}
}
Also supports Azure deployments:
{
"mcpServers": {
"openai-gpt-image-mcp": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"],
"env": {
"AZURE_OPENAI_API_KEY": "sk-...",
"AZURE_OPENAI_ENDPOINT": "my.endpoint.com",
"OPENAI_API_VERSION": "2024-12-01-preview"
}
}
}
}
Also supports supplying an environment files:
{
"mcpServers": {
"openai-gpt-image-mcp": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js", "--env-file", "./deployment/.env"]
}
}
}
create-image, set n to generate up to 10 images at once.edit-image, provide a mask image (file path or base64) to control where edits are applied.--env-file path/to/file/.envsrc/index.ts for all options.src/index.tsyarn buildnode dist/index.jsMIT
OPENAI_API_KEY is valid and has image API access./ (e.g., /path/to/image.png): (e.g., C:/path/to/image.png or C:\path\to\image.png)result exceeds maximum length of 1048576.file_output path, images will be saved to /tmp (or the directory set by the MCP_HF_WORK_DIR environment variable) with a unique filename.MCP_HF_WORK_DIR: Set this to control where large images and file outputs are saved. Example: export MCP_HF_WORK_DIR=/your/desired/dirConnect and unify data across various platforms and databases with MindsDB as a single MCP server.
Connect with 2,500 APIs with 8,000+ prebuilt tools, and manage servers for your users, in your own app.
MetaMCP is the one unified middleware MCP server that manages your MCP connections with GUI.
Query more than 40 apps with one binary using SQL. It can also connect to your PostgreSQL, MySQL, or SQLite compatible database. Local-first and private by design.
Self-hosted MCP Server registry for enterprise AI Agents
A reverse proxy and management layer for MCP servers, enabling scalable, session-aware routing and lifecycle management in Kubernetes environments.