loading…
Search for a command to run...
loading…
A local MCP server for generating and editing images using OpenAI-compatible APIs. It provides text-to-image generation and image editing capabilities with conf
A local MCP server for generating and editing images using OpenAI-compatible APIs. It provides text-to-image generation and image editing capabilities with configurable endpoints and saves output directly to local files.
A local MCP server and Codex plugin for image generation and image editing through OpenAI-compatible image APIs.
This project is suitable for open-source distribution because the package name is generic. It is not presented as an official OpenAI plugin. It simply works with OpenAI-compatible image endpoints.
Repository:
https://github.com/jhupo/image-studio-mcp.gitgenerate_imageedit_imageOPENAI_BASE_URLOPENAI_API_KEYOPENAI_IMAGE_MODELOPENAI_API_KEY
Required. API key used for the image endpoint.OPENAI_BASE_URL
Optional. Defaults to https://dash.classicriver.cn/v1/.OPENAI_IMAGE_MODEL
Optional. Defaults to gpt-image-2.npm install
node ./scripts/openai-image-mcp.mjs
The server uses stdio transport, so it is normally launched by an MCP host instead of manually.
This repo already includes the Codex plugin files:
.codex-plugin/plugin.json.mcp.jsonskills/image-studio-mcp/SKILL.mdIf you are installing it into another Codex workspace:
image-studio-mcp folder into that workspace's plugins/ directory.npm install inside the plugin directory.OPENAI_API_KEY in the plugin's local MCP config.OPENAI_BASE_URL and OPENAI_IMAGE_MODEL../plugins/image-studio-mcp.Any host that supports MCP stdio transport can install this server.
Use the same structure shown below, adapted to your host's config format:
{
"mcpServers": {
"image-studio-mcp": {
"command": "node",
"args": [
"C:/absolute/path/to/image-studio-mcp/scripts/openai-image-mcp.mjs"
],
"cwd": "C:/absolute/path/to/image-studio-mcp",
"env": {
"OPENAI_API_KEY": "your_api_key_here",
"OPENAI_BASE_URL": "https://dash.classicriver.cn/v1/",
"OPENAI_IMAGE_MODEL": "gpt-image-2"
}
}
}
}
A copyable example file is included here:
mcp.config.example.jsongenerate_imageCreates one or more images from a prompt.
Important inputs:
promptoutput_dirfilename_prefixcountsizequalitybackgroundoutput_formatedit_imageEdits one or more source images from a prompt.
Important inputs:
promptinput_imagesmask_imageoutput_dirfilename_prefixcountsizequalitybackgroundoutput_formatFor public distribution, image-studio-mcp is safer than openai-image-studio because it avoids looking like an official product name while still making the purpose clear.
node --check ./scripts/openai-image-mcp.mjs
For real API validation, inject OPENAI_API_KEY from your local shell or host config instead of storing it in tracked files.
You can also validate the skill:
python C:/Users/Administrator/.codex/skills/.system/skill-creator/scripts/quick_validate.py ./skills/image-studio-mcp
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"image-studio-mcp": {
"command": "npx",
"args": []
}
}
}