MasterGo MCP Server
A standalone MCP service that connects MasterGo design tools with AI models, enabling direct retrieval of DSL data from MasterGo design files.
Get this MCP server
A standalone MCP service that connects MasterGo design tools with AI models, enabling direct retrieval of DSL data from MasterGo design files.
Installation
NPX
npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [--debug] [--no-rule]
Smithery
npx -y @smithery/cli install @mastergo-design/mastergo-magic-mcp --client claude
From Source Code
yarn
yarn build
Configuration
Cursor (Command Line Arguments)
{
"mcpServers": {
"mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=<MG_MCP_TOKEN>",
"--url=https://mastergo.com"
],
"env": {}
}
}
}
Cursor (Environment Variables)
{
"mcpServers": {
"mastergo-magic-mcp": {
"command": "npx",
"args": ["-y", "@mastergo/magic-mcp"],
"env": {
"MG_MCP_TOKEN": "<YOUR_TOKEN>",
"API_BASE_URL": "https://mastergo.com"
}
}
}
}
Cline (Command Line Arguments)
{
"mcpServers": {
"@master/mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=<MG_MCP_TOKEN>",
"--url=https://mastergo.com"
],
"env": {}
}
}
}
Cline (Environment Variables)
{
"mcpServers": {
"@master/mastergo-magic-mcp": {
"command": "npx",
"args": ["-y", "@mastergo/magic-mcp"],
"env": {
"MG_MCP_TOKEN": "<YOUR_TOKEN>",
"API_BASE_URL": "https://mastergo.com"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
get-dsl |
Tool for retrieving DSL (Domain Specific Language) data from MasterGo design files |
get-component-link |
Tool for retrieving component documentation via links |
get-meta |
Tool for retrieving metadata |
get-component-workflow |
Tool that provides a structured component development workflow for Vue and React, generating... |
Features
- Retrieves DSL data from MasterGo design files
- Runs directly via npx
- Requires no external dependencies, only Node.js environment
- Supports design rule configuration
- Debug mode for detailed error information
Environment Variables
Required
MG_MCP_TOKEN- MasterGo API token for authenticationMASTERGO_API_TOKEN- Alternative environment variable for MasterGo API token
Optional
API_BASE_URL- Base API URL for the MasterGo serviceRULES- JSON array of rules (for example, '["rule1", "rule2"]')
Notes
The token can be obtained in MasterGo personal settings under the Security Settings tab. The server supports both command line arguments and environment variables for configuration. Available in the LINGMA VSCode extensions marketplace for easy integration.