Boarderless MCP Server
Enables AI agents to inspect and edit the live browser-resident canvas of the Boarderless app via a structured spatial ledger.
README
Boarderless Model Context Protocol (MCP) Server
A Model Context Protocol (MCP) server for Boarderless, allowing AI agents (like Claude Desktop, Cursor, and Claude Code) to inspect and edit the live browser-resident canvas directly.
Rather than scraping pixels or guessing layouts from DOM selectors, agents communicate with a clean, typed spatial ledger.
⚡ Quick Start (TL;DR)
Step 1: Launch your browser in Debugging Mode
- Windows: Double-click
launch-chrome-debugging.bat - Mac / Linux: Run
./launch-chrome-debugging.sh
Step 2: Run the Installer (Configures Claude Desktop automatically)
- Windows (PowerShell):
Set-ExecutionPolicy Bypass -Scope Process -Force; .\setup.ps1 - Mac / Linux (Terminal):
chmod +x ./setup.sh && ./setup.sh
Step 3: Connect Cursor / Windsurf (Optional) Add a new MCP server in settings:
- Type:
stdio - Name:
boarderless - Command:
node "E:\boarderless.app_MCP\mcp-stdio-server.js"(Use your absolute path) - Env variables:
BOARDERLESS_MCP_APP_URL=https://boarderless.app/canvasBOARDERLESS_MCP_BROWSER_URL=http://127.0.0.1:9222
Architecture Overview
+------------------+ +--------------------+
| AI Agent Client | | Boarderless App |
| (Claude/Cursor) | | (Zustand + React) |
+--------+---------+ +---------+----------+
| ^
| (Stdio JSON-RPC) | (window.boarderlessMcp)
v v
+------------------+ CDP / Puppeteer +---------+----------+
| MCP Server +------------------>| Chrome / Edge |
| (Stdio Transport)| | Debugging Port |
+------------------+ +--------------------+
- Boarderless Web App: Exposes
window.boarderlessMcpcontaining typed tool execution methods over Zustand state. - MCP Server (
mcp-stdio-server.js): Connects to the browser via Chrome DevTools Protocol (CDP), maps incoming stdio messages to the browser runtime, and checks authentication. - AI Agent: Connects as a client to the MCP server's stdio transport.
Prerequisites
- Node.js (v18 or higher)
- Chromium-based Browser (Google Chrome or Microsoft Edge)
- Boarderless Web App: Running locally (typically at
http://127.0.0.1:5174/canvas) or via production web portal.
Getting Started
1. Launch Browser with Remote Debugging Enabled
To allow the MCP server to attach to your browser tab, you must start Chrome or Edge with debugging port 9222 active. We provide pre-built launchers for convenience:
- Windows: Double-click
./launch-chrome-debugging.bat(or run it via cmd/PowerShell). - macOS/Linux: Run
chmod +x ./launch-chrome-debugging.sh && ./launch-chrome-debugging.sh.
Alternatively, launch manual instances: Windows (PowerShell):
& "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="$env:TEMP\boarderless-mcp-profile" https://boarderless.app/canvas
macOS (Terminal):
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir="/tmp/boarderless-mcp-profile" https://boarderless.app/canvas
Note: Make sure to sign in/authenticate Google OAuth on the canvas page.
2. Install & Setup (Seamless Installers)
We provide pre-built install scripts that automatically check for Node.js (offering to install it if missing), install all package dependencies, write the Claude Desktop configuration, and offer to launch debugging:
- Windows: Open PowerShell in this folder and run:
Set-ExecutionPolicy Bypass -Scope Process -Force; .\setup.ps1 - macOS & Linux (Ubuntu): Open Terminal in this folder and run:
chmod +x ./setup.sh && ./setup.sh
Alternatively, perform manual installation:
- Run
npm install. - Run
npm run setup.
3. Run the Example
Verify your connection by running the test client, which queries the canvas state and moves the first element:
npm run example
Gating & CLI Authentication
To respect user plan limits and session validity, the MCP server checks the tab's authentication status before running.
- If the browser session is unauthenticated, the CLI will output clear directions:
[Boarderless Auth Required] Please complete Google OAuth sign-in in your browser window. - The MCP server will pause and poll in the background, automatically proceeding once verification succeeds.
Tool API Specifications
1. get_board_state
Returns the canvas state as a structured, render-ordered JSON ledger (boarderless.boardSnapshot.v1).
- Input: None (
{}) - Output:
{ "schema": "boarderless.boardSnapshot.v1", "generatedAt": "2026-05-25T18:40:00.000Z", "objectCount": 3, "objects": [ { "id": "rect-1", "objectKind": "shape", "objectType": "rect", "x": 20, "y": 20, "rawWidth": 80, "rawHeight": 50, "boundsLeft": 18, "boundsTop": 18, "boundsRight": 102, "boundsBottom": 72, "fill": "#ff0000", "stroke": "#ff0000", "strokeWidth": 4, "opacity": 1, "rotation": 0 } ] }
2. mutate_object
Modifies spatial coordinates or visual style properties of a canvas object. Mutated actions are pushed to the undo stack.
-
Input Schema:
id(string, required): Object ID.- Mutable Fields:
x,y,width,height,rotation,opacity,fill,stroke,strokeWidth,text,fontSize,fontFamily,align,cornerRadius,edgeFeather,points,scaleX,scaleY.
-
Example Call:
{ "id": "rect-1", "x": 140, "y": 130, "fill": "#22c55e" }
3. calculate_export_bounds
Calculates the collective mathematical boundary coordinates of all active objects on the canvas. Used by agents to calculate exact crops for export.
- Input: None (
{}) - Output:
{ "schema": "boarderless.exportBounds.v1", "empty": false, "objectCount": 1, "bounds": { "x": 138, "y": 128, "width": 84, "height": 54, "left": 138, "top": 128, "right": 222, "bottom": 182 } }
Connecting to AI Clients
Claude Desktop Configuration
Add the server entry to your %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS). Running npm run setup will do this automatically!
{
"mcpServers": {
"boarderless": {
"command": "node",
"args": ["E:\\boarderless.app_MCP\\mcp-stdio-server.js"],
"env": {
"BOARDERLESS_MCP_APP_URL": "https://boarderless.app/canvas",
"BOARDERLESS_MCP_BROWSER_URL": "http://127.0.0.1:9222"
}
}
}
}
License
Licensed under the Apache License, Version 2.0. See LICENSE for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。