OpenAI Image Generation MCP
@jerryzhao173985
关于 OpenAI Image Generation MCP
OpenAI Image Generation MCP that enables server to generate and edit images using OpenAI's gpt-image-1 api modes.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"openai-image-gen-mcp": {
"command": "node",
"args": [
"hardcoded-key.js"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is OpenAI Image Generation MCP?
A Model Context Protocol (MCP) server for the OpenAI image generation API. It enables AI assistants like Claude to generate and edit images using OpenAI’s GPT‑image‑1 model.
How to use OpenAI Image Generation MCP?
Clone the repository, install dependencies (npm install), and build the TypeScript project (npm run build). Start the server with the provided run script (./run-with-key.sh), a direct‑key script (node hardcoded-key.js), or by setting the OPENAI_API_KEY environment variable and running ./start.sh. Configure Claude to use the compiled build/index.js via the mcpServers JSON entry.
Key features of OpenAI Image Generation MCP
- Generate images from text prompts
- Edit existing images with optional masks
- Automatically saves generated images to local storage
- Optionally uploads images to Cloudflare ImgBed
- Health check endpoint for server status verification
- Multiple ways to provide the OpenAI API key
Use cases of OpenAI Image Generation MCP
- AI assistants creating custom images on demand
- Editing existing images with natural language prompts
- Embedding image generation into workflows that require local storage or cloud upload
- Verifying server connectivity through the health check tool
FAQ from OpenAI Image Generation MCP
What model does OpenAI Image Generation MCP use?
It uses OpenAI’s GPT-image-1 model for both generation and editing.
How can I provide the OpenAI API key?
You can set the OPENAI_API_KEY environment variable, pass it via a command‑line script, or embed it directly in a simplified version of the server.
Where are generated images saved?
Images are saved to the local output/ directory. Optionally, they can also be uploaded to Cloudflare ImgBed.
What tools are available in OpenAI Image Generation MCP?
Three tools: oai_generate_image (generate from text), oai_edit_image (edit with prompts and masks), and health_check (verify server status).
How can I troubleshoot issues with OpenAI Image Generation MCP?
Check that your API key is valid, the output directory exists and is writable, run the health check tool, review logs for errors, and try the simplified version to isolate problems.
AI 与智能体 分类下的更多 MCP 服务器
Shell and Coding agent for Claude and other mcp clients
rusiaamanShell and coding agent on mcp clients
欢迎来到 智言平台
Shy2593666979AgentChat 是一个基于 LLM 的智能体交流平台,内置默认 Agent 并支持用户自定义 Agent。通过多轮对话和任务协作,Agent 可以理解并协助完成复杂任务。项目集成 LangChain、Function Call、MCP 协议、RAG、Memory、HITL、Skill、Milvus 和 ElasticSearch 等技术,实现高效的知识检索与工具调用,使用 FastAPI 构建高性能后端服务。
MCP Manager for Claude Desktop
zueaisimple web ui to manage mcp (model context protocol) servers in the claude app
Sequential Thinking Multi-Agent System (MAS)
FradSerAn advanced sequential thinking process using a Multi-Agent System (MAS) built with the Agno framework and served via MCP.
Model Context Protocol Server for Home Assistant
tevonsbA MCP server for Home Assistant
评论