New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@kaibuddy/kaiboard-mcp

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaibuddy/kaiboard-mcp

KaiBoard MCP server: let AI agents draw on your local KaiBoard whiteboards over stdio JSON-RPC. --relay drives the live board; --dir works in a local folder.

latest
Source
npmnpm
Version
0.4.2
Version published
Maintainers
1
Created
Source

@kaibuddy/kaiboard-mcp

English | 简体中文

KaiBoard MCP server — lets AI agents draw on your local KaiBoard whiteboards over the Model Context Protocol (stdio JSON-RPC).

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

Install

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

Requires Node.js >= 18.

Two modes

Both modes are served by this single package and can be combined.

Starts a built-in local relay on 127.0.0.1:8787 that talks to a running KaiBoard page. Commands flow into the live page, so changes appear as you watch, and the page persists them to whichever storage you chose in KaiBoard.

// MCP client config
{
  "mcpServers": {
    "kaiboard": {
      "command": "npx",
      "args": ["-y", "@kaibuddy/kaiboard-mcp", "--relay"],
      "env": { "KAIBOARD_TOKEN": "<your-token>" }
    }
  }
}
  • KAIBOARD_TOKEN — required for relay mode. Get it from KaiBoard's "Agent co-draw" panel.
  • The relay listens on loopback only and only talks to a page on the same machine. That page has to stay open while the agent works.

2. --dir <path> (works without the app)

Binds directly to a local folder through the fsStorageAdapter. No relay, no network — the agent reads and writes a folder of its own.

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

On disk: kaiboard-data/boards/<id>.json plus kaiboard-data/tree.json. KaiBoard can open that folder directly.

Tip: add --relay-url <url> alongside --dir to have the server check whether your working folder matches the folder KaiBoard currently has open, and warn you when it doesn't.

Tools (prefix kbfs_)

tools/list returns 12 tools.

ToolPurpose
kbfs_list_capabilitiesDiscover server capabilities
kbfs_list_boardsList available boards
kbfs_get_boardRead a board's elements
kbfs_create_boardCreate a board
kbfs_delete_boardDelete a board (soft-delete, recoverable)
kbfs_add_elementAdd elements (supports opts.noOffset for exact placement)
kbfs_patch_elementPatch elements by id
kbfs_delete_elementDelete elements by id
kbfs_replace_boardReplace a board's contents (auto-snapshot)
kbfs_from_mermaidBuild a board from a Mermaid diagram
kbfs_get_screenshotRender a board to PNG so the agent can look at it
kbfs_set_metadataSet board metadata (status / version / history / comments)

Protocol details, envelopes, error codes and capability negotiation: see docs/PROTOCOL.md.

Notes

  • Built on @kaibuddy/kaiboard-core (storage-agnostic command core).
  • Versioning: this is a 0.x release — the API may still change between minor versions. 1.0.0 will mark the stability commitment.
  • Local-first, privacy-first: these commands never upload your board data to a server.

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.

License

MIT — see LICENSE.

Keywords

kaiboard

FAQs

Package last updated on 23 Sep 2026

Related posts