Image Create MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Image Create MCP
AI 图片生成 MCP 服务器。通过对话式接口调用图像生成模型,自动解析返回的 base64 或图床 URL 格式。
功能特性
自定义配置组:可配置任意数量的 API 端点,名称自定义
对话式接口:统一使用
/chat/completions格式自动解析:自动识别返回的 base64 或
格式自动保存:将生成的图片保存到指定目录
Related MCP server: openai-gpt-image-1-mcp
安装
Claude Code 安装
claude mcp add image-create-mcp -s user -- npx image-create-mcp安装后,直接告诉 Claude 你的 API 配置信息:
"帮我配置 image-create-mcp 的环境变量,配置组名称 xxx,API 地址 https://...,密钥 sk-xxx,模型 xxx"
Claude 会自动编辑 MCP 配置文件添加相应的环境变量。
手动配置
{
"mcpServers": {
"image-create-mcp": {
"command": "cmd",
"args": ["/c", "npx", "image-create-mcp"],
"env": {
"PROVIDER_MYAPI_API_KEY": "sk-xxx",
"PROVIDER_MYAPI_API_URL": "https://api.example.com/v1/chat/completions",
"PROVIDER_MYAPI_MODEL": "gpt-image-1"
}
}
}
}环境变量
配置组格式
每个配置组需要 3 个环境变量,格式为 PROVIDER_{NAME}_{FIELD}:
变量 | 说明 |
| API 密钥 |
| 完整请求地址 |
| 默认模型名称 |
{NAME} 可以是任意名称(大写字母、数字、下划线),例如:
# 配置组 "main"
PROVIDER_MAIN_API_KEY=sk-xxx
PROVIDER_MAIN_API_URL=https://api.example.com/v1/chat/completions
PROVIDER_MAIN_MODEL=gpt-image-1
# 配置组 "backup"
PROVIDER_BACKUP_API_KEY=sk-yyy
PROVIDER_BACKUP_API_URL=https://backup.example.com/v1/chat/completions
PROVIDER_BACKUP_MODEL=dall-e-3通用配置
变量 | 说明 | 默认值 |
| 默认输出目录 |
|
| 默认文件名前缀 |
|
| 文件覆盖模式 |
|
使用示例
文生图
{
"provider": "main",
"prompt": "一只可爱的猫咪在阳光下睡觉",
"output": {
"dir": "./images",
"filename": "cute-cat"
}
}图生图
{
"provider": "main",
"prompt": "将这张图片转换为水彩画风格",
"images": ["./inputs/photo.jpg"],
"output": {
"dir": "./images",
"filename": "watercolor"
}
}多图输入
{
"provider": "main",
"prompt": "将这两张图片融合成一张",
"images": ["./inputs/cat-1.png", "./inputs/cat-2.jpg"],
"output": {
"dir": "./images",
"filename": "merged"
}
}参数说明
参数 | 类型 | 必填 | 说明 |
| string | 是 | 配置组名称(小写) |
| string | 否 | 模型名称(覆盖默认配置) |
| string | 否* | 图片描述 |
| array | 否* | 对话消息 |
| array | 否 | 上传图片路径列表(支持多图) |
| string | 否 | 输出目录 |
| string | 否 | 文件名(不含扩展名) |
| string | 否 |
|
*prompt / messages 至少提供一个
响应格式
服务器会自动解析以下返回格式:
- 图床 URL- Base64 数据
开发
git clone https://github.com/ishailluminas/image-create-mcp.git
cd image-create-mcp
npm install
npm run build许可证
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models. Up to 4 images per call, SVG vectorization, background removal, upscaling and image-to-video. Remote MCP with OAuth, no API keys.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models and 10 tools: up to 4 images per call, SVG vectorization, editing and more. Remote MCP with OAuth, no API keys. Pay per image, no subscription.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables image generation and editing using OpenAI's GPT Image API (gpt-image-1, 1.5, 2) with support for multi-image generation, history management, and batch processing.12263 npm1MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents and coding assistants with image generation and editing capabilities using OpenAI's GPT-image-1 model, with support for local or Supabase storage.3MIT
- AlicenseAqualityCmaintenanceEnables coding agents to generate and edit images using Gemini and OpenAI image models, saving files directly into the project with configurable providers, models, and security restrictions.390 npm1MIT
- AlicenseAqualityCmaintenanceEnables MCP-compatible coding agents to generate and edit images from text prompts or local files, returning both a saved file path and an inline image block. Supports up to four sequential images per call, model listing, and one-command setup across OMP, Codex, Claude Code, Cursor, and opencode.314 npmMIT