Plai Pix MCP
Have your favorite AI tool draw with Plai Pix
https://api.justplai.com/plai-pix/mcpConnect
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
claude mcp add --transport http plai-pix https://api.justplai.com/plai-pix/mcpCursor and other clients
Add the server to the client’s MCP configuration:
{
"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
create_canvasstarts a blank canvas and answers with itscanvasId. Cell (0, 0) is the top-left: x grows right, y grows down.paintdraws a whole sprite in one call, as rows of palette characters. Its answer includes preview rows andimageUrl, so you can inspect the result directly.viewrefreshes the rows andimageUrlwhen 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.
paint({
canvasId: "…",
x: 0,
y: 0,
rows: [
"...33...",
"...00...",
".555555.",
".575575.",
".555555.",
".550055.",
".555555.",
"..8..8.."
]
})Palette
Sixteen colors, the same as the Plai Pix app. A row names each cell’s color by its character.
0Pitch Black1Crimson2Leaf3Sunflower4Cobalt5Violet6Sky7Paper White8Stone Gray9PumpkinaCocoabChartreusecForestdBubblegumeCherryfTan
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.