beads
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
🫘 豆豆工作室 Bead Studio
AI 協作的拼豆(Perler/MARD)設計工具。在 Claude Code 裡請 AI 設計圖案,網頁上會即時看到 AI 畫的每一筆;你也可以在網頁上自己微調,AI 馬上讀得到。

特色
AI 設計:透過 MCP 提供 19 個工具,AI 可以建立作品、批次畫圖、匯入圖片、檢查結構與預覽成品。專案內附設計知識(
.claude/skills/bead-design),涵蓋配色、描邊、明暗、掛孔與尺寸。即時同步:AI 的修改會即時出現在網頁上,不用重新整理,被改到的豆子會跳一下。網頁上的修改也走同一套工具。
網頁編輯器:提供畫筆、橡皮擦、油漆桶、吸管、直線、圓形、全域換色、掛孔等工具,支援復原/重做、快照、鏡像檢視、亮暗模式,也能預覽 3D 成品。編輯區上方可以切換燙前/燙後、有/無釘板,3D 預覽會一起切換;燙後會把豆子畫成連成一片的方塊,看到整片圓孔會不舒服的人可以改用這個模式。
庫存管理:勾選擁有的顏色、填顆數(也能秤重換算)。用量面板會顯示每色需要多少、還缺多少;拼完作品後,按「做完了,扣庫存」會依用量扣掉庫存。
檢查器:檢查留邊、浮豆、易斷的細線、掛孔位置、缺料,以及相鄰顏色太接近的地方。
圖片匯入:適合卡通和線稿圖。支援去背(可指定多種背景色)、每格取主要顏色、加粗細線、清雜點、裁切與排除區塊。
匯出:可匯出成品圖、施工圖、3D 預覽的 PNG。PNG 內含作品資料,拖回網頁就能還原。
Related MCP server: Shared Craft Room
快速開始
需要 Node.js ≥ 24 與 pnpm。
pnpm install
pnpm build:web
pnpm start # http://localhost:5174或用 Docker:
mkdir -p ~/BeadStudio # 匯入/匯出圖片的交換資料夾
docker compose up -d --build # http://localhost:5174
docker compose logs -f # 看 log
docker compose down # 停止埠只開在本機(
127.0.0.1:5174)。data/、config/掛進容器,作品與庫存都留在這個資料夾裡。AI 改了config/checks.json後,執行docker compose restart生效。~/BeadStudio以相同的絕對路徑掛進容器。import_image/export_png只能使用這個資料夾裡的檔案。更新程式碼後,重新執行
docker compose up -d --build。若把主機埠改成 5174 以外,記得在
BEADS_ALLOWED_HOSTS加上localhost:新埠。
連接 Claude Code
claude mcp add --transport http beads http://localhost:5174/mcp在這個資料夾裡啟動 Claude Code,就會自動載入 .claude/skills/bead-design 的設計知識。網頁右上角的「連接 AI」也會顯示這行指令。
開始設計前,AI 會先問你兩件事:
只用有的顏色嗎?
只用有的數量嗎?
畫完後,它會依檢查器的缺料提醒自己修正,直到符合你的要求。
MCP 工具
類別 | 工具 |
作品 |
|
讀取與預覽 |
|
修改 |
|
顏色與庫存 |
|
圖片 |
|
apply_ops 的指令有:
繪製:
paste(用字元畫圖)、rect、ellipse、line、polygon、fill換色與清除:
replace_color、clear搬移變形:
move、mirror、rotate效果:
outline、gradient、shade掛孔:
set_hole
匯入圖片的選項
選項 | 說明 |
| 去掉從圖片外圍連進來的背景,被外框圍住的同色區塊(例如白色身體)會保留 |
| 另外指定背景色(例如白底外的淡藍天空),以及去背的色差容許值 |
| 只用這些色號轉換 |
| 只取原圖某一塊;把原圖上的區塊(例如文字)當背景略過 |
| 每格取最多像素對到的顏色,不會平均出灰邊 |
| 一格裡深色佔這個比例以上就整格用深色,細線不會斷(卡通建議 0.3) |
| 把小於 N 顆、而且和周圍顏色相近的雜點併掉(建議 3) |
| 抖色,用相近的顏色交錯排列來模擬漸層(適合照片) |
開發
pnpm dev # 同時啟動伺服器與 Vite,開 http://localhost:5173
pnpm test # 單元測試(vitest)
pnpm e2e # 網頁測試(Playwright;先 pnpm build:web)
pnpm typecheck技術:TypeScript、Fastify、MCP SDK(Streamable HTTP)、React、Vite、@napi-rs/canvas。
環境變數
變數 | 預設 | 說明 |
| 5174 | 伺服器埠 |
| auto |
|
| data | 設計、色表、庫存 |
| config | 檢查器門檻 |
| 127.0.0.1 | 監聽位址;Docker 映像內為 |
| (不限制) | 設定後 |
| 系統家目錄 | 展開 |
| (空) | 額外允許的 Host( |
使用者資料
以下資料都存在 data/ 底下,不會被 commit:
作品:
data/designs/目前開啟的作品:
data/state.json庫存:
data/inventory.json
只有色表 data/palette.json 納入版本控制,色號來源見 data/PALETTE_SOURCES.md。
授權
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time collaborative whiteboard — AI agents and humans edit the same board live over MCP.
The Canva MCP server connects AI assistants (like Claude, ChatGPT, and Cursor) to Canva's API, enabling them to create and manage designs directly within chat conversations. Key capabilities include generating new designs from prompts, autofilling templates, searching and resizing existing designs, importing files from URLs, exporting designs as PDFs or images, and managing folders and comments without switching between tools.
Pixel art for your game, from your coding agent. Generate sprites, items and tiles in your game's style (64 to 1024 px), make variants, reskins and N/E/S/W directions, then edit everything in a full pixel art editor that syncs into your project. Works with Claude, Claude Code, Cursor and ChatGPT; sign in with OAuth, no API key.
Agent-Native design tool - create and edit visual designs with agent assistance
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables LLMs to create and edit pixel art reliably with support for layers, frames, symmetry, and various drawing tools.70MIT No Attribution
- AlicenseNot gradedqualityCmaintenanceEnables a human and an AI to collaborate on shared sketches and perler-bead projects, with tools for drawing, bead placement, finishing, exporting, and gallery display.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to create, edit, inspect, render, diff, preview, watch, and export indexed pixel-art sprites and animations as text grids through twelve MCP tools, including .tt and .aseprite import/export.27 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to create, inspect, validate, edit, render, and export layered pixel art assets and animations through structured MCP tools.78 npm8MIT