Skip to main content
Glama

SeedreamMCP

PyPI version PyPI downloads Python 3.10+ License: MIT MCP

Un servidor de Model Context Protocol (MCP) para la generación y edición de imágenes con IA utilizando los modelos Seedream de ByteDance a través de la API de AceDataCloud.

Genera y edita imágenes con IA directamente desde Claude, VS Code o cualquier cliente compatible con MCP.

Características

  • Generación de texto a imagen — Crea imágenes de alta calidad a partir de prompts de texto (chino e inglés)

  • Edición de imágenes — Modifica imágenes existentes con IA (transferencia de estilo, cambio de fondo, prueba virtual)

  • Múltiples modelos — Seedream v5.0 (buque insignia), v4.5, v4.0, v3.0 T2I, SeedEdit v3.0 I2I

  • Resolución múltiple — 1K, 2K, 3K, 4K, adaptativa y dimensiones personalizadas

  • Control de semilla (Seed) — Resultados reproducibles con el parámetro de semilla (modelos v3)

  • Generación secuencial — Genera imágenes relacionadas en secuencia (v4.5/v4.0)

  • Streaming — Entrega progresiva de imágenes (v4.5/v4.0)

  • Seguimiento de tareas — Monitorea el progreso de la generación y recupera resultados

Related MCP server: Doubao Image/Video Generation MCP Server

Referencia de herramientas

Herramienta

Descripción

seedream_generate_image

Genera una imagen con IA a partir de un prompt de texto usando el modelo Seedream de ByteDance.

seedream_edit_image

Edita o modifica imágenes existentes usando el modelo Seedream/SeedEdit de ByteDance.

seedream_get_task

Consulta el estado y el resultado de una tarea de generación o edición de imágenes de Seedream.

seedream_get_tasks_batch

Consulta múltiples tareas de imágenes de Seedream a la vez.

seedream_list_models

Lista todos los modelos Seedream disponibles con sus capacidades y precios.

seedream_list_sizes

Lista todos los tamaños de imagen y opciones de resolución disponibles para Seedream.

Inicio rápido

1. Obtén tu token de API

  1. Regístrate en la Plataforma AceDataCloud

  2. Ve a la página de documentación de la API

  3. Haz clic en "Acquire" para obtener tu token de API

  4. Copia el token para usarlo a continuación

2. Usa el servidor alojado (Recomendado)

AceDataCloud aloja un servidor MCP gestionado — no requiere instalación local.

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

Todas las solicitudes requieren un token Bearer. Usa el token de API del Paso 1.

Claude.ai

Conéctate directamente en Claude.ai con OAuth — no se necesita token de API:

  1. Ve a Settings → Integrations → Add More en Claude.ai

  2. Introduce la URL del servidor: https://seedream.mcp.acedata.cloud/mcp

  3. Completa el flujo de inicio de sesión OAuth

  4. Empieza a usar las herramientas en tu conversación

Claude Desktop

Añádelo a tu configuración (~/Library/Application Support/Claude/claude_desktop_config.json en macOS):

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

Cursor / Windsurf

Añádelo a tu configuración de MCP (.cursor/mcp.json o .windsurf/mcp.json):

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

VS Code (Copilot)

Añádelo a tu configuración de MCP de VS Code (.vscode/mcp.json):

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

O instala la extensión Ace Data Cloud MCP para VS Code, que agrupa los 15 servidores MCP con una configuración de un solo clic.

IDEs de JetBrains

  1. Ve a Settings → Tools → AI Assistant → Model Context Protocol (MCP)

  2. Haz clic en Add → HTTP

  3. Pega:

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

Claude Code

Claude Code admite servidores MCP de forma nativa:

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

O añádelo al archivo .mcp.json de tu proyecto:

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

Cline

Añádelo a la configuración de MCP de Cline (.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

Añádelo a tu configuración de MCP:

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

Roo Code

Añádelo a la configuración de MCP de Roo Code:

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

Continue.dev

Añádelo a .continue/config.yaml:

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

Zed

Añádelo a la configuración de Zed (~/.config/zed/settings.json):

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

Prueba con cURL

# 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. O ejecútalo localmente (Alternativa)

Si prefieres ejecutar el servidor en tu propia máquina:

# 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 (Local)

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

Docker (Autoalojamiento)

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

Los clientes se conectan con su propio token Bearer — el servidor extrae el token del encabezado Authorization de cada solicitud.

Herramientas disponibles

Generación y edición de imágenes

Herramienta

Descripción

seedream_generate_image

Genera una imagen a partir de un prompt de texto

seedream_edit_image

Edita o modifica imágenes existentes con IA

Gestión de tareas

Herramienta

Descripción

seedream_get_task

Consulta el estado y el resultado de una sola tarea

seedream_get_tasks_batch

Consulta múltiples tareas a la vez

Información

Herramienta

Descripción

seedream_list_models

Lista los modelos disponibles con sus capacidades

seedream_list_sizes

Lista las opciones de tamaño de imagen disponibles

Modelos disponibles

Modelo

Versión

Tipo

Ideal para

Precio

doubao-seedream-5-0-260128

v5.0

Texto a imagen

Mejor calidad, último buque insignia, búsqueda web

~$0.040/imagen

doubao-seedream-4-5-251128

v4.5

Texto a imagen

Anterior buque insignia, gran calidad

~$0.037/imagen

doubao-seedream-4-0-250828

v4.0

Texto a imagen

Mejor valor, más tareas

~$0.030/imagen

doubao-seedream-3-0-t2i-250415

v3.0

Texto a imagen

Resultados reproducibles

~$0.038/imagen

doubao-seededit-3-0-i2i-250628

v3.0

Imagen a imagen

Edición de imágenes

~$0.046/imagen

Ejemplos de uso

Generar imagen a partir de un prompt

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

Edición de imágenes

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]

Soporte para prompts en chino

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

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

Generación reproducible

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]

Configuración

Variables de entorno

Variable

Descripción

Predeterminado

ACEDATACLOUD_API_TOKEN

Token de API de AceDataCloud

Requerido

ACEDATACLOUD_API_BASE_URL

URL base de la API

https://api.acedata.cloud

ACEDATACLOUD_OAUTH_CLIENT_ID

ID de cliente OAuth (modo alojado)

—

ACEDATACLOUD_PLATFORM_BASE_URL

URL base de la plataforma

https://platform.acedata.cloud

SEEDREAM_REQUEST_TIMEOUT

Tiempo de espera de solicitud en segundos

1800

LOG_LEVEL

Nivel de registro

INFO

Opciones de línea de comandos

mcp-seedream-pro --help

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

Desarrollo

Configurar el entorno de desarrollo

# 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]"

Ejecutar pruebas

# Run unit tests
pytest

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

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

Calidad del código

# Format code
ruff format .

# Lint code
ruff check .

# Type check
mypy core tools main.py

Construir y publicar

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

# Build package
python -m build

# Upload to PyPI
twine upload dist/*

Estructura del proyecto

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

Referencia de la API

Este servidor envuelve la API Seedream de AceDataCloud:

Casos de uso

  • Creación de arte con IA — Genera ilustraciones, arte digital y obras de arte impresionantes

  • Fotografía de producto — Crea composiciones profesionales de escenas de productos

  • Creación de contenido — Genera imágenes para blogs, redes sociales, marketing

  • Prueba virtual — Visualiza ropa en diferentes modelos

  • Transferencia de estilo — Transforma fotos en diferentes estilos artísticos

  • Diseño de juegos — Arte conceptual, diseño de personajes, diseño de entornos

  • Comercio electrónico — Maquetas de productos, fotos de estilo de vida, imágenes de banners

Licencia

Licencia MIT - consulta el archivo LICENSE para más detalles.

Enlaces

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