talk-to-msg
If you are the rightful owner of talk-to-msg and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcpreview.com.
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Mastergo, allowing Cursor to communicate with Mastergo for reading designs and modifying them programmatically.
Special Notice
This project is modified based on cursor-talk-to-figma-mcp, originally created by Sonny Lazuardi.
Cursor Talk To MSG Plugin MCP
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Mastergo, allowing Cursor to communicate with Master go for reading designs and modifying them programmatically.
Project Structure
src/talk_to_Mastergo_mcp/
- TypeScript MCP server for Mastergo integrationsrc/cursor_mcp_plugin/
- Mastergo plugin for communicating with Cursorsrc/socket.ts
- WebSocket server that facilitates communication between the MCP server and Mastergo plugin
Get Started
- Install Bun if you haven't already:
curl -fsSL https://bun.sh/install | bash
- Run setup, this will also install MCP in your Cursor's active project
bun setup
- Start the Websocket server
bun start
- Install Mastergo Plugin
Manual Setup and Installation
MCP Server: Integration with Cursor
Add the server to your Cursor MCP configuration in ~/.cursor/mcp.json
:
{
"mcpServers": {
"TalkToMastergo": {
"command": "bun",
"args": [
"/path/to/cursor-talk-to-Mastergo-mcp/src/talk_to_Mastergo_mcp/server.ts"
]
}
}
}
WebSocket Server
Start the WebSocket server:
bun run src/socket.ts
Mastergo Plugin
- In Mastergo, go to Plugins > Development > New Plugin
- Choose "Link existing plugin"
- Select the
src/cursor_mcp_plugin/manifest.json
file - The plugin should now be available in your Mastergo development plugins
Usage
- Start the WebSocket server
- Install the MCP server in Cursor
- Open Mastergo and run the Cursor MCP Plugin
- Connect the plugin to the WebSocket server by joining a channel using
join_channel
- Use Cursor to communicate with Mastergo using the MCP tools
MCP Tools
Document & Node Info
get_document_info
: Get detailed information about the current MasterGo documentget_selection
: Get information about the current selectionget_node_info
: Get detailed information about a specific node
Element Creation
create_rectangle
: Create a rectanglecreate_frame
: Create a frame/artboardcreate_text
: Create a text nodecreate_ellipse
: Create an ellipse
Node Modification
set_fill_color
: Set the fill color of a nodeset_stroke_color
: Set the stroke color and weight of a nodemove_node
: Move a noderesize_node
: Resize a nodedelete_node
: Delete a nodeset_corner_radius
: Set the corner radiusset_text_content
: Set the text contentset_font
: Set the fontset_layout_mode
: Set the auto-layout mode
Components & Styles
get_styles
: Get local stylesget_team_components
: Get team componentsimport_component_by_key
: Import a component by keyimport_component_set_by_key
: Import a component set by keyimport_style_by_key
: Import a style by keycreate_component_instance
: Create a component instanceget_component_properties
: Get component propertiesset_component_properties
: Set component propertiesadd_component_property
: Add a component propertyedit_component_property
: Edit a component propertydelete_component_property
: Delete a component propertyset_component_property_references
: Set component property referencesset_variant_properties
: Set variant propertiesget_variant_properties
: Get variant properties
Node Tree Operations
append_child
: Append a child nodeinsert_child
: Insert a child nodefind_all
: Find all matching nodesfind_one
: Find the first matching nodefind_children
: Find direct child nodesfind_all_with_criteria
: Find all nodes by criteriaget_children
: Get all direct children
Export & Advanced
export_node_as_image
: Export a node as an image (PNG, JPG, SVG, PDF)execute_code
: Execute arbitrary JavaScript code in MasterGo (use with caution)
Connection Management
join
: Join a channel
Development
Building the Mastergo Plugin
-
Navigate to the Mastergo plugin directory:
cd src/cursor_mcp_plugin
-
Edit code.js and ui.html
Best Practices
When working with the Mastergo MCP:
- Always join a channel before sending commands
- Get document overview using
get_document_info
first - Check current selection with
get_selection
before modifications - Use appropriate creation tools based on needs:
create_frame
for containerscreate_rectangle
for basic shapescreate_text
for text elements
- Verify changes using
get_node_info
- Use component instances when possible for consistency
- Handle errors appropriately as all commands can throw exceptions
Related MCP Servers
View all browser_automation servers →Fetch
by modelcontextprotocol
A Model Context Protocol server that provides web content fetching capabilities, enabling LLMs to retrieve and process content from web pages.
markdownify-mcp
by zcaceres
Markdownify is a Model Context Protocol (MCP) server that converts various file types and web content to Markdown format.
deepwiki-mcp
by regenrek
This is an unofficial Deepwiki MCP Server that processes Deepwiki URLs, crawls pages, converts them to Markdown, and returns documents or lists by page.
mcp-playwright
by executeautomation
A Model Context Protocol server that provides browser automation capabilities using Playwright.
fetch-mcp
by zcaceres
This MCP server provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
web-eval-agent
by Operative-Sh
operative.sh's MCP Server is a tool for autonomous debugging of web applications directly from your code editor.
cursor-talk-to-figma-mcp
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.