uxmio-image
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@uxmio-image Generate a minimal dark SaaS hero image with gpt-image-2.5 and save it to public/hero.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
uxmio-image-mcp
中文文档 (README.zh-CN.md) | API Console (api.uxmio.com) | Web Studio (image.uxmio.com)
A zero-dependency Model Context Protocol (MCP) server and CLI that lets Claude Code, Cursor, Windsurf, Cline, Cherry Studio, and any MCP client generate and edit images directly into your workspace via standard OpenAI-compatible /v1/images/generations and /v1/images/edits endpoints.
Works out of the box with api.uxmio.com (pay-as-you-go per image from ¥0.01 / ~$0.0014, no monthly subscription) — or point UXMIO_API_BASE_URL to any OpenAI-compatible image provider (OpenAI, NewAPI, OneAPI, self-hosted relays).
Highlights
Zero runtime dependencies: pure Node.js 18+ ESM (
fetch,FormData,Blob), starts in milliseconds vianpx.Generate & Multi-Image Edit: supports both text-to-image (
generate_image) and 1–4 reference image editing (edit_image).Workspace-friendly: pass
output_pathto save PNG/JPG/WebP assets straight into./public/,./assets/, or any project folder, while also returning inline MCP image previews.Dual Mode (MCP + CLI): run as an MCP stdio server for AI coding assistants, or invoke directly from shell scripts and CI pipelines.
Provider-agnostic: defaults to
https://api.uxmio.com/v1, fully compatible with any standard/v1/images/*endpoint.
Related MCP server: gpt-image-mcp
Supported Models & Reference Pricing (api.uxmio.com)
Model ID | Family | Price (CNY) | Approx. USD | Recommended Use Case |
| GPT Image | ¥0.01 / img | ~$0.0014 | Fast drafts, icons, placeholders, high-volume batch runs |
| GPT Image | ¥0.01 / img | ~$0.0014 | Best cost-performance default for general generation & edits |
| GPT Image | ¥0.03 / img | ~$0.0041 | Richer lighting, sharper textures, complex scenes |
| Nano Banana 2 | ¥0.06 / img | ~$0.0082 | Accurate CJK/English typography, posters, e-commerce product edits |
| Nano Banana Pro | ¥0.09 / img | ~$0.0123 | Flagship studio photography & strict multi-reference consistency |
Need a key? Register at api.uxmio.com (pay-as-you-go, balance shared with the image.uxmio.com web workbench).
Quick Start (MCP Clients)
1. Claude Code
claude mcp add uxmio-image \
-e UXMIO_API_KEY=sk-your-api-key \
-- npx -y github:chunge233/uxmio-image-mcp2. Cursor / Windsurf / Cline / Cherry Studio
Add to your MCP config (~/.cursor/mcp.json, Claude Desktop claude_desktop_config.json, or client MCP settings):
{
"mcpServers": {
"uxmio-image": {
"command": "npx",
"args": ["-y", "github:chunge233/uxmio-image-mcp"],
"env": {
"UXMIO_API_KEY": "sk-your-api-key",
"UXMIO_API_BASE_URL": "https://api.uxmio.com/v1",
"UXMIO_DEFAULT_MODEL": "gpt-image-2.5"
}
}
}
}3. Local Clone (Zero Network Startup)
git clone https://github.com/chunge233/uxmio-image-mcp.gitThen configure "command": "node" and "args": ["/absolute/path/to/uxmio-image-mcp/bin/uxmio-image-mcp.mjs"].
Exposed MCP Tools
Tool | Description | Key Parameters |
| Lists available models, pricing, active endpoint, and recommended use cases | (none) |
| Generates 1–4 images from a text prompt and optionally writes them to disk |
|
| Edits or combines 1–4 local images ( |
|
Example Prompts Inside Cursor / Claude Code
"Generate a 1536x1024 dark-mode SaaS hero illustration with
gpt-image-2.5and save it topublic/images/hero.png.""Use
edit_imagewithgemini-3.1-flash-imageonassets/bottle.pngto place it on a sunlit marble counter with soft shadows and save toassets/bottle-studio.png."
CLI Usage
# List models & pricing
npx -y github:chunge233/uxmio-image-mcp models
# Text-to-image
UXMIO_API_KEY=sk-your-key npx -y github:chunge233/uxmio-image-mcp generate \
"Minimalist ceramic coffee cup on oak desk, studio lighting" \
--model gpt-image-2.5 --size 1024x1024 --out ./coffee.png
# Multi-image reference editing
UXMIO_API_KEY=sk-your-key npx -y github:chunge233/uxmio-image-mcp edit \
"Change the background to a warm Scandinavian studio, preserve product label" \
--image ./raw-product.png --model gemini-3.1-flash-image --out ./studio-product.pngEnvironment Variables
Variable | Default | Description |
| (required) | API key (falls back to |
|
| OpenAI-compatible base URL (falls back to |
|
| Default model when |
| (none) | Optional default directory to auto-save images when |
|
| Request timeout in milliseconds ( |
SDK & Workflow Examples
Ready-to-run snippets are included in examples/:
examples/curl.sh— cURL text-to-image & multipart image editingexamples/node-generate.mjs— Zero-dependency Node.js 18+fetchexamples/python-generate.py— Official PythonopenaiSDKexamples/n8n-http-node.json— Importable n8n HTTP Request nodeexamples/mcp-clients.json— Drop-in MCP client config
Development & Tests
npm testAll tests run with Node's built-in node:test runner against an in-process mock HTTP server — no external network or API key required.
License
Available Tools
3 toolsedit_imageA
Edit or compose 1-4 local reference images using a text prompt via /v1/images/edits (multipart upload). Great for product photography retouching, background replacement, style transfer, and UI mockups.
Inputs: prompt (required), image_paths (required), size, model, +4 more.
generate_imageC
Generate an AI image from a text prompt via an OpenAI-compatible /v1/images/generations endpoint (default: api.uxmio.com). Supports saving directly to disk via output_path.
Inputs: prompt (required), n, size, model, +4 more.
list_image_modelsA
List supported AI image generation and editing models, per-image pricing, and recommended use cases.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: listing models is read-only discovery, generate_image is text-to-image, and edit_image is image-to-image/composition with reference uploads. There is no overlap in resource or action, so misselection is unlikely.
All three follow a strict verb_noun snake_case pattern (list_image_models, generate_image, edit_image). The convention is uniform and predictable.
Three tools is on the low end but each maps to a core capability of an image API with no filler. It is well-scoped for a focused generation/edit service, though slightly thin if users expect batch or utility operations.
The surface covers the main lifecycle: discover models/pricing, generate, and edit/compose. Minor gaps exist (no job status, upscaling, variations, or listing previously saved outputs), but agents can accomplish core workflows without dead ends.
Maintenance
Related MCP Connectors
Generate and edit images: article covers, pet portraits, product shots. Each call spends credits.
LLM chat, text tools, image generation, editing, batch image jobs, and asynchronous video generation
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.
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 generating and editing images through OpenAI image models, with configurable output as saved files or returned URLs.2MIT
- AlicenseNot gradedqualityCmaintenanceEnables coding agents and other MCP clients to generate images from text prompts and edit, restyle, or extend existing images through an OpenAI-compatible /v1/images API. Results are returned both inline as image content blocks and as files saved to disk, so agents can view and reuse them within a normal task.1MIT
- AlicenseAqualityCmaintenanceEnables generating and editing images with GPT Image models through the OpenAI Images API or compatible endpoints, saving originals locally and returning downscaled previews plus file paths. Supports long-running jobs, workspace-based storage, and reference- or mask-based edits.3125 npmMIT
- AlicenseBqualityDmaintenanceEnables AI assistants to generate and edit images from natural-language prompts using OpenAI’s GPT Image-1 and Responses API, with streaming previews, conversation context, and caching.749 npm1MIT