Plai Pix MCP

Have your favorite AI tool draw with Plai Pix

Server URL
https://api.justplai.com/plai-pix/mcp

Connect

ChatGPT

Open Plugins, choose Add custom MCP server, paste the server URL, and pick no authentication. The canvas opens right in the chat, and you can draw on it too.

Claude

In Settings, open Connectors, choose Add custom connector, and paste the server URL.

Claude Code

Terminal
claude mcp add --transport http plai-pix https://api.justplai.com/plai-pix/mcp

Cursor and other clients

Add the server to the client’s MCP configuration:

mcp.json
{
  "mcpServers": {
    "plai-pix": {
      "url": "https://api.justplai.com/plai-pix/mcp"
    }
  }
}

Try it

Once it’s connected, just ask:

  • “Open a blank Plai Pix canvas.”
  • “Draw an original purple robot, 16 × 16.”
  • “Give it a yellow antenna light, then show me.”

How it works

  1. create_canvas starts a blank canvas and answers with its canvasId. Cell (0, 0) is the top-left: x grows right, y grows down.
  2. paint draws a whole sprite in one call, as rows of palette characters. Its answer includes preview rows and imageUrl, so you can inspect the result directly.
  3. view refreshes the rows and imageUrl when you need a fresh read. Open the PNG URL to inspect the drawing, fix what’s off, and look again until it matches the request.
One paint call
paint({
  canvasId: "…",
  x: 0,
  y: 0,
  rows: [
    "...33...",
    "...00...",
    ".555555.",
    ".575575.",
    ".555555.",
    ".550055.",
    ".555555.",
    "..8..8.."
  ]
})
The robot this paint call draws
What it paints

Palette

Sixteen colors, the same as the Plai Pix app. A row names each cell’s color by its character.

  • 0 Pitch Black
  • 1 Crimson
  • 2 Leaf
  • 3 Sunflower
  • 4 Cobalt
  • 5 Violet
  • 6 Sky
  • 7 Paper White
  • 8 Stone Gray
  • 9 Pumpkin
  • a Cocoa
  • b Chartreuse
  • c Forest
  • d Bubblegum
  • e Cherry
  • f Tan

Tools

create_canvas({ width, height })
Starts a blank canvas, up to 64 × 64 cells (32 × 32 by default), and returns the canvasId every other tool takes, and a link to its PNG.
state({ canvasId })
Reports the canvas: its size, background, painted area, and limits.
paint({ canvasId, x, y, rows, ops, preview })
Paints in one step: rows of cells with their top-left at x, y (a palette char 0–f sets a color, “.” skips a cell, “-” erases one), or ops for directed edits — lines, rectangles, ellipses, flood fills, an outline, one color swapped for another, a mirrored half, or a box moved or flipped.
view({ canvasId })
Returns the whole canvas as rows and a PNG URL, so the model can open the picture and inspect what it drew.
clear({ canvasId, preview })
Erases every cell. The size and background stay.
resize({ canvasId, width, height, preview })
Makes the canvas a new size, cropping or extending it at the right and bottom.
background({ canvasId, color, preview })
Sets the color behind unpainted cells to a palette color, or back to transparent.
export_png({ canvasId, scale })
Returns a PNG URL to save or share, each cell scale × scale pixels (default: 1).
submit({ canvasId, title })
Sends the drawing to the Plai Pix library under a title. A person reviews every submission before anyone else sees it.

Privacy and limits

There is no account. A canvas is kept on our servers under its canvasId, and anyone holding that id can open and change it, so keep names and other personal details out of drawings and titles.

Nothing reaches the Plai Pix library unless the assistant calls submit, and every submission waits for a person at Just Plai to review it. Canvases are at most 64 × 64 cells.

Driving a browser instead? The web editor has the same methods on window.plaiPix, described in its agent guide.