Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

An MCP server that lets AI assistants draw pixel art on iDotMatrix LED displays over Bluetooth.

README.md

idotmatrix-mcp

An MCP (Model Context Protocol) server that lets AI assistants draw pixel art on iDotMatrix LED displays over Bluetooth.

Connect your iDotMatrix display to Claude, ChatGPT, or any MCP-compatible client and ask it to draw pictures, icons, animations, dashboards — anything that fits on a 16x16, 32x32, or 64x64 pixel grid.

How It Works

The server maintains an in-memory pixel canvas that matches your display's resolution. AI assistants interact with the canvas through MCP tools — drawing shapes, filling colors, rendering text — then push the finished frame to the physical display over BLE.

AI Assistant  ──MCP tools──>  idotmatrix-mcp  ──BLE──>  iDotMatrix Display
                              (canvas buffer)

Workflow:

  1. The assistant calls discover_devices to find nearby iDotMatrix displays
  2. It connects with connect_device, specifying the screen size
  3. It draws on the canvas using drawing tools (or draw_batch for multiple operations at once)
  4. It calls get_preview to see an ANSI block-art preview in the chat
  5. It calls send_to_display to push the frame to the physical device

Prerequisites

  • Node.js 18+
  • macOS (BLE support via the idotmatrix npm package — uses Noble under the hood)
  • An iDotMatrix LED display powered on and within Bluetooth range

Installation

git clone https://github.com/nailan/idotmatrix-mcp.git
cd idotmatrix-mcp
npm install
npm run build

Configuration

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "idotmatrix": {
      "command": "node",
      "args": ["/absolute/path/to/idotmatrix-mcp/dist/index.js", "--stdio"]
    }
  }
}

Claude Code

Add to your Claude Code settings (.claude/settings.json or global):

{
  "mcpServers": {
    "idotmatrix": {
      "command": "node",
      "args": ["/absolute/path/to/idotmatrix-mcp/dist/index.js", "--stdio"]
    }
  }
}

HTTP mode (other clients)

The server also supports Streamable HTTP transport for clients that don't use stdio:

node dist/index.js                  # defaults to http://127.0.0.1:8321/mcp
node dist/index.js --port=9000      # custom port

Tools

Canvas Management

| Tool | Description | |------|-------------| | clear_canvas(color) | Fill entire canvas with one color and reset | | get_preview() | Return an ANSI block-art preview of the canvas | | list_colors() | List all 48 named colors with hex values |

Drawing Primitives

| Tool | Description | |------|-------------| | draw_rect(x, y, width, height, color, fill?) | Rectangle (filled by default) | | draw_circle(cx, cy, radius, color, fill?) | Circle (filled by default) | | draw_ellipse(cx, cy, rx, ry, color, fill?) | Ellipse with independent radii | | draw_line(x1, y1, x2, y2, color) | Line between two points | | draw_triangle(x1, y1, x2, y2, x3, y3, color, fill?) | Triangle (filled by default) | | draw_rounded_rect(x, y, width, height, radius, color, fill?) | Rectangle with rounded corners | | draw_polygon(cx, cy, radius, sides, color, fill?, rotation?) | Regular polygon (3-12 sides) | | draw_gradient(x, y, width, height, color_from, color_to, direction?) | Linear gradient fill (vertical, horizontal, or diagonal) | | set_pixel(x, y, color) | Set a single pixel | | flood_fill(x, y, color) | Paint-bucket fill from a point | | draw_text(text, x, y, color, font_size?) | Bitmap text (3x5 "small" or 5x7 "medium") |

Batch Drawing

| Tool | Description | |------|-------------| | draw_batch(commands) | Execute multiple draw commands in one call |

draw_batch accepts an array of command objects. Each object has a command field plus the same parameters as the corresponding individual tool. This is the most efficient way to compose scenes — one tool call instead of many round-trips.

[
  { "command": "clear", "color": "dark_blue" },
  { "command": "gradient", "x": 0, "y": 0, "width": 64, "height": 32, "color_from": "navy", "color_to": "sky_blue" },
  { "command": "circle", "cx": 48, "cy": 8, "radius": 5, "color": "yellow" },
  { "command": "ellipse", "cx": 20, "cy": 16, "rx": 10, "ry": 5, "color": "white" },
  { "command": "rounded_rect", "x": 10, "y": 40, "width": 44, "height": 16, "radius": 4, "color": "green" },
  { "command": "polygon", "cx": 50, "cy": 10, "radius": 6, "sides": 5, "color": "gold" },
  { "command": "text", "text": "HI", "x": 28, "y": 44, "color": "white" }
]

Supported commands: clear, rect, circle, ellipse, line, triangle, rounded_rect, polygon, gradient, pixel, fill, text.

Execution stops on the first error and reports which command failed.

Device Management

| Tool | Description | |------|-------------| | discover_devices(timeout_seconds?) | Scan for nearby iDotMatrix BLE devices | | connect_device(device_id, screen_size) | Connect to a device (screen size: 16, 32, or 64) | | disconnect_device() | Disconnect from the current device | | send_to_display() | Push the canvas buffer to the connected display |

Color Palette

The server includes a curated 48-color palette optimized for LED displays. Use list_colors to see all options. Some highlights:

  • Neutrals: black, white, gray, dark_gray, light_gray
  • Warm: red, orange, yellow, coral, salmon, pink, hot_pink
  • Cool: blue, cyan, green, teal, sky_blue, purple, violet
  • Earth: brown, tan, sand, skin, peach, dark_brown
  • Nature: forest, dark_green, lime, spring, mint, olive

Gradients interpolate between any two palette colors, producing smooth intermediate shades not limited to the 48-color palette.

Prompts

The server ships a drawing-guide prompt that gives the AI assistant context about the coordinate system, available tools, color palette, and pixel art tips. MCP clients that support prompts will make this available automatically.

Coordinate System

  • Origin (0, 0) is the top-left corner
  • X increases rightward, Y increases downward
  • Drawing outside bounds is silently clipped

Development

npm run dev          # run with tsx (no build step)
npm run build        # compile TypeScript to dist/
npm run clean        # remove dist/

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use AI & ML servers.