KaiBoard MCP

Registre officiel IA et agents

Let AI agents draw on your local-first KaiBoard whiteboards (relay or local folder).

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package @kaibuddy/kaiboard-mcp
Claude Code
claude mcp add kaiboard-mcp -e 'KAIBOARD_TOKEN=<your kaiboard_token>' -- npx -y @kaibuddy/kaiboard-mcp@0.4.2
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "kaiboard-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@kaibuddy/kaiboard-mcp@0.4.2"
            ],
            "env": {
                "KAIBOARD_TOKEN": "<your kaiboard_token>"
            }
        }
    }
}

Variables d'environnement

  • KAIBOARD_TOKEN secret Relay token from KaiBoard's "Agent co-draw" panel. Required for --relay mode; not needed for --dir mode.

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. KaiBoard MCP Server
  2. What it does
  3. Install
  4. Connect your MCP client
  5. Tools
  6. Elements and fill colors
  7. Data and privacy
  8. Development
  9. Third-party notices
  10. Versioning
  11. License

KaiBoard MCP Server

English | 简体中文 · Protocol · Changelog

Let MCP-capable AI agents draw on your own KaiBoard whiteboards.

KaiBoard is a free, open-source, local-first whiteboard: your boards live on your own device, never in the cloud. This repo is the bridge that lets an agent read and edit those boards — the agent runs wherever your MCP client runs, and the canvas stays on your machine.

It contains two independently usable packages:

PackageRole
@kaibuddy/kaiboard-mcpMCP server (stdio JSON-RPC 2.0) exposing the kbfs_* tools
@kaibuddy/kaiboard-coreStorage-agnostic command core (executor, element model, snapshots, Mermaid conversion)

What it does

@kaibuddy/kaiboard-mcp is a single package that serves two combinable modes through the same set of kbfs_* tools:

--relay mode (recommended)--dir mode
BackendA running KaiBoard pageA local folder you choose
App must be open?Yes (with "Agent co-draw" enabled in the app)No
Typical useThe agent works on the user's live board, changes visible immediatelyA workspace the agent owns offline
Data locationThe user's own KaiBoard library<folder>/kaiboard-data/

Both can be enabled at once:

kaiboard-mcp --relay --dir /path/to/workspace

Install

npm install -g @kaibuddy/kaiboard-mcp
# or run without installing
npx -y @kaibuddy/kaiboard-mcp

Requires Node.js >= 18.

Connect your MCP client

Recommended: --relay mode — drives the board you're looking at, with changes visible immediately. It needs a relay token, obtained from KaiBoard's "Agent co-draw" panel:

{
  "kaiboard": {
    "command": "npx",
    "args": ["-y", "@kaibuddy/kaiboard-mcp", "--relay"],
    "env": { "KAIBOARD_TOKEN": "<your-token>" }
  }
}

--relay starts a built-in local relay on 127.0.0.1:8787 that talks to the KaiBoard page. The relay and the page must therefore be on the same machine, and the page has to stay open while the agent works.

--dir mode can also be used on its own (no app required — the agent works in a local folder):

{
  "kaiboard-mcp": {
    "command": "npx",
    "args": ["-y", "@kaibuddy/kaiboard-mcp", "--dir", "/path/to/your/workspace"]
  }
}

Or combine them: "args": ["-y", "@kaibuddy/kaiboard-mcp", "--relay", "--dir", "/path/to/your/workspace"]

Restart your MCP client after changing the config so it picks up the new server.

Tools

tools/list returns 20 tools: 19 commands plus one capability declaration. ⚠️ marks a destructiveHint tool (may make hard-to-undo changes); the tools in the read-only group are readOnlyHint: true.

ToolPurpose
Discovery — read-only
kbfs_list_capabilitiesRuntime capabilities: available commands, storage modes, snapshot limit, server info
kbfs_list_boardsList boards and folders
kbfs_list_trashList soft-deleted boards / folders (trash)
kbfs_get_boardRead a board's elements
kbfs_get_screenshotRender a board to PNG so the agent can look at it (--relay; degrades gracefully under --dir)
Boards
kbfs_create_boardCreate a board
kbfs_replace_board ⚠️Replace a board's contents (auto-snapshot)
kbfs_rename_boardRename a board
kbfs_delete_board ⚠️Delete a board (soft delete, restorable in the app)
Folders
kbfs_create_folderCreate a folder
kbfs_rename_folderRename a folder
kbfs_delete_folder ⚠️Delete a folder
Tree
kbfs_move_nodeMove a board or folder into another folder
kbfs_reorder_nodeChange ordering within a folder
kbfs_restore_nodeRestore a board or folder from the trash
Elements
kbfs_add_elementAdd elements
kbfs_patch_elementPatch element properties by id
kbfs_delete_element ⚠️Delete elements by id
Content & metadata
kbfs_from_mermaidBuild native editable elements from a Mermaid diagram
kbfs_set_metadataWrite board metadata (status / version / history / comments)

CLI details, envelope format and error codes: see docs/PROTOCOL.md.

Elements and fill colors

Elements use the Excalidraw element format. fill is accepted as a shorthand for backgroundColor, and stroke for strokeColor:

{
  "type": "rectangle",
  "id": "r1",
  "x": 40, "y": 40, "width": 160, "height": 90,
  "fill": "#ffec99",
  "stroke": "#e8590c"
}

Data and privacy

  • Board data is never uploaded to any server. In --relay mode the relay listens on 127.0.0.1 only, for same-machine communication; in --dir mode the server reads and writes the local folder you specify.
  • No account, no sign-in.
  • On-disk layout (--dir mode): kaiboard-data/boards/<id>.json plus kaiboard-data/tree.json — a format KaiBoard can open directly.

Development

npm install
npm run typecheck   # type check
npm run build       # build both packages into their dist/
npm run e2e         # end-to-end (core + fs adapter / real stdio server)
npm run smoke       # real MCP client smoke test (initialize -> tools/call)

Third-party notices

Third-party components are referenced as optional peer dependencies (the license text ships inside each package):

ComponentLicenseRole
@excalidraw/excalidrawMITelement types / canvas rendering (provided by the host)
@excalidraw/mermaid-to-excalidrawMITMermaid → element conversion (optional)

Build-time only: typescript (Apache-2.0), @types/node (MIT).

No upstream source code is vendored — every component is used as an ordinary npm dependency.

Versioning

Currently 0.4.x — the API may still change between minor versions. 1.0.0 will mark the stability commitment. See CHANGELOG.md for the current release.

License

MIT

Questions fréquentes

Qu'est-ce que KaiBoard MCP ?

Let AI agents draw on your local-first KaiBoard whiteboards (relay or local folder).

Comment installer KaiBoard MCP ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add kaiboard-mcp -e 'KAIBOARD_TOKEN=<your kaiboard_token>' -- npx -y @kaibuddy/kaiboard-mcp@0.4.2. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour KaiBoard MCP ?

Oui. Il attend KAIBOARD_TOKEN, à renseigner dans sa configuration.

KaiBoard MCP est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient KaiBoard MCP ?

Il est publié par ChasenKai. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.