# dreamlayer [Health: Active]

**Category:** 🎥 Multimedia Process  
**Repository:** https://github.com/TheDesignFounder/dreamlayer-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 209  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/dreamlayer

## Description
Generate and edit images, remove backgrounds, upscale, and create sprite sheets through DreamLayer.

## Tools
Capabilities this server exposes over MCP:

- **dreamlayer_capabilities** — Use before choosing an image operation or quoting a sprite job. Read supported operations, input limits and sprite_pricing for this API key, including plain_frame_cents for sprites that keep their background. Returns the current API contract; no image input, generation or credits required. Do not use this to create an asset.
- **dreamlayer_balance** — Use before paid image work to check available credits for this API key. Returns promotional, purchased, available and credit_usd. Compare the complete rounded quote against available; separately rounded buckets may sum to 0.1 less. Costs no credits and does not buy credits. Resolve authentication or balance errors before generation.
- **dreamlayer_upload_image** — Use when an edit, background removal, upscale or sprite animation needs a local reference. Requires an absolute path to PNG, JPEG, WebP or supported camera RAW, up to 200 MB. Uploads that file and returns input_asset_id; starts no paid work. Reuse the asset ID for recovery. Not needed for text-to-image. If upload fails, fix the input or retry upload only.
- **dreamlayer_generate** — Use when the user needs an original image, raster logo concept, product or marketing visual, an edit, transparent cutout, upscale, or reference-based sprite animation. Starts paid work within the user's authorized scope and budget. Text-to-image needs a prompt; other operations need input_asset_id. Select operation explicitly. Image operations cost one credit; sprite beta accepts 7–100 frames and returns a ZIP, transparent unless options.background is keep. Read sprite_pricing, quote a transparent sheet from first_tier_cents and additional_frame_cents and a kept-background sheet from the flat plain_frame_cents, round the whole quote upward once to 0.1 credit and set max_credits. Returns execution_id, status, asset, question and last_event_id. needs_input is a question; running work must be resumed, not replaced. No sprite cancellation; failed/expired holds are restored. Not a vector-logo, print-validation, product-fidelity or animation-quality guarantee.
- **dreamlayer_execution** — Use after a timeout, rate limit or uncertain result to read the existing execution's canonical status. Requires execution_id; costs no credits. Returns state and result details, not a newly generated image. If running, wait and resume events; if completed, download. Do not replace an uncertain paid job.
- **dreamlayer_events** — Use to resume running work or a dropped stream without another generation charge. Requires execution_id; pass the last_event_id actually processed. Returns bounded events, status and recovery cursor. If still running or rate-limited, back off before polling again. Do not repeatedly call in a tight loop or submit replacement work.
- **dreamlayer_download** — Use when an existing execution completed or a previous download failed. Requires execution_id and an absolute new local path. Saves the finished image or sprite ZIP and returns path/bytes; starts no generation and spends no new credits. Never overwrites. For output_not_ready check status; for local_output_failed repair the path and download the same execution.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "dreamlayer": {
    "command": "npx",
    "args": ["-y","@dreamlayer/mcp@0.4.0-beta.5"],
    "env": {
      "DREAMLAYER_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `DREAMLAYER_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the dreamlayer MCP server does

The dreamlayer MCP server exposes DreamLayer image workflows to MCP clients. It can create an image from text, edit an uploaded reference, remove a subject's background, upscale an image, and produce sprite-sheet bundles. The available operations are selected through `dreamlayer_generate`; an operation can be named explicitly or inferred from the prompt.

Sprite requests support preset actions such as `walk`, `run`, and `idle`, or a custom animation prompt. The result can include transparent PNG frames, a sheet, an atlas, a preview, and import instructions. Sprite requests accept 7–100 frames and defined square frame sizes from 32 through 1080 pixels.

## How it works

Upload a local PNG, JPEG, WebP, or camera RAW file with `dreamlayer_upload_image` to receive an `input_asset_id`. Pass that owned asset identifier to an image-editing, background-removal, upscaling, or sprite request. Text-to-image generation does not require an upload.

Generation returns an event stream. `dreamlayer_execution` provides canonical state for an execution, while `dreamlayer_events` resumes a dropped or truncated stream from a saved event ID. If a prompt is ambiguous, the service can return a question and conversation ID; a later generation call can provide the response. Once work completes, `dreamlayer_download` saves it to a new local path without starting another generation.

## Setup and configuration

The server requires Node.js 22.12 or later and the `DREAMLAYER_API_KEY` environment variable. Install the published beta with `npx -y @dreamlayer/mcp@0.4.0-beta.5`, or configure the client to run that command as a stdio server. The key must be placed in the MCP server process environment, not only exported in the shell that launches the client.

A key is available from the DreamLayer platform. New accounts begin with zero credits. Use `dreamlayer_capabilities` to inspect permitted operations and `dreamlayer_balance` to check promotional, purchased, and total credits before spending.

## Tools and capabilities

- `dreamlayer_capabilities` reads the key's available contract without spending credits.
- `dreamlayer_balance` reports available credit categories without spending credits.
- `dreamlayer_upload_image` uploads supported inputs up to 200 MB.
- `dreamlayer_generate` starts image or sprite work and returns events.
- `dreamlayer_execution` reads an execution's canonical state.
- `dreamlayer_events` resumes event delivery after interruption.
- `dreamlayer_download` saves a completed execution locally without regenerating it.

The `upscale` operation doubles width and height, with a 4096-pixel maximum per side. Inputs whose longest side exceeds 2048 pixels are rejected before charging. Ordinary image operations cost one credit; sprite pricing uses the requested frame count.

## Limitations and notes

The dreamlayer MCP server does not guarantee correct animation, unseen details, or transparent effects for broad sprite prompts. Larger sprite canvases do not necessarily add detail. Failed frame cutouts may be retried at nearby moments, and a stubborn frame can retain its background.

Requests can be retried safely by reusing the same idempotency key. Streams longer than 256 events are truncated with an execution ID and last event ID for recovery. Error results provide stable codes, reasons, messages, retryability, and request IDs; callers should branch on the structured fields rather than message text.

The repository also contains an unpublished video candidate with separate quote and execution tools. The installation instructions for the published package describe image and sprite functionality, so video support should not be assumed from the stable install alone. Outputs should be inspected for task-specific quality and import requirements.

_Full upstream README: https://allmcps.com/mcp/dreamlayer/readme_

