Allows using Cloudflare R2, KV, or D1 as swappable storage backends for managing server data and display assets.
Enables loading, resizing, and pushing JPEG images directly to Divoom Pixoo LED matrices.
Includes support for OpenTelemetry instrumentation to provide observability and monitoring of server operations.
Provides support for using Supabase as a storage backend provider for server data and configurations.
Supports loading and pushing SVG vector graphics to Divoom Pixoo devices with automatic resizing to the display grid.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Pixoo MCP Serverdisplay 'Meeting in Progress' in red scrolling text and set brightness to 50"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
π οΈ Tools Overview
This server provides 4 tools for composing and pushing visual content to Pixoo displays:
Tool | Description | Annotations |
| Compose a scene from layered elements (text, images, sprites, shapes, bitmaps, pixels) and push to device. Supports multi-frame animation with per-element keyframes. |
|
| Load a single image file (PNG, JPEG, WebP, GIF, AVIF, TIFF, SVG), resize to the display grid, and push to the device. |
|
| Push native on-device scrolling text overlay via the device's built-in fonts. Overlays persist across channel switches. |
|
| Read or change device settings (brightness, channel, screen on/off, clock face). Call with no parameters to read config. |
|
Both pixoo_compose and pixoo_push_image auto-switch the device to the custom channel before pushing.
π Getting Started
MCP Client Settings
Add the following to your MCP client configuration file (e.g., claude_desktop_config.json). Clients have different ways to configure servers, so refer to your client's documentation for specifics.
Be sure to set PIXOO_IP to the IP address of your Pixoo device on the local network.
Claude Code
claude mcp add pixoo-mcp-server -e PIXOO_IP=YOUR_DEVICE_IP -- bunx @cyanheads/pixoo-mcp-server@latestUsing bunx (Bun)
{
"mcpServers": {
"pixoo-mcp-server": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/pixoo-mcp-server@latest"],
"env": {
"PIXOO_IP": "192.168.1.100",
"PIXOO_SIZE": "64",
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}Streamable HTTP Configuration
MCP_TRANSPORT_TYPE=http
MCP_HTTP_PORT=3010Prerequisites
A Divoom Pixoo device on the same local network
Development Environment Setup
Clone the repository:
git clone https://github.com/cyanheads/pixoo-mcp-server.git
cd pixoo-mcp-serverInstall dependencies:
bun installConfigure environment:
cp .env.example .env
# Edit .env and set PIXOO_IP to your device's IP addressRun:
bun run dev:stdio # Development (hot reload)
bun run devcheck # Lint, format, typecheck, audit
bun run rebuild && bun run start:stdio # Production⨠Features
Full Compose Pipeline: Layer text, images, sprites, shapes, bitmaps, and individual pixels β static or animated up to 40 frames.
Animation Keyframes: Per-element property animation with linear interpolation for numbers, color lerping for hex values, and snap transitions for booleans.
Sprite Support: Load sprite sheets with automatic downsampling and optional body/dark color overrides via
@cyanheads/pixoo-toolkit.Bitmap Font Rendering: Built-in
standard(5x7) andcompact(3x5) pixel fonts for crisp text at any display size.Auto-Save Previews: Optionally save PNG previews (static) or animated GIFs to a configurable output directory.
Native Text Overlays: Hardware-rendered scrolling text via device firmware β persists across channel switches with configurable font, alignment, and speed.
Built on the mcp-ts-template β declarative tool definitions, structured error handling, pluggable auth (JWT/OAuth), swappable storage backends, OpenTelemetry observability, and typed DI.
βοΈ Configuration
Key environment variables:
Variable | Description | Default |
| IP address of the Pixoo device on the local network | (required) |
| Display resolution: |
|
| Directory for auto-saved preview images |
|
| Transport: |
|
| HTTP server port |
|
| HTTP server hostname |
|
| Authentication mode: |
|
| Storage backend: |
|
| Log level ( |
|
| Enable OpenTelemetry instrumentation |
|
π¨ Tool Details
pixoo_compose
The primary tool. Compose a scene from layered elements and push to the device. Elements are drawn back-to-front.
{
"background": "black",
"elements": [
{ "type": "rect", "x": 0, "y": 0, "w": 64, "h": 20, "color": "#1a1a2e" },
{
"type": "text",
"text": "Hello!",
"x": 0,
"y": 6,
"color": "white",
"font": "standard",
"centered": true
},
{
"type": "bitmap",
"x": 28,
"y": 40,
"scale": 2,
"palette": ["", "#ff4488", "#cc2266"],
"data": ["0120210", "1111111", "1111111", "0111110", "0011100", "0001000"]
}
]
}Element types: text, image, sprite, rect, circle, line, bitmap, pixels
Animation: Set frames > 1 and add animate keyframes to elements:
{
"frames": 10,
"speed": 150,
"elements": [
{
"type": "text",
"text": "Hello",
"x": 0,
"y": 2,
"color": "#ffffff",
"centered": true,
"animate": {
"color": [
[0, "#ffffff"],
[5, "#ff8800"],
[9, "#ffffff"]
]
}
}
]
}Output options: Set output to an absolute path to save a preview PNG (static) or GIF (animated). Set push: false to skip device push and only save previews.
See docs/pixoo-mcp-server.md for full element and animation documentation.
pixoo_push_image
Shortcut to load and push a single image file. Supports PNG, JPEG, WebP, GIF, AVIF, TIFF, and SVG.
{ "path": "/path/to/image.png", "fit": "contain", "kernel": "nearest" }Option | Values | Default |
|
|
|
|
|
|
pixoo_text
Native on-device scrolling text with hardware rendering. Overlays render on top of the current display content and persist across channel switches.
{ "text": "Hello World", "color": "#00ff00", "speed": 50, "direction": "left" }Use different IDs (0β19) to stack multiple overlays. Set clear: true to remove an overlay.
pixoo_control
Read or change device settings. Call with no parameters to read current config.
{ "brightness": 75, "channel": "custom" }β οΈ Device Quirks
~1 push/sec recommended β device may freeze after ~300 rapid pushes
Channel must be
customto display pushed content βcomposeandpush_imageauto-switchText overlays persist across channel switches β use
clear: trueto removeMax ~40 animation frames for stability
~5s "Loading.." overlay when a new animation starts
GIF ID reset before each push β handled automatically by the toolkit
π References
Example Output β sample PNGs and animated GIFs generated by the compose tool
@cyanheads/pixoo-toolkit β rendering primitives and device communication
mcp-ts-template β server foundation
Contributing
Issues and PRs welcome. Please run bun run devcheck && bun test before submitting.