Agent API

Your agent can paint Pixel Land.

Pixel Land runs a native MCP server. Once you are signed in, copy one command, paste it into Claude Code, Codex, Cursor or any MCP client, and your agent can act as you: read the board, quote a stroke, paint, draw text, see your automatic daily top-up and edit your private land.

What your agent can do

The key is scoped to painting. It cannot buy land, start a subscription, change your email or password, use a payment method, or reach the operator console.

Quick start

  1. Sign in and open Agents & MCP.
  2. Copy the command for your client. The command contains your personal key.
  3. Paste it into the terminal and restart the client if it was already running.
  4. Ask your agent: “Call pixel_status, then read the board and draw a red heart near the centre.”

Endpoint and authentication

ItemValue
Endpointhttps://pixel.kituwa.com/mcp
TransportStreamable HTTP, stateless JSON-RPC 2.0
AuthenticationAuthorization: Bearer pxl_…
MethodsPOST only
Protocol versions2025-06-18, 2025-03-26, 2024-11-05
Capabilitiestools

The key is generated from your account and can be copied again at any time. Rotating it invalidates every old copy immediately. Never commit the key or paste it into a public issue.

Connect a client

Claude Code

claude mcp add --transport http --scope user pixel-land https://pixel.kituwa.com/mcp \
  --header "Authorization: Bearer pxl_your_key"

Use --scope project instead of --scope user if you only want the server in the current repository.

Codex

Put the key in the environment Codex runs in, then add this to ~/.codex/config.toml:

export PIXEL_LAND_MCP_TOKEN='pxl_your_key'

[mcp_servers.pixel-land]
url = "https://pixel.kituwa.com/mcp"
bearer_token_env_var = "PIXEL_LAND_MCP_TOKEN"

Cursor

Merge this into ~/.cursor/mcp.json and restart Cursor:

{
  "mcpServers": {
    "pixel-land": {
      "url": "https://pixel.kituwa.com/mcp",
      "headers": {
        "Authorization": "Bearer pxl_your_key"
      }
    }
  }
}

Any other MCP client

{
  "mcpServers": {
    "pixel-land": {
      "type": "http",
      "url": "https://pixel.kituwa.com/mcp",
      "headers": {
        "Authorization": "Bearer pxl_your_key"
      }
    }
  }
}

Raw HTTP check

If this prints a tool list, the endpoint and key are working.

curl -s https://pixel.kituwa.com/mcp \
  -H "Authorization: Bearer $PIXEL_LAND_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Tools

ToolPurposeSpends pixels?
pixel_statusBoard, palette, quota, account, parcels and undo stateNo
pixel_readRead a region as a PNG plus non-blank cellsNo
pixel_quoteExact cost of a stroke before paintingNo
pixel_paintPaint 1–1,024 cells on the shared boardYes
pixel_draw_textDraw text with the 5×7 site fontYes
pixel_undoUndo a stroke from the last 60 secondsRefunds
pixel_claimReturn today's automatic top-up amountNo change
pixel_land_paintPaint cells on a parcel you own or rentNo
pixel_land_fillFill or clear a whole owned/rented parcelNo

pixel_status

No arguments. Returns the canvas size and sequence, the 32-colour palette, your remaining daily pixels, allowance, used, base and bonus, today's draw and whether the top-up is granted, your level, XP, streak, owned parcels, active rentals and any undo that is still valid. Call it first.

pixel_read

ArgumentTypeDefaultMeaning
x, yinteger0Top-left cell of the region.
width, heightintegerwhole boardRegion size; clamped to the 900×600 canvas.
include_imagebooleantrueInclude a PNG render of the region.
limitinteger4,000Maximum painted cells to list (max 8,000).

Returns painted, listed, truncated, and pixels as [x, y, color] rows ordered top-to-bottom, left-to-right.

pixel_quote

Arguments: pixels, an array of [x, y, color] cells. Returns cost, takeover, blocked, remaining and affordable. A quote never changes the board.

pixel_paint

ArgumentTypeMeaning
pixelsarray1–1,024 cells as [x, y, color].
op_idstring, optionalUnique stroke id. Reuse it on a retry; the second call returns the first result instead of painting twice.

Blank cells and cells you already own cost 1 pixel. Taking over another painter's cell costs 3 pixels. Locks and shields are refused. The result includes cost, remaining, painted, undo_id and undo_seconds.

pixel_draw_text

ArgumentTypeDefaultMeaning
textstringrequiredA–Z, 0–9 and basic punctuation; uppercased, max 32 characters.
x, yintegerrequiredTop-left of the text block.
colorinteger1Palette index 1–31.
scaleinteger1Pixel scale 1–4.
backgroundinteger, optionalnoneFill the text rectangle with this palette index; 0 clears it.
op_idstring, optionalnoneIdempotency key.

The server checks the block fits on the board before painting, so a bad position costs nothing.

pixel_undo

Arguments: undo_ids, an array of ids from pixel_paint or pixel_draw_text. Works only within 60 seconds and only if nobody changed those cells first. Refunds the stroke's pixels.

pixel_claim

No arguments. Returns today's automatic top-up: 500 base plus the 0–100 random (rare 2,500). The top-up is granted when the account first opens the board; this tool never rerolls it. It remains for compatibility with older clients.

pixel_land_paint

Arguments: parcel_id and cells (1–512 rows of [x, y, color] in world coordinates). The parcel must be yours or rented by you, and every cell must be inside it. Private land never uses the daily quota.

pixel_land_fill

Arguments: parcel_id and color (0 clears to paper). Fills the whole parcel. Same ownership and rental checks as pixel_land_paint.

Worked examples

Read before drawing

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "pixel_status",
    "arguments": {}
  }
}

Price a stroke

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "pixel_quote",
    "arguments": {
      "pixels": [[148, 99, 2], [149, 99, 2], [150, 99, 2]]
    }
  }
}

Draw a red heart

This 5×5 heart sits in the lower-right open area. Every cell is on blank paper, so the cost is 17 pixels.

{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "pixel_paint",
    "arguments": {
      "op_id": "heart-2026-11-23",
      "pixels": [
        [699, 448, 2], [701, 448, 2],
        [698, 449, 2], [699, 449, 2], [700, 449, 2], [701, 449, 2], [702, 449, 2],
        [698, 450, 2], [699, 450, 2], [700, 450, 2], [701, 450, 2], [702, 450, 2],
        [699, 451, 2], [700, 451, 2], [701, 451, 2],
        [700, 452, 2]
      ]
    }
  }
}

Draw text

{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "tools/call",
  "params": {
    "name": "pixel_draw_text",
    "arguments": {
      "text": "HELLO",
      "x": 10,
      "y": 10,
      "color": 2,
      "scale": 2,
      "background": 0,
      "op_id": "hello-1"
    }
  }
}

Fill private land

{
  "jsonrpc": "2.0",
  "id": 6,
  "method": "tools/call",
  "params": {
    "name": "pixel_land_fill",
    "arguments": {"parcel_id": 42, "color": 6}
  }
}

Rules and limits

Security and privacy

Troubleshooting

SymptomCause and fix
HTTP 401Missing, malformed or rotated key. Copy a fresh command from Agents & MCP.
HTTP 405The endpoint accepts POST only. Use an MCP client or the curl example above.
HTTP 415Send Content-Type: application/json.
HTTP 429Rate limit. Wait a minute; do not retry a batch in a loop.
isError with code: "quota"Not enough pixels left today. Wait for the next top-up at midnight Eastern.
isError with code: "protected"A lock or shield covers a cell. Read the region and choose another.
isError with code: "undo"The 60-second window expired or somebody changed the cells.
No tools in the clientRestart the client, confirm the URL ends in /mcp, and confirm the header is Authorization: Bearer ….
-32601The client called a method the server does not implement. Pixel Land exposes tools only.

Protocol details

The endpoint implements the MCP Streamable HTTP transport in stateless mode:

Building an integration? The repository notes live in docs/MCP.md.

Report a problem

Report a problem

Page, browser and incident code are attached automatically.

No passwords, cookies or payment details are collected. Wall of Helpers