MasterGo MCP Server
by MasterGo
MasterGo Magic MCP 是一个独立的 MCP (Model Context Protocol) 服务,用于连接 MasterGo 设计工具与 AI 模型。它允许 AI 模型直接从 MasterGo 设计文件中获取 DSL 数据。
What is MasterGo MCP Server
MasterGo Magic MCP
MasterGo Magic MCP 是一个独立的 MCP (Model Context Protocol) 服务,用于连接 MasterGo 设计工具与 AI 模型。它允许 AI 模型直接从 MasterGo 设计文件中获取 DSL 数据。
功能特点
- 获取 MasterGo 设计文件的 DSL 数据
- 直接 npx 运行
- 无需安装外部依赖,只需 Node.js 环境
开始使用
1、获取 MG_MCP_TOKEN
- 访问 https://mastergo.com
- 进入个人设置
- 点击安全设置Tab
- 找到个人访问令牌
- 点击生成令牌
2、Cursor 使用
官方的配置操作图文介绍:https://mastergo.com/file/155675508499265?page_id=M
Cursor Mcp 使用指导参考: https://docs.cursor.com/context/model-context-protocol#using-mcp-tools-in-agent
{
"mcpServers": {
"mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=<MG_MCP_TOKEN>",
"--url=https://mastergo.com"
],
"env": {}
}
}
}
Windows 用户使用以下:
{
"mcpServers": {
"mastergo-magic-mcp": {
"command": "cmd",
"args": [
"/c",
"npx",
"-y",
"@mastergo/magic-mcp",
"--token=<MG_TOKEN>“,
"--url=https://mastergo.com"
],
"env": {}
}
}
}
cline 使用
{
"mcpServers": {
"@master/mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=<MG_MCP_TOKEN>",
"--url=https://mastergo.com"
],
"env": {}
}
}
}
配置成功后,Curosr 的 MCP 服务列表里会显示如下界面,服务是绿灯激活的状态:
3、设计稿转代码
1、在 MasterGo 设计文件里选择一个容器后复制浏览器的容器链接地址, 然后填入Cursor对话框里,并加上"生成html文件"之类的 Prompt 提示词。
2、确保选择了"Agent"模式,模型可以选择“Auto”即可,默认会选择Claude 3.5或者 3.7 (主要看你的Cursor 各模型的使用量) 这个时候 Send 发射命令即可。
3、正常情况会提示“Called MCP tool mcp__getDsl” 这就说明在使用 MasterGor DSL服务进行转换设计稿的结构化数据,Claude 3.5 AI 介入会根据你的提示词进行代码实现。
常见问题(更新中)
1、提示:服务红灯,提示 “Client closed”?
确保是否使用了私有源。
微信进群
如果过期了请加vx:boysoman 拉你进群。
许可证
ISC
How to Use
Leave a Comment
Comments section will be available soon. Stay tuned!
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
Filesystem MCP Server
A core MCP server that provides filesystem access capabilities for Claude. Enables secure reading, writing, and management of files on your local system with granular permission controls.
Brave Search MCP
Integrate Brave Search capabilities into Claude through MCP. Enables real-time web searches with privacy-focused results and comprehensive web coverage.
Figma Context MCP
Give Cursor, Windsurf, Cline, and other AI-powered coding tools access to your Figma files with this Model Context Protocol server.
Blender mcp
BlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Magic MCP
Create crafted UI components inspired by the best 21st.dev design engineers.
Apify
Use 3,000+ pre-built cloud tools to extract data from websites, e-commerce, social media, search engines, maps, and more
mcp server axiom
A Model Context Protocol server implementation for Axiom that enables AI agents to query your data using Axiom Processing Language (APL).Query and analyze your Axiom logs, traces, and all other event data in natural language,
Browserbase
The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. Whether you're building an AI-powered IDE, enhancing a chat interface, or creating custom AI workflows, MCP provides a standardized way to connect LLMs with the context they need.</br>This server provides cloud browser automation capabilities using Browserbase, Puppeteer, and Stagehand (Coming Soon). This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a cloud browser environment.Automate browser interactions in the cloud (e.g. web navigation, data extraction, form filling, and more)
ClickHouse
Query your ClickHouse database server.
Cloudflare
Deploy, configure & interrogate your resources on the Cloudflare developer platform (e.g. Workers/KV/R2/D1)
Submit Your MCP Server
Share your MCP server with the community
Submit Now