Skip to main content
Glama

SeedreamMCP

PyPI version PyPI downloads Python 3.10+ License: MIT MCP

Ein Model Context Protocol (MCP)-Server für die KI-Bildgenerierung und -bearbeitung unter Verwendung der Seedream-Modelle von ByteDance über die AceDataCloud API.

Generieren und bearbeiten Sie KI-Bilder direkt aus Claude, VS Code oder einem beliebigen MCP-kompatiblen Client.

Funktionen

  • Text-zu-Bild-Generierung — Erstellen Sie hochwertige Bilder aus Text-Prompts (Chinesisch & Englisch)

  • Bildbearbeitung — Modifizieren Sie vorhandene Bilder mit KI (Stilübertragung, Hintergrundänderung, virtuelle Anprobe)

  • Mehrere Modelle — Seedream v5.0 (Flaggschiff), v4.5, v4.0, v3.0 T2I, SeedEdit v3.0 I2I

  • Multi-Auflösung — 1K, 2K, 3K, 4K, adaptiv und benutzerdefinierte Abmessungen

  • Seed-Steuerung — Reproduzierbare Ergebnisse mit dem Seed-Parameter (v3-Modelle)

  • Sequenzielle Generierung — Generieren Sie verwandte Bilder in einer Sequenz (v4.5/v4.0)

  • Streaming — Progressive Bildbereitstellung (v4.5/v4.0)

  • Aufgabenverfolgung — Überwachen Sie den Generierungsfortschritt und rufen Sie Ergebnisse ab

Related MCP server: Doubao Image/Video Generation MCP Server

Tool-Referenz

Tool

Beschreibung

seedream_generate_image

Generiert ein KI-Bild aus einem Text-Prompt unter Verwendung des Seedream-Modells von ByteDance.

seedream_edit_image

Bearbeitet oder modifiziert vorhandene Bilder unter Verwendung des Seedream/SeedEdit-Modells von ByteDance.

seedream_get_task

Fragt den Status und das Ergebnis einer Seedream-Bildgenerierungs- oder Bearbeitungsaufgabe ab.

seedream_get_tasks_batch

Fragt mehrere Seedream-Bildaufgaben gleichzeitig ab.

seedream_list_models

Listet alle verfügbaren Seedream-Modelle mit ihren Fähigkeiten und Preisen auf.

seedream_list_sizes

Listet alle verfügbaren Bildgrößen und Auflösungsoptionen für Seedream auf.

Schnellstart

1. API-Token abrufen

  1. Registrieren Sie sich auf der AceDataCloud-Plattform

  2. Gehen Sie zur API-Dokumentationsseite

  3. Klicken Sie auf "Acquire", um Ihr API-Token zu erhalten

  4. Kopieren Sie das Token für die untenstehende Verwendung

2. Den gehosteten Server verwenden (Empfohlen)

AceDataCloud hostet einen verwalteten MCP-Server — keine lokale Installation erforderlich.

Endpunkt: https://seedream.mcp.acedata.cloud/mcp

Alle Anfragen erfordern ein Bearer-Token. Verwenden Sie das API-Token aus Schritt 1.

Claude.ai

Verbinden Sie sich direkt auf Claude.ai mit OAuth — kein API-Token erforderlich:

  1. Gehen Sie zu Claude.ai Einstellungen → Integrationen → Mehr hinzufügen

  2. Geben Sie die Server-URL ein: https://seedream.mcp.acedata.cloud/mcp

  3. Schließen Sie den OAuth-Login-Prozess ab

  4. Beginnen Sie mit der Verwendung der Tools in Ihrer Konversation

Claude Desktop

Fügen Sie dies zu Ihrer Konfiguration hinzu (~/Library/Application Support/Claude/claude_desktop_config.json unter macOS):

{
  "mcpServers": {
    "seedream": {
      "type": "streamable-http",
      "url": "https://seedream.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Cursor / Windsurf

Fügen Sie dies zu Ihrer MCP-Konfiguration hinzu (.cursor/mcp.json oder .windsurf/mcp.json):

{
  "mcpServers": {
    "seedream": {
      "type": "streamable-http",
      "url": "https://seedream.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

VS Code (Copilot)

Fügen Sie dies zu Ihrer VS Code MCP-Konfiguration hinzu (.vscode/mcp.json):

{
  "servers": {
    "seedream": {
      "type": "streamable-http",
      "url": "https://seedream.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Oder installieren Sie die Ace Data Cloud MCP-Erweiterung für VS Code, die alle 15 MCP-Server mit einer Ein-Klick-Einrichtung bündelt.

JetBrains IDEs

  1. Gehen Sie zu Einstellungen → Tools → AI Assistant → Model Context Protocol (MCP)

  2. Klicken Sie auf Hinzufügen → HTTP

  3. Einfügen:

{
  "mcpServers": {
    "seedream": {
      "url": "https://seedream.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Claude Code

Claude Code unterstützt MCP-Server nativ:

claude mcp add seedream --transport http https://seedream.mcp.acedata.cloud/mcp \
  -h "Authorization: Bearer YOUR_API_TOKEN"

Oder fügen Sie es zu .mcp.json Ihres Projekts hinzu:

{
  "mcpServers": {
    "seedream": {
      "type": "streamable-http",
      "url": "https://seedream.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Cline

Fügen Sie dies zu den MCP-Einstellungen von Cline hinzu (.cline/mcp_settings.json):

{
  "mcpServers": {
    "seedream": {
      "type": "streamable-http",
      "url": "https://seedream.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Amazon Q Developer

Fügen Sie dies zu Ihrer MCP-Konfiguration hinzu:

{
  "mcpServers": {
    "seedream": {
      "type": "streamable-http",
      "url": "https://seedream.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Roo Code

Fügen Sie dies zu den Roo Code MCP-Einstellungen hinzu:

{
  "mcpServers": {
    "seedream": {
      "type": "streamable-http",
      "url": "https://seedream.mcp.acedata.cloud/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_TOKEN"
      }
    }
  }
}

Continue.dev

Fügen Sie dies zu .continue/config.yaml hinzu:

mcpServers:
  - name: seedream
    type: streamable-http
    url: https://seedream.mcp.acedata.cloud/mcp
    headers:
      Authorization: "Bearer YOUR_API_TOKEN"

Zed

Fügen Sie dies zu den Einstellungen von Zed hinzu (~/.config/zed/settings.json):

{
  "language_models": {
    "mcp_servers": {
      "seedream": {
        "url": "https://seedream.mcp.acedata.cloud/mcp",
        "headers": {
          "Authorization": "Bearer YOUR_API_TOKEN"
        }
      }
    }
  }
}

cURL-Test

# Health check (no auth required)
curl https://seedream.mcp.acedata.cloud/health

# MCP initialize
curl -X POST https://seedream.mcp.acedata.cloud/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'

3. Oder lokal ausführen (Alternative)

Wenn Sie den Server lieber auf Ihrem eigenen Rechner ausführen möchten:

# Install from PyPI
pip install mcp-seedream-pro
# or
uvx mcp-seedream-pro

# Set your API token
export ACEDATACLOUD_API_TOKEN="your_token_here"

# Run (stdio mode for Claude Desktop / local clients)
mcp-seedream-pro

# Run (HTTP mode for remote access)
mcp-seedream-pro --transport http --port 8000

Claude Desktop (Lokal)

{
  "mcpServers": {
    "seedream": {
      "command": "uvx",
      "args": ["mcp-seedream-pro"],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "your_token_here"
      }
    }
  }
}

Docker (Self-Hosting)

docker pull ghcr.io/acedatacloud/mcp-seedream-pro:latest
docker run -p 8000:8000 ghcr.io/acedatacloud/mcp-seedream-pro:latest

Clients verbinden sich mit ihrem eigenen Bearer-Token — der Server extrahiert das Token aus dem Authorization-Header jeder Anfrage.

Verfügbare Tools

Bildgenerierung & Bearbeitung

Tool

Beschreibung

seedream_generate_image

Generiert ein Bild aus einem Text-Prompt

seedream_edit_image

Bearbeitet oder modifiziert vorhandene Bilder mit KI

Aufgabenverwaltung

Tool

Beschreibung

seedream_get_task

Fragt den Status und das Ergebnis einer einzelnen Aufgabe ab

seedream_get_tasks_batch

Fragt mehrere Aufgaben gleichzeitig ab

Informationen

Tool

Beschreibung

seedream_list_models

Listet verfügbare Modelle mit Fähigkeiten auf

seedream_list_sizes

Listet verfügbare Bildgrößenoptionen auf

Verfügbare Modelle

Modell

Version

Typ

Am besten geeignet für

Preis

doubao-seedream-5-0-260128

v5.0

Text-zu-Bild

Beste Qualität, neuestes Flaggschiff, Websuche

~$0.040/Bild

doubao-seedream-4-5-251128

v4.5

Text-zu-Bild

Vorheriges Flaggschiff, großartige Qualität

~$0.037/Bild

doubao-seedream-4-0-250828

v4.0

Text-zu-Bild

Bestes Preis-Leistungs-Verhältnis, die meisten Aufgaben

~$0.030/Bild

doubao-seedream-3-0-t2i-250415

v3.0

Text-zu-Bild

Reproduzierbare Ergebnisse

~$0.038/Bild

doubao-seededit-3-0-i2i-250628

v3.0

Bild-zu-Bild

Bildbearbeitung

~$0.046/Bild

Nutzungsbeispiele

Bild aus Prompt generieren

User: Create a photorealistic image of a cat in a garden

Claude: I'll generate that image for you.
[Calls seedream_generate_image with detailed prompt]
→ Returns task_id and image URL

Bildbearbeitung

User: Change the background of this photo to a beach
[Provides image URL]

Claude: I'll edit that image for you.
[Calls seedream_edit_image with image URL and edit description]

Unterstützung für chinesische Prompts

User: 生成一幅中国山水画,有远山、流水和古松

Claude: 好的,我来为您生成这幅山水画。
[Calls seedream_generate_image with Chinese prompt]

Reproduzierbare Generierung

User: Generate a landscape and make sure I can recreate the exact same image later

Claude: I'll use the v3 model with a fixed seed.
[Calls seedream_generate_image with model=doubao-seedream-3-0-t2i-250415, seed=42]

Konfiguration

Umgebungsvariablen

Variable

Beschreibung

Standard

ACEDATACLOUD_API_TOKEN

API-Token von AceDataCloud

Erforderlich

ACEDATACLOUD_API_BASE_URL

API-Basis-URL

https://api.acedata.cloud

ACEDATACLOUD_OAUTH_CLIENT_ID

OAuth-Client-ID (gehosteter Modus)

—

ACEDATACLOUD_PLATFORM_BASE_URL

Plattform-Basis-URL

https://platform.acedata.cloud

SEEDREAM_REQUEST_TIMEOUT

Anfrage-Timeout in Sekunden

1800

LOG_LEVEL

Logging-Level

INFO

Befehlszeilenoptionen

mcp-seedream-pro --help

Options:
  --version          Show version
  --transport        Transport mode: stdio (default) or http
  --port             Port for HTTP transport (default: 8000)

Entwicklung

Entwicklungsumgebung einrichten

# Clone repository
git clone https://github.com/AceDataCloud/SeedreamMCP.git
cd SeedreamMCP

# Create virtual environment
python -m venv .venv
source .venv/bin/activate  # or `.venv\Scripts\activate` on Windows

# Install with dev dependencies
pip install -e ".[dev,test]"

Tests ausführen

# Run unit tests
pytest

# Run with coverage
pytest --cov=core --cov=tools

# Run integration tests (requires API token)
pytest -m integration

Code-Qualität

# Format code
ruff format .

# Lint code
ruff check .

# Type check
mypy core tools main.py

Erstellen & Veröffentlichen

# Install build dependencies
pip install -e ".[release]"

# Build package
python -m build

# Upload to PyPI
twine upload dist/*

Projektstruktur

SeedreamMCP/
├── core/                   # Core modules
│   ├── __init__.py
│   ├── client.py          # HTTP client for Seedream API
│   ├── config.py          # Configuration management
│   ├── exceptions.py      # Custom exceptions
│   ├── server.py          # MCP server initialization
│   ├── types.py           # Type definitions
│   └── utils.py           # Utility functions
├── tools/                  # MCP tool definitions
│   ├── __init__.py
│   ├── image_tools.py     # Image generation/editing tools
│   ├── task_tools.py      # Task query tools
│   └── info_tools.py      # Model & size info tools
├── prompts/                # MCP prompt templates
│   └── __init__.py
├── tests/                  # Test suite
│   ├── conftest.py
│   ├── test_config.py
│   └── test_utils.py
├── deploy/                 # Deployment configs
│   ├── run.sh
│   └── production/
│       ├── deployment.yaml
│       ├── ingress.yaml
│       └── service.yaml
├── .github/                # GitHub Actions workflows
│   ├── dependabot.yml
│   └── workflows/
│       ├── ci.yaml
│       ├── claude.yml
│       ├── deploy.yaml
│       └── publish.yml
├── .env.example           # Environment template
├── .gitignore
├── .ruff.toml             # Ruff linter config
├── CHANGELOG.md
├── Dockerfile             # Docker image for HTTP mode
├── docker-compose.yaml    # Docker Compose config
├── LICENSE
├── main.py                # Entry point
├── pyproject.toml         # Project configuration
└── README.md

API-Referenz

Dieser Server umschließt die AceDataCloud Seedream API:

Anwendungsfälle

  • KI-Kunstschöpfung — Generieren Sie atemberaubende Kunstwerke, Illustrationen und digitale Kunst

  • Produktfotografie — Erstellen Sie professionelle Produktszenenkompositionen

  • Content-Erstellung — Generieren Sie Bilder für Blogs, soziale Medien, Marketing

  • Virtuelle Anprobe — Visualisieren Sie Kleidung an verschiedenen Modellen

  • Stilübertragung — Transformieren Sie Fotos in verschiedene Kunststile

  • Spieldesign — Konzeptkunst, Charakterdesign, Umgebungsdesign

  • E-Commerce — Produkt-Mockups, Lifestyle-Aufnahmen, Bannerbilder

Lizenz

MIT-Lizenz - siehe die LICENSE-Datei für Details.

Available Tools

7 tools
seedream_decompose_imageDecompose an image with SeedreamB
Destructive
Inspect

Decompose one image into a base image and up to 16 editable transparent layers.

Inputs: image (required), size, prompt, watermark, +2 more. Returns: result

seedream_edit_imageEdit an image with SeedreamA
Destructive
Inspect

Edit or modify existing images using ByteDance's Seedream/SeedEdit model.

This tool modifies existing images based on text instructions. It can change
styles, backgrounds, attributes, clothing, and more. Supports single or
multiple image inputs.

Use this when:
- You want to modify or transform an existing image
- You need to change style, background, colors, or attributes
- You want to apply artistic transformations (watercolor, oil painting, etc.)
- You need virtual try-on (clothing on person)
- You want to place objects in different scenes

Common use cases:
- Style transfer: "Convert to anime style", "Make it look like a pencil sketch"
- Background change: "Replace background with a sunset beach"
- Attribute edit: "Change hair color to blonde", "Add sunglasses"
- Virtual try-on: Provide person image + clothing image
- Scene composition: Place products in realistic environments

Returns:
    JSON with task_id, trace_id, success status, and edited image data
    including image URLs.

Inputs: image (required), prompt (required), size, model, +9 more. Returns: result

seedream_generate_imageGenerate a Seedream imageA
Destructive
Inspect

Generate an AI image from a text prompt using ByteDance's Seedream model.

This tool creates high-quality images from text descriptions using ByteDance's
Seedream models (powered by Doubao). Supports multiple model versions with different
capabilities and quality levels.

Use this when:
- You want to generate a new image from scratch based on a text description
- You need high-quality AI-generated images (photos, illustrations, art)
- You want to create images with specific styles, compositions, or themes

Do NOT use this when:
- You want to edit or modify an existing image (use seedream_edit_image instead)
- You need to combine multiple images (use seedream_edit_image instead)

Model selection guide:
- v5.0 Lite (doubao-seedream-5-0-lite-260128): Image sets, streaming, and web search
- v4.5 (doubao-seedream-4-5-251128): Previous flagship, great quality and detail
- v4.0 (doubao-seedream-4-0-250828): Stable and cost-effective, great for most tasks
Returns:
    JSON with task_id, trace_id, success status, and generated image data
    including image URLs.

Inputs: prompt (required), size, model, tools, +7 more. Returns: result

seedream_get_taskGet Seedream task resultA
Read-onlyIdempotent
Inspect

Query the status and result of a Seedream image generation or edit task.

Use this to check if a generation/edit is complete and retrieve the resulting
image URLs and metadata.

Use this when:
- You want to check if an image generation has completed
- You need to retrieve image URLs from a previous generation
- You want to get the full details of a generated/edited image

Returns:
    Task status and image information including URLs, prompts, and metadata.

Inputs: task_id (required). Returns: result

seedream_get_tasks_batchGet Seedream task results in batchA
Read-onlyIdempotent
Inspect

Query multiple Seedream image tasks at once.

Efficiently check the status of multiple tasks in a single request.
More efficient than calling seedream_get_task multiple times.

Use this when:
- You have multiple pending generations to check
- You want to get status of several images at once
- You're tracking a batch of generations

Returns:
    Status and image information for all queried tasks.

Inputs: task_ids (required). Returns: result

seedream_list_modelsList Seedream modelsA
Read-onlyIdempotent
Inspect

List all available Seedream models with their capabilities and pricing.

Use this when:
- User asks what models are available
- You need to help choose the right model for a task
- You want to compare model capabilities

Returns:
    Formatted table of all Seedream models with descriptions.

Inputs: no named parameters. Returns: result

seedream_list_sizesList Seedream image sizesA
Read-onlyIdempotent
Inspect

List all available image sizes and resolution options for Seedream.

Use this when:
- User asks about available image sizes
- You need to help choose the right resolution
- You want to understand size options

Returns:
    Formatted list of all size options with descriptions.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct action on a distinct resource: create (generate), modify (edit), split into layers (decompose), poll one task (get_task), poll many (get_tasks_batch), and metadata lookups (list_models, list_sizes). The generate/edit descriptions even include explicit 'Do NOT use this when...' cross-references, so misselection risk is minimal.

    Naming Consistency5/5

    All seven tools follow the same `seedream_<verb>_<noun>` snake_case pattern, and the verbs are semantically consistent (generate/edit/decompose for mutations, get/list for reads). No style mixing or vagueness.

    Tool Count5/5

    Seven tools is tight and well-scoped for an async image-generation service: two creation paths, one advanced decompose, two polling tools, and two metadata lookups. Nothing appears redundant or bolted on.

    Completeness4/5

    The core lifecycle (submit generate/edit, poll single or batch, discover models and sizes, decompose) is fully covered. Minor gaps remain: no task cancellation, no delete/cleanup, and no way to list recent or in-flight tasks without already knowing task IDs.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers