OpenAI GPT Image MCP
openai-gpt-image-mcp
OpenAI의 GPT-4o/gpt-image-1 이미지 생성 및 편집 API를 위한 모델 컨텍스트 프로토콜(MCP) 도구 서버입니다.
OpenAI의 최신 모델을 사용하여 텍스트 프롬프트에서 이미지를 생성합니다 .
고급 프롬프트 제어를 사용하여 이미지를 편집 (인페인팅, 아웃페인팅, 합성)합니다.
지원 대상 : Claude Desktop, Cursor, VSCode, Windsurf 및 모든 MCP 호환 클라이언트.
✨ 특징
create-image : 고급 옵션(크기, 품질, 배경 등)을 사용하여 프롬프트에서 이미지를 생성합니다.
edit-image : 프롬프트와 선택적 마스크를 사용하여 이미지를 편집하거나 확장하며 파일 경로와 base64 입력을 모두 지원합니다.
파일 출력 : 생성된 이미지를 디스크에 직접 저장하거나 base64로 수신합니다.
Related MCP server: imagegen-mcp
🚀 설치
지엑스피1
🔑 구성
Claude Desktop 또는 VSCode(Cursor/Windsurf 포함) 구성에 추가:
{
"mcpServers": {
"openai-gpt-image-mcp": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"],
"env": { "OPENAI_API_KEY": "sk-..." }
}
}
}⚡ 고급
create-image의 경우n설정하면 최대 10개의 이미지를 한 번에 생성할 수 있습니다.edit-image의 경우, 편집 내용을 적용할 위치를 제어하기 위해 마스크 이미지(파일 경로 또는 base64)를 제공합니다.모든 옵션은
src/index.ts참조하세요.
🧑💻 개발
TypeScript 소스:
src/index.ts빌드:
yarn build실행:
node dist/index.js
📝 라이센스
MIT
🩺 문제 해결
OPENAI_API_KEY가 유효하고 이미지 API 액세스 권한이 있는지 확인하세요.인증된 OpenAI 조직이 있어야 합니다. 인증 후 이미지 API 액세스가 활성화되기까지 15~20분이 소요될 수 있습니다.
파일 경로는 절대 경로여야 합니다.
파일 출력의 경우 디렉토리가 쓰기 가능한지 확인하세요.
파일 형식에 대한 오류가 표시되면 이미지 파일 확장자와 형식을 확인하세요.
⚠️ 제한 사항 및 대용량 파일 처리
1MB 페이로드 제한: MCP 클라이언트(Claude Desktop 포함)는 도구 응답에 대해 1MB의 제한을 두고 있습니다. 큰 이미지(특히 고해상도 또는 여러 이미지)를 base64로 반환하는 경우 이 제한을 쉽게 초과할 수 있습니다.
파일 출력으로 자동 전환: 전체 이미지 크기가 1MB를 초과하면 도구가 자동으로 이미지를 디스크에 저장하고 base64 대신 파일 경로를 반환합니다. 이를 통해 호환성을 보장하고
result exceeds maximum length of 1048576과 같은 오류를 방지합니다.기본 파일 위치:
file_output경로를 지정하지 않으면 이미지는 고유한 파일 이름으로/tmp(또는MCP_HF_WORK_DIR환경 변수로 설정한 디렉토리)에 저장됩니다.환경 변수:
MCP_HF_WORK_DIR: 대용량 이미지와 파일 출력이 저장되는 위치를 제어합니다. 예:export MCP_HF_WORK_DIR=/your/desired/dir
모범 사례: 대용량 이미지나 프로덕션 이미지의 경우 항상 파일 출력을 사용하고 클라이언트가 파일 경로를 처리하도록 구성되어 있는지 확인하세요.
📚 참고문헌
🙏 크레딧
OpenAI Node.js SDK를 사용합니다
SureScale.ai 에서 구축
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Generate AI images and videos from any compatible MCP client.
Focused MCP server for OpenAI image/audio generation (v2.0.0). Wraps endpoints via HAPI CLI.
Generate AI images, video, music, and sound effects, and upscale them, from any MCP client.
MCP server for Qwen Image 3 AI image generation
Related MCP Servers
- FlicenseAqualityDmaintenanceAn MCP server for generating and editing images using OpenAI's GPT Image and DALL·E models. It provides tools for image generation, editing, variation creation, and model listing with support for multiple AI models.4-
- AlicenseNot gradedqualityDmaintenanceMCP server that wraps OpenAI's image generation and editing APIs, enabling text-to-image and image-to-image operations via tools.20437ISC
- FlicenseAqualityDmaintenanceMCP server for AI image generation supporting text-to-image and image-to-image editing via any OpenAI-compatible service, with configurable models, aspect ratios, and sizes.2-
- AlicenseAqualityDmaintenanceAn MCP server that generates and edits images using OpenAI's GPT Image model, allowing users to create images from text descriptions and edit existing images through natural language.117MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SureScaleAI/openai-gpt-image-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server