# haikuotianko/doubao-image-mcp [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/haikuotianko/doubao-image-mcp  
**GitHub Stars:** 7  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/haikuotianko-doubao-image-mcp

## Description
Generate images with Doubao (Seedream) through your own logged-in web session, no API key: QR-code login, multi-account queueing, and follow-up images in the same conversation.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/haikuotianko/doubao-image-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Start the server:

```sh
./doubao-image-mcp -mcp        # MCP 客户端拉起时用
```

2. Install:

```sh
git clone https://github.com/haikuotianko/doubao-image-mcp.git
```

3. Install:

```sh
go build -o doubao-image-mcp .
```

4. Sign in:

```sh
./doubao-image-mcp -set-session "sessionid=xxxx; ttwid=yyyy; ..."
```

5. Start the server:

```sh
./doubao-image-mcp -mcp
```

6. Install:

```sh
GOOS=darwin  GOARCH=arm64 go build -o /tmp/mac .
```

## Documentation

## What haikuotianko/doubao-image-mcp MCP server does

haikuotianko/doubao-image-mcp connects MCP clients to the image-generation features of the Doubao website at doubao.com. It uses the authentication state from a user’s own web session, so an official Doubao API key is not required. The main generation tool supports text-to-image and image-to-image requests and returns generated files with local paths, CDN links, and dimensions.

Seedream 4.0, 4.5, and 5.0 variants are supported, including the free Seedream 5.0 Flash model and the subscription-based Seedream 5.0 Pro model. Results can include every image produced by a request rather than only one selected image. Follow-up generation can remain in the same conversation context.

## How it works

The service runs locally and communicates with MCP clients through stdio or a local HTTP endpoint. In stdio mode, the client starts the executable with `-mcp`; HTTP mode exposes the MCP endpoint for multiple local clients to share.

On Windows, the desktop application uses an embedded WebView2 window for QR-code login. The login tool can open that flow directly from an AI client, wait for the scan, save the account, and verify the resulting session. macOS and Linux builds are command-line packages without the built-in browser window, so authentication uses an imported browser cookie or session value.

Image requests are queued per account, with one active task per account. Multiple enabled accounts can be ordered and used by the account pool. The service also handles image-size ratio adjustments and can fall back from the newer completion endpoint to an older Doubao channel when necessary.

## Setup and configuration

Prebuilt packages are available for Windows x64, x86, and ARM64, plus command-line packages for macOS Apple Silicon, macOS Intel, Linux x64, and Linux ARM64. Windows QR login requires Microsoft Edge WebView2 Runtime; Windows 11 includes it, while some Windows 10 installations may need to add it.

After extracting a package, configure the MCP client to run the executable with `-mcp`. Claude Desktop and Cursor can use stdio configuration, while a persistent local service can be started with `-http`, such as `-http 127.0.0.1:8770`. The HTTP endpoint has no authentication by default, so it should remain bound to localhost unless an access token is configured. Optional request limits can return HTTP 429 responses after the configured per-minute threshold.

On macOS or Linux, import a Cookie header, cURL command, or session ID with `-set-session` before starting MCP mode. Source builds require Go 1.22+, Node.js 18+, and the Wails CLI when building the desktop application.

## Tools and capabilities

- `doubao_image`: Generate images from text or source images, with model, style, and aspect-ratio options.
- `doubao_login`: Start QR-code login on supported desktop environments or report that an existing session is still valid.
- `doubao_models`: List available models, style keys, and supported aspect ratios.
- `doubao_ping`: Check account login validity and detect possible IP risk controls.
- `doubao_accounts`: List, select, enable, disable, or remove accounts and show account status.
- `doubao_verify`: Open Doubao for manual slider verification when an account is challenged.

Generated images include local output paths, CDN URLs, and dimensions. The desktop interface also provides account management, output-directory settings, test generation, image viewing, and saving controls.

## Limitations and notes

macOS and Linux releases do not include the Windows-style built-in QR scanner. Their cross-platform builds are available, but GUI rendering and platform-specific actions such as opening directories require additional validation on those systems. Windows desktop login depends on WebView2.

The local HTTP mode is unauthenticated unless an access token is set, which can expose image-generation access and consume the associated account quota to any reachable client. Doubao account availability, subscription requirements, login state, and possible IP verification can affect which models or requests succeed.

_Full upstream README: https://allmcps.com/mcp/haikuotianko-doubao-image-mcp/readme_

