doubao-image-mcp is a local MCP service used to expose the image generation capability of the Doubao web version (doubao.com) to clients that support the MCP protocol (such as Claude Desktop, Cursor, etc.). It does not require an official API Key; instead, it directly calls using the user's own web login session, and supports the entire Seedream 4.0 / 4.5 / 5.0 model series. The project comes with a desktop client (based on Wails + WebView2), responsible for QR code login, multi-account management, test image generation, and troubleshooting.
Main capabilities:
- MCP exposes 6 tools externally: doubao_image (generate images), doubao_models (query models/styles/aspect ratios), doubao_login (pop-up QR code login), doubao_ping (check login status), doubao_verify (pass slider verification), doubao_accounts (account pool status).
- Watermark-free direct links: select image_raw / dwm3 template addresses from the SSE response and return image links that can be accessed directly.
- Full return of multiple images: the server may return 1 to 4 images at a time, and all are returned; images missed by structured parsing are recovered from the raw text.
- Aspect ratio correction: the server often ignores the requested aspect ratio; by default, a blurred background is used to pad to the target ratio (no processing if the deviation is within 3%).
- Dual-channel fallback: when the new endpoint /chat/completion fails, it automatically falls back to the old samantha channel.
- Multi-account queuing: each account runs only one task at a time, and when all are busy, tasks wait in a queue; supports account sorting and default account settings.
- Conversation reuse: by default, all generations are placed into the same conversation to avoid too many sessions on the web version; supports three levels of context isolation.
Usage:
- Windows 10/11: download the precompiled package from Releases (x64/x86/ARM64), unzip it, and double-click to run. On first use, click "QR code login" and scan with the Doubao App. In the MCP client, configure the stdio command (e.g. <path>\doubao-image-mcp.exe -mcp) or start the local HTTP service (by default it only listens on 127.0.0.1, with no authentication).
- macOS/Linux: a command-line version is provided; MCP functionality is complete, but there is no GUI or built-in QR code login. It must be done via -set-session Manually import Cookie or sessionid (copied from browser developer tools).
- The client configuration path can be generated via the "MCP Service" card in the GUI or the -diagnose command.
Use cases:
- Directly call Doubao's image generation capability in MCP clients such as Claude Desktop and Cursor.
- Individual users who need multi-account management, queue scheduling, and batch image generation.
- Scenarios where you want to avoid using the official API Key and directly use the free quota of the web version.
Limitations and notes:
- The project is an unofficial reverse-engineered implementation that calls the Doubao web version interface and may stop working at any time due to server-side adjustments.
- Image-to-image (ref_images) uses the old samantha channel and is more fragile than text-to-image.
- The server sometimes ignores the requested aspect ratio and fills in with a blurred background by default; this can be disabled.
- Full support on Windows (GUI + QR code login); macOS/Linux only have a command-line version, and the GUI has not been verified by the author.
- HTTP mode has no authentication by default and only binds to 127.0.0.1; do not expose it to the LAN.
- The verification status has an expiration time and is bound to the IP address. Do not open the Doubao web version during verification or during the risk-control cooldown period.
- For personal learning and self-use only. Please comply with the Doubao User Agreement and do not use it to mass-farm quota, provide services to others, or distribute other people's accounts.
- The project is licensed under the MIT License and is provided "as is" without any warranty.