ChongPlus Image MCP
Enables AI assistants to generate and edit images via the ChongPlus Image API, with secure API key management and local file saving.
README
ChongPlus Image MCP
An MCP server that lets AI assistants generate and edit images through the ChongPlus Image API.
Languages: English | 简体中文 | 繁體中文 | 日本語 | Español | Русский | 한국어
It is designed for normal chat usage: after installation, the assistant checks whether a key is configured, asks for one only when necessary, and saves it in the user's local configuration directory. Users do not need to set environment variables or run Python commands.
What the assistant can do
- Check whether ChongPlus is ready to use.
- Save or replace a ChongPlus API key securely.
- Generate one to four images from a prompt.
- Edit one local reference image with a prompt.
- Explain available image sizes and limits.
Generated images are saved locally. The tools return their absolute paths, so an MCP client can show or open them.
Install
The simplest route is to ask an MCP-capable AI client to install this repository. For manual configuration, use uvx:
{
"mcpServers": {
"chongplus-image": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Rodert/chongplus-image-mcp", "chongplus-image-mcp"]
}
}
}
For a checked-out repository, replace the command and arguments with:
{
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/chongplus-image-mcp", "chongplus-image-mcp"]
}
First use
Ask the assistant to generate or edit an image. It should call setup_status first. If no key exists, it asks you for a ChongPlus API key and calls configure_api_key.
Get a key from https://api.chongplus.plus/keys; choose the image-generation group. Treat this as sensitive information: only provide it to an AI client and local MCP server you trust.
The key is stored at:
| Platform | Location |
|---|---|
| macOS/Linux | $XDG_CONFIG_HOME/chongplus-image/config.json, or ~/.config/chongplus-image/config.json |
| Windows | %APPDATA%\\chongplus-image\\config.json |
On macOS and Linux, the directory is set to 0700 and the file to 0600.
Tools
| Tool | Purpose |
|---|---|
setup_status |
Returns whether a local API key has been saved. |
configure_api_key |
Securely saves a supplied API key. The server never returns it. |
generate_image |
Generates images from a prompt. |
edit_image |
Edits a local image using a prompt. |
list_image_options |
Lists supported sizes and request limits. |
The server accepts existing local files for editing. It does not accept URLs, and it never returns file contents from arbitrary local paths.
Development
Requires Python 3.10 or newer and uv.
uv sync
uv run python -m unittest discover -s tests
uv run chongplus-image-mcp
Tests are offline and do not require an API key.
Errors
401or403: the API key may be invalid, lack image-model access, or have no remaining quota.403with Cloudflare1010: ChongPlus's edge firewall blocked the request before the API processed it. Contact ChongPlus support with the approximate request time.- Connection errors: check your internet connection and retry.
The API source of truth is https://api.chongplus.plus/tools/image-studio/docs/.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.