use-mastergo-mcp
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.
use-mastergo-mcp
English | 简体中文
High-throughput, direct read/write MasterGo MCP server inspired by Figma's use_figma paradigm.
Instead of exposing dozens of slow, fragile atomic tools (create_rectangle, set_fill, create_text, ...), use-mastergo-mcp gives AI agents 4 high-leverage tools backed by a local 127.0.0.1 WebSocket bridge and a lightweight MasterGo desktop plugin—so an AI can build or edit an entire page in 1 MCP call, batch-upload local images in milliseconds, and visually self-verify via exported PNG screenshots.
Why use-mastergo-mcp?
Dimension | Official | Atomic Community MCPs |
|
Canvas Write / Edit | Read-only (design → code) | Supported | Full |
Calls to Build 1 Page | N/A | 50–200+ fragile tool calls | 1–3 high-throughput calls |
Local Image Upload | N/A | Often slow external URLs | Direct disk → |
Visual Self-Verification | Manual | Usually missing | Built-in |
Cost & Limits | Official API limits | Varies | 100% free, local, unlimited pages & calls |
AI Knowledge Pack | — | — | Bundled |
Related MCP server: figma-mcp-write-server
Architecture
flowchart LR
AI["AI Client<br/>(Antigravity / Claude Code / Cursor / Codex)"]
MCP["use-mastergo-mcp<br/>(Local Stdio MCP Server)"]
WS["Loopback WebSocket Bridge<br/>ws://127.0.0.1:8787"]
UI["MasterGo Plugin UI<br/>(ui.html iframe)"]
MAIN["MasterGo Sandbox Main Thread<br/>(main.js / full mg.* API)"]
AI <-->|"MCP over stdio"| MCP
MCP <-->|"JSON + requestId + 60s timeout"| WS
WS <-->|"Auto-reconnect"| UI
UI <-->|"parent.postMessage / mg.ui.postMessage"| MAIN5-Minute Quick Start
1. Build the Repository
git clone https://github.com/nalin3166-collab/use-mastergo-mcp.git
cd use-mastergo-mcp
pnpm install
pnpm buildPrefer
npxonce published to npm? Runnpx -y use-mastergo-mcpdirectly for the MCP server, and download the pre-built plugin bundle from GitHub Releases.
2. Load the Bridge Plugin in MasterGo Desktop
Open any design file in the MasterGo Desktop client.
Go to Plugins (插件) → Developer Mode (开发者模式) → Import Local Plugin (导入本地插件).
Select the built directory:
packages/mg-plugin/dist(containingmanifest.json,main.js, andui.html).Run use-mastergo-mcp Bridge from the Plugins menu. The panel will automatically connect to
ws://127.0.0.1:8787and display Connected once your AI client starts the MCP server.
3. Configure Your AI Client
{
"mcpServers": {
"use-mastergo-mcp": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/use-mastergo-mcp/packages/mcp-server/dist/index.js"],
"env": {
"MASTERGO_BRIDGE_PORT": "8787"
}
}
}
}Copy skills/mastergo-use/SKILL.md to ~/.gemini/config/skills/mastergo-use/SKILL.md (or bundle both inside ~/.gemini/config/plugins/use-mastergo-mcp/).
claude mcp add use-mastergo-mcp -- node /ABSOLUTE/PATH/TO/use-mastergo-mcp/packages/mcp-server/dist/index.js
# Or with npx once published:
claude mcp add use-mastergo-mcp -- npx -y use-mastergo-mcp{
"mcpServers": {
"use-mastergo-mcp": {
"command": "npx",
"args": ["-y", "use-mastergo-mcp"],
"env": {
"MASTERGO_BRIDGE_PORT": "8787"
}
}
}
}[mcp_servers.use-mastergo-mcp]
command = "npx"
args = ["-y", "use-mastergo-mcp"]
[mcp_servers.use-mastergo-mcp.env]
MASTERGO_BRIDGE_PORT = "8787"MCP Tools Reference
Tool | Parameters | Description |
| (none) | Checks loopback WebSocket bridge connectivity, plugin capabilities ( |
|
| Runs an async JS function body inside the MasterGo plugin main thread with full |
|
| Reads local PNG/JPG/WebP/GIF files from disk, optionally downscales oversized images (default |
|
| Exports any MasterGo node/artboard via |
Bundled Agent Skill (skills/mastergo-use/SKILL.md)
MasterGo's Plugin API differs subtly but critically from Figma's (e.g. mg.document.currentPage, flexMode instead of layoutMode, SolidPaint.color.a + isVisible, TextNode.setRangeFontName/setRangeFontSize, async mg.createImage() returning image.href for ImagePaint.imageRef, async mg.createNodeFromSvgAsync()).
Loading skills/mastergo-use/SKILL.md equips your AI assistant with the exact verified @mastergo/plugin-typings API and copy-paste helpers so complex multi-section scripts work on the first try.
Security & Privacy
Loopback-Only Binding: The WebSocket bridge binds strictly to
127.0.0.1and never listens on0.0.0.0or external network interfaces.Zero Cloud Relay: All scripts, local images, and exported PNGs stay 100% on your local machine.
Explicit User Control: Canvas execution only runs while you have explicitly opened the bridge plugin inside your MasterGo desktop session. Every
use_mastergorun is wrapped inmg.commitUndo()for single-stepCtrl/Cmd+Zrollback.
Development
pnpm install
pnpm build # Build protocol, mcp-server (dist/index.js), and mg-plugin (dist/)
pnpm typecheck # Strict TypeScript check across all packages
pnpm test # Run Vitest unit & end-to-end MCP tool testsSee CONTRIBUTING.md for guidelines and CHANGELOG.md for release notes.
License
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
MCP server for Qwen Image 3 AI image generation
MCP server for building and testing AI agents with multi-model experimentation and insights.
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.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server that enables AI coding agents to read and write to a local-first HTML/CSS design canvas, bridging visual design and code generation.1MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides write access to Figma through the Plugin API, enabling AI agents to create, modify, and manage Figma designs programmatically.23MIT
- AlicenseBqualityDmaintenanceAn MCP server that integrates AI agents with Figma, enabling reading and programmatic modification of designs.41MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI clients to read and write local infinite canvas data via MCP protocol, with support for image generation and web visualization.MIT