openai-gpt-image-mcp
@SureScaleAI
openai-gpt-image-mcp について
A Model Context Protocol (MCP) tool server for OpenAI's GPT-4o/gpt-image-1 image generation and editing APIs.
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"openai-gpt-image-mcp": {
"command": "node",
"args": [
"/absolute/path/to/dist/index.js"
],
"env": {
"OPENAI_API_KEY": ""
}
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
What is openai-gpt-image-mcp?
openai-gpt-image-mcp is a Model Context Protocol (MCP) server that provides image generation and editing capabilities via OpenAI's GPT-4o and gpt-image-1 APIs. It is designed for developers and users of MCP-compatible clients such as Claude Desktop, Cursor, VSCode, and Windsurf.
How to use openai-gpt-image-mcp?
Clone the repository, install dependencies with yarn install, and build with yarn build. Then add a configuration entry to your MCP client (e.g., Claude Desktop or VSCode) specifying the path to dist/index.js and your OpenAI API key (or Azure credentials). The server exposes two tools: create-image (generate images) and edit-image (edit images with optional mask). Image output can be saved to disk or returned as base64.
Key features of openai-gpt-image-mcp
- Generate images from text prompts with size, quality, and background options.
- Edit images using inpainting, outpainting, or compositing with a mask.
- Supports file paths and base64 input for source images and masks.
- Automatic file output when total image size exceeds the 1MB MCP payload limit.
- Works with OpenAI and Azure OpenAI deployments.
- Configurable working directory via the
MCP_HF_WORK_DIRenvironment variable.
Use cases of openai-gpt-image-mcp
- Generate up to 10 images at once from a single prompt for creative projects.
- Edit specific regions of an image by providing a mask and a new description.
- Integrate AI image generation directly into AI‑assisted code editors or chat clients.
- Produce images as files for use in documents, presentations, or web content.
FAQ from openai-gpt-image-mcp
What dependencies are required to run openai-gpt-image-mcp?
You need Node.js, yarn (or npm), and an Internet connection. The server uses the OpenAI Node.js SDK and the MCP SDK.
How do I configure openai-gpt-image-mcp for Azure OpenAI?
Set the environment variables AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, and OPENAI_API_VERSION in the MCP client configuration instead of OPENAI_API_KEY.
What happens if the generated image is larger than 1MB?
The tool automatically saves the image to disk and returns the file path instead of base64. This avoids the 1MB payload limit of MCP clients like Claude Desktop.
Where are files saved by default?
If no file_output path is specified, images are saved to /tmp (or the directory set by the MCP_HF_WORK_DIR environment variable) with a unique filename.
What file path format is required for input images?
Absolute paths are required. On Unix/macOS/Linux use a leading / (e.g., /path/to/image.png), and on Windows include the drive letter followed by : (e.g., C:/path/to/image.png).
「AI とエージェント」の他のコンテンツ
Model Context Protocol for Unreal Engine
chongdashuEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).
Solon Ai
opensolonJava AI application development framework (supports LLM-tool,skill; RAG; MCP; Agent-ReAct,Team-Agent). Compatible with java8 ~ java25. It can also be embedded in SpringBoot, jFinal, Vert.x, Quarkus, and other frameworks.
Unreal Engine Generative AI Support Plugin
prajwalshettydevUnreal Engine plugin for LLM/GenAI models & MCP UE5 server. OpenAI GPT-5, Deepseek R1, Claude Opus/Sonnet, Gemini 3, Grok 4, Alibaba Qwen, Kimi, ElevenLabs TTS, Inworld, OpenRouter, Groq, GLM, Ollama, Local, Meshy, Tripo, Hunyuan3D, Rodin, fal, Dashscope, Seedream. NPC AI, agenti
Shell and Coding agent for Claude and other mcp clients
rusiaamanShell and coding agent on mcp clients
🛡️ A.I.G(AI-Infra-Guard)
TencentA full-stack AI Red Teaming platform securing AI ecosystems via OpenClaw Security Scan, Agent Scan, Skills Scan, MCP scan, AI Infra scan and LLM jailbreak evaluation.
コメント