FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-10-14;last seen 2026-10-16。There is no official certification or quality rating here — we record sources and dates only.
MasterGo Magic MCP
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
MasterGo Magic MCP is a standalone MCP (Model Context Protocol) service designed to connect MasterGo design tools with AI models. It enables AI models to directly retrieve DSL data from MasterGo design files.
Key Features
- Retrieves DSL data from MasterGo design files
- Runs directly with npx
- No external dependencies required, only Node.js environment needed
Tutorial
- https://mastergo.com/file/192644601973042
Example Prompts
Once the MCP server is connected, you can use the following prompts in your AI chat:
**Extract SVG and preview in HTML:**
**Restore a design to code:**
Replace {domain}, {fileId}, and {layerId} with your actual values. You can also use short links:
**Restore a design and save as an HTML file:**
You can also use short links:
Usage
Obtaining MG_MCP_TOKEN
1. Visit https://mastergo.com
2. Enter personal settings
3. Click the Security Settings tab
4. Find the personal access token
5. Click to generate the token
Permission Requirements
**Important**: If the tool is connected but returns a "no permission" error, please check the following conditions:
1. **Account Version Requirement**:
- Requires **Team Edition** or higher MasterGo account
- Personal free edition does not support MCP tool access
2. **File Location Requirement**:
- Design files must be placed in **Team Projects**
- Files in draft box cannot be accessed via MCP tools
Command Line Options
Parameters:
- --token=YOUR_TOKEN (required): MasterGo API token for authentication
- --url=API_URL (optional): API base URL, defaults to http://localhost:3000
- --rule=RULE_NAME (optional): Add design rules to apply, can be used multiple times
- --proxy=PROXY_URL (optional): HTTP/HTTPS proxy URL (e.g., http://127.0.0.1:7890), also supports HTTPS_PROXY / HTTP_PROXY environment variables
- --header "Key: Value" (optional): Custom HTTP request header, can be used multiple times. **Quote the value** when it contains spaces. Custom headers override the defaults — including Content-Type and the auth token — so match the default key exactly when overriding. Also settable via the MG_EXTRA_HEADERS environment variable as a JSON object (e.g. MG_EXTRA_HEADERS='{"X-Custom":"val"}'); CLI headers take precedence over env.
- --format=FORMAT (optional): Default output format for design-data tools — one of json (default), yaml, tree. An explicit per-call format tool parameter overrides this. Also settable via the DEFAULT_FORMAT environment variable.
- --debug (optional): Enable debug mode for detailed error information
- --no-rule (optional): Disable default rules
- --no-prefix (optional): Register tools without the mcp__ name prefix (e.g. getDsl instead of mcp__getDsl). Some MCP clients (such as Grok Build) silently skip tools whose fully-qualified server__tool name contains more than one __ separator — since the server is already prefixed, a mcp__getDsl tool name becomes server__mcp__getDsl and is dropped. Enable this flag for those clients. Also settable via the MG_NO_PREFIX environment variable (1/true/yes).
You can also use space-separated format for parameters:
Environment Variables
Alternatively, you can use environment variables instead of command line arguments:
- MG_MCP_TOKEN or MASTERGO_API_TOKEN: MasterGo API token
- API_BASE_URL: API base URL
- RULES: JSON array of rules (e.g., '["rule1", "rule2"]')
- DEFAULT_FORMAT: Default output format for design-data tools (json | yaml | tree); the --format argument and an explicit per-call format tool parameter take precedence.
- MG_NO_PREFIX: Set to 1/true/yes to register tools without the mcp__ name prefix (the --no-prefix argument takes priority).