# Deckboard MCP server

Deckboard (https://deckboard.party) shows a photoreal split-flap board hung in a room, in the browser. The Deckboard MCP server lets any agent that speaks the [Model Context Protocol](https://modelcontextprotocol.io) read and change the boards of one account: set the notices, pin one, change the pace, push a notice that takes the board over now, manage the queue, and change the room, size or sound.

- Endpoint: `https://deckboard.party/mcp`
- Transport: Streamable HTTP. Each JSON-RPC message is its own `POST`; replies are plain JSON (`application/json`). There is no session and no `GET` stream (`GET` answers `405`).
- Protocol versions: `2026-07-28` (stateless, per-request `_meta`, `server/discover`) and the `initialize`-based `2025-11-25`, `2025-06-18` and `2025-03-26`.
- Auth: `Authorization: Bearer dk_...`, the same account API key the [JSON API](https://deckboard.party/docs/api.md) takes.
- Capabilities: tools (13, listed below). No resources or prompts.

Every tool calls the same JSON API a program would, with your key, so it follows the same rules and limits (600 requests a minute per key, 120 pushes a minute per board) and every change shows on every open screen within a second.

## Get a key

The account owner signs in at https://deckboard.party/account and makes an API key under **API keys**. It is shown once. Keep it secret: it acts as the account on its boards (it cannot make keys, change the username or close the account). Revoke it there at any time.

A request without a key, or with a bad or revoked one, is refused with HTTP `401`, a `WWW-Authenticate: Bearer` header and a JSON-RPC error (`code` `-32001`). OAuth sign-in is not offered yet, so the client must send the header itself.

## Connect

### Claude Code

```
claude mcp add --transport http deckboard https://deckboard.party/mcp --header "Authorization: Bearer dk_..."
```

Add `--scope user` to have it in every project. Check with `claude mcp list`, or `/mcp` inside a session.

### Claude Desktop

Claude Desktop's custom connectors (Settings > Connectors > Add custom connector) sign in with OAuth, which Deckboard does not offer yet. Use [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) as a bridge instead. In `claude_desktop_config.json` (Settings > Developer > Edit Config):

```json
{
  "mcpServers": {
    "deckboard": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://deckboard.party/mcp", "--header", "Authorization:${DECKBOARD_AUTH}"],
      "env": { "DECKBOARD_AUTH": "Bearer dk_..." }
    }
  }
}
```

(The header value goes through an environment variable because some systems mangle spaces inside `args`.) Restart Claude Desktop.

### Cursor

`~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project):

```json
{
  "mcpServers": {
    "deckboard": {
      "url": "https://deckboard.party/mcp",
      "headers": { "Authorization": "Bearer dk_..." }
    }
  }
}
```

### VS Code

`.vscode/mcp.json`:

```json
{
  "servers": {
    "deckboard": {
      "type": "http",
      "url": "https://deckboard.party/mcp",
      "headers": { "Authorization": "Bearer dk_..." }
    }
  }
}
```

### Any Streamable HTTP client

Point it at `https://deckboard.party/mcp` and send `Authorization: Bearer dk_...` on every request. With the official TypeScript SDK:

```js
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';

const transport = new StreamableHTTPClientTransport(new URL('https://deckboard.party/mcp'), {
  requestInit: { headers: { Authorization: 'Bearer dk_...' } },
});
const client = new Client({ name: 'my-agent', version: '1.0.0' });
await client.connect(transport);
const { boards } = (await client.callTool({ name: 'list_boards', arguments: {} })).structuredContent;
```

Or by hand:

```
curl https://deckboard.party/mcp \
  -H "Authorization: Bearer dk_..." \
  -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
  -H "MCP-Protocol-Version: 2025-06-18" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_boards","arguments":{}}}'
```

## How a board works

- **Sizes:** `note` is 3 rows x 15 columns, `medium` 6 x 22, `large` 8 x 32. You send free text; the server word-wraps it onto the board (`\n` forces a new row) and refuses it (`too_long`) if it needs more rows than the board has.
- **Characters:** A-Z (lower case is upper-cased), 0-9, space and `. - : ! ? ' / & , $ ; " # % @ * ( ) [ ] { } < > + = _ ^ ~ \ |` and `` ` ``. Anything else (emoji, accents) is refused with an error that names the character.
- **Rotation:** a board turns through its own notices (1 to 12) in order, each held for `hold_seconds` or its own `seconds`, unless one is **pinned**. Each notice may carry a link, shown as a QR code beside the board.
- **Pushes:** `push_notice` puts a notice in a queue that takes the board over for its `seconds` (default the board's push length, usually 30) once the pushes ahead of it have shown; when the queue is empty the board goes back to its rotation. Use it for "show this now"; use `set_messages` / `add_message` for what the board says the rest of the time.
- A board's public page is `https://deckboard.party/{owner}/{slug}`; `list_boards` returns it as `url`.

## Tools

Every tool returns its result as `structuredContent` and the same JSON as text. A refused change (a bad value, a board that is not yours, a full queue) comes back as a tool result with `isError: true` and the API's message and code, for example `No such board (not_found, HTTP 404)` or `That needs 4 rows; this board has 3 rows of 15 (too_long, HTTP 400)`, so the agent can correct itself.

| tool | arguments | what it does |
|---|---|---|
| `list_boards` | | The account's boards: `id`, `name`, `owner`, `slug`, `url`, `size` with `rows` and `columns`, `scene`, `sound`, `public`, `pinned`, and `showing` (what is up now). |
| `get_board` | `board_id` | The full board (`board`, as the JSON API returns it), its notices as readable text with links and seconds, and `showing`: the text now up, whether it is a push or the rotation, and `next_change_at` / `next_change_in_seconds`. |
| `set_messages` | `board_id`, `notices: [{text, link?, seconds?}]`, `hold_seconds?`, `pinned?` | Replace the rotation (1 to 12 notices). `seconds` is that notice's hold (null = the default); `pinned` is a notice index or null. |
| `add_message` | `board_id`, `text`, `link?`, `seconds?` | Append one notice, keeping the others exactly as they are. |
| `remove_message` | `board_id`, `index` | Remove the notice at `index` (0-based). A pin moves with its notice. A board keeps at least one. |
| `pin_message` | `board_id`, `index` (or null) | Keep one notice up instead of rotating, or resume the rotation. Pushes still take over. |
| `set_rotation` | `board_id`, `hold_seconds` | Seconds each notice holds (3 to 3600). |
| `push_notice` | `board_id`, `text`, `link?`, `seconds?`, `ref?` | Show a notice now, after any already queued. Returns the push (`id`, `startsAt`, `endsAt`), its `position` and `starts_at` / `ends_at`. `ref` is your own reference (for example a payment id). |
| `get_queue` | `board_id` | Pushed notices showing or waiting, in order. |
| `remove_push` | `board_id`, `push_id` | Take one push out (one that is showing ends now); the rest move up. |
| `clear_queue` | `board_id` | Remove every push; the board returns to its rotation. |
| `update_board` | `board_id`, `name?`, `scene?`, `size?`, `sound?`, `public?`, `buy_link?` | Change settings. `buy_link` is an http(s) link shown with the board, or null to remove it. Changing `size` refits the notices. |
| `get_catalog` | | Sizes (rows x columns), rooms (`scenes`), sounds and the characters the cards carry. |

`board_id` is the 24-character id from `list_boards`; `push_id` is the `p_...` id from `push_notice` or `get_queue`.

## Examples

Put three notices on a board, turning every 15 seconds, the second with a link:

```json
{"name": "set_messages", "arguments": {
  "board_id": "6f1c2a9b8d7e6f5a4b3c2d1e",
  "notices": [
    {"text": "Welcome to the show"},
    {"text": "Merch is up", "link": "https://example.com/shop"},
    {"text": "Next: Q and A at 9", "seconds": 30}
  ],
  "hold_seconds": 15
}}
```

Show a paid question now for 45 seconds:

```json
{"name": "push_notice", "arguments": {
  "board_id": "6f1c2a9b8d7e6f5a4b3c2d1e",
  "text": "Sam asks: what is the best board?", "seconds": 45, "ref": "pay_8812"
}}
```

What is up, and for how long:

```json
{"name": "get_board", "arguments": {"board_id": "6f1c2a9b8d7e6f5a4b3c2d1e"}}
```

returns, among the rest:

```json
"showing": {"text": "SAM ASKS: WHAT\nIS THE BEST\nBOARD?", "source": "push", "push_id": "p_04270540d1bfc3d39135",
            "link": null, "next_change_at": "2026-11-27T21:04:13.256Z", "next_change_in_seconds": 38.5}
```

Move the board to the lighthouse and make it larger:

```json
{"name": "update_board", "arguments": {"board_id": "6f1c2a9b8d7e6f5a4b3c2d1e", "scene": "lighthouse", "size": "medium"}}
```

## Protocol details

- `POST` only. A notification (for example `notifications/initialized`) gets `202 Accepted` with no body. Batches (JSON arrays) are refused.
- `initialize` answers with the version you asked for if it is one of `2025-11-25`, `2025-06-18`, `2025-03-26`, otherwise `2025-11-25`. Later requests send `MCP-Protocol-Version`; without it `2025-03-26` is assumed. No `Mcp-Session-Id` is issued.
- `2026-07-28` requests carry `_meta["io.modelcontextprotocol/protocolVersion"]`, and the `MCP-Protocol-Version`, `Mcp-Method` and `Mcp-Name` headers must match the body (`400`, `-32020` otherwise). An unsupported version gets `400` and `-32022` with `data.supported`. `server/discover` returns the versions, capabilities, server info and instructions.
- Methods: `initialize`, `ping`, `server/discover`, `tools/list`, `tools/call`, and empty `resources/list`, `resources/templates/list` and `prompts/list`. An unknown tool is JSON-RPC `-32602`; an unknown method `-32601`.
- A request with an `Origin` header from another site is refused with `403`, so a web page cannot drive the server through a visitor's browser.
- The server's `instructions` (sent on `initialize` and `server/discover`) tell the agent the sizes, the characters and how pushes work.
