Skip to main content
Qwen Image MCP provides text-to-image generation and reference image editing. You can generate multiple candidate images from a description, or give the assistant an existing image together with editing instructions.

Connect to the Hosted Service

Add a Streamable HTTP server in a client that supports remote MCP, using the URL https://qwen-image.mcp.acedata.cloud/mcp. When using OAuth, choose to sign in to Ace Data Cloud and confirm authorization in your browser. In Codex CLI, you can run the following commands, then enter /mcp in the session to view the server.
To use fixed credentials, add the request header Authorization: Bearer <application API Key> in the client’s private settings, and confirm that the application is authorized to call the selected API. You can create or copy a key in the console under “Applications → General Applications → Key Management”. Application Console

Use an Application Key in Gemini CLI and OpenCode

First, save the application API Key as the client environment variable ACEDATACLOUD_API_TOKEN. The following commands use macOS or Linux shell quoting. In OpenCode 1.x, you can set type: "remote", the hosted URL, and oauth: false for this service in the mcp object of your personal opencode.json, and set the Authorization request header to Bearer {env:ACEDATACLOUD_API_TOKEN}. OpenCode 1.x Configuration

Local stdio Integration

After installing uv, local clients can start the MCP process using standard input and output, and Qwen Image requests are sent to Ace Data Cloud by that process. Claude Desktop users can open the local MCP configuration from the developer settings, merge the server entry below, replace the placeholder with the application API Key itself in their personal configuration, and then restart the client. Clients that support private environment variables can also inject ACEDATACLOUD_API_TOKEN from a credential manager.
mcp-qwen-image package

Initial Verification

After connecting, tell the assistant: “Please call only qwen_image_list_models and tell me which models are currently available for generation and editing.”

Tools and Usage Examples

To change a product image to a white background, you can tell the assistant: “Use the product image I provided as a reference, preserve the product outline, packaging text, and original colors, change the background to pure white, and generate only one image.” The assistant should use qwen_image_edit and put the image URL in image_urls. If a task_id is returned, use it to call qwen_image_get_task, and return the image link after the task is complete. For parameter and result formats, see the API documentation. Image Generation and Editing, Task Query.