MasterGo Magic
Connects AI models to MasterGo design tools, enabling retrieval of DSL data, component documentation, and metadata from MasterGo design files for structured component development workflows.
What is MasterGo Magic?
MasterGo Magic is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to connects ai models to mastergo design tools, enabling retrieval of dsl data, component documentation, and metadata from mastergo design files for structured component development workflows.
Connects AI models to MasterGo design tools, enabling retrieval of DSL data, component documentation, and metadata from MasterGo design files for structured component development workflows.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Connects AI models to MasterGo design tools, enabling retrie
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mastergo-magic-mcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MasterGo Magic
MasterGo Magic MCP connects AI models to MasterGo design files, enabling them to retrieve DSL (Domain Specific Language) data, component documentation, metadata, and structured component development workflows directly from design files. It exposes four specialized tools that let AI assistants extract design specifications, generate component code scaffolding for Vue and React, and access component links — bridging the gap between visual design in MasterGo and structured code generation. Design engineers and frontend developers use it to automate the translation of MasterGo design file layers into production-ready component code.
Prerequisites
- Node.js 18 or later installed
- A MasterGo account with at least one design file containing components
- A MasterGo API token (available from your MasterGo account settings)
- An MCP-compatible client such as Claude Desktop, Claude Code, or Cursor
Obtain your MasterGo API token
Log in to MasterGo and navigate to your account settings to generate a personal API token. This token is required to authenticate all requests to the MasterGo API.
Run the MCP server via npx
Start the MasterGo Magic MCP server by passing your token directly as a flag. Optionally specify the API URL for enterprise MasterGo instances.
npx @mastergo/magic-mcp --token=YOUR_MASTERGO_TOKEN --url=https://mastergo.comConfigure environment variables (alternative approach)
Instead of passing the token as a flag, set it as an environment variable. The server reads `MG_MCP_TOKEN` or `MASTERGO_API_TOKEN` from the environment.
export MG_MCP_TOKEN=your_token_here
npx @mastergo/magic-mcpAdd the server to your MCP client config
Register the MasterGo Magic MCP server in your client configuration file, passing your token as an argument or environment variable.
Find the design file URL and layer ID
In MasterGo, open the design file and select the specific component layer you want to work with. Copy the URL — it will contain the `fileId` and `layer_id` parameters needed for tool calls.
Use the get-dsl or get-component-workflow tool
Ask the AI assistant to extract DSL data or generate a component workflow for a specific MasterGo layer URL. The server will fetch the design specification and return structured data for code generation.
MasterGo Magic Examples
Client configuration
Add MasterGo Magic MCP to claude_desktop_config.json with your token as an environment variable for security.
{
"mcpServers": {
"mastergo-magic": {
"command": "npx",
"args": ["@mastergo/magic-mcp"],
"env": {
"MG_MCP_TOKEN": "YOUR_MASTERGO_TOKEN"
}
}
}
}Prompts to try
Use these prompts after connecting to interact with your MasterGo design files through the AI assistant.
- "Extract the DSL data from this MasterGo layer: https://mastergo.com/file/abc123?layer_id=xyz"
- "Generate a Vue component from this design: https://mastergo.com/file/abc123?layer_id=xyz"
- "Get the component documentation for this MasterGo element"
- "Retrieve the metadata for the design file at this URL"
- "Create a React component workflow for this MasterGo component"Troubleshooting MasterGo Magic
Authentication fails with 'Invalid token' or 401 errors
Verify that MG_MCP_TOKEN (or the --token flag) is set to a valid MasterGo personal access token. Tokens can be regenerated in MasterGo account settings. If using a corporate MasterGo instance, also set the --url flag to your company's MasterGo URL instead of https://mastergo.com.
get-dsl returns empty or incomplete data for a layer
Ensure the layer_id in the URL corresponds to a specific component layer, not the file root. Select the exact component in MasterGo before copying the URL. Shared links (short links in the format /goto/<shortLink>) are also supported — try converting to a full URL first using resolve-shortlink if available.
The server fails to start with a proxy error
If you are behind a corporate proxy, set HTTPS_PROXY or HTTP_PROXY environment variables before running npx. Alternatively, pass the proxy URL using the --proxy flag: `npx @mastergo/magic-mcp --token=TOKEN --proxy=http://proxy.company.com:8080`.
Frequently Asked Questions about MasterGo Magic
What is MasterGo Magic?
MasterGo Magic is a Model Context Protocol (MCP) server that connects ai models to mastergo design tools, enabling retrieval of dsl data, component documentation, and metadata from mastergo design files for structured component development workflows. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MasterGo Magic?
Follow the installation instructions on the MasterGo Magic GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MasterGo Magic?
MasterGo Magic works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MasterGo Magic free to use?
Yes, MasterGo Magic is open source and available under the ISC License license. You can use it freely in both personal and commercial projects.
MasterGo Magic Alternatives — Similar Developer Tools Servers
Looking for alternatives to MasterGo Magic? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MasterGo Magic in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MasterGo Magic?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.