@binance/muses-comp-gen-mcp
v1.0.10
Published
An MCP server that generates responsive Muses Components based on Figma designs. It uses Figma MCP to convert designs to code, then structures the code into an acceptable Muses component based on `src/instructions.md`.
Readme
Muses Component Generation MCP Server
An MCP server that generates responsive Muses Components based on Figma designs. It uses Figma MCP to convert designs to code, then structures the code into an acceptable Muses component based on src/instructions.md.
This MCP server uses figma-to-code-remote MCP get_code tool for Figma to code capabilities.
Usage guide
On cursor, enter
cmd + Lto bring up the chat windowClick
@and select the project folder to add the project to contextEnter
create muses component, name it XXX, followed by three Figma links representing mobile tablet and desktop designs.
After it runs, review the changes made by AI
If the results are not satisfactory, run
check muses componentand it will check and fix itself according to the guidelines.
MCP Integration
- Install Orba Cursor extension
https://web.devfdg.net/docs/learn/ai/and setup Git token. - Open
Cursor Settings > MCP & Integrations > MCP Tools - Click
New MCP Server - Add the following configurations:
{
"mcpServers": {
...,
// If using Figma's Figma to code MCP
"Figma": {
"url": "https://mcp.figma.com/mcp",
"headers": {}
},
// Or use internal Figma to code MCP
"figma-to-code-remote": {
"url": "https://f2c.qa1fdg.net/mcp"
},
"muses-comp-gen-mcp": {
"command": "npx",
"args": ["@binance/muses-comp-gen-mcp"]
}
}
}Development
npm run dev- Start with hot reloadnpm run build- Build for productionnpm start- Alias for dev commandnpm run debug- Debug with inspector
MCP configurations on local
See the Quickstart tutorial for more information.
// Local built file
{
"muses-comp-gen-mcp": {
"command": "node",
"args": ["<path-to>/muses-comp-gen-mcp/build/src/index.js"]
}
}// Local development with hot reload
// Turn on/off the tool to reload cursor MCP on code change
{
"muses-comp-gen-mcp": {
"command": "npx",
"args": ["tsx", "<path-to>/muses-comp-gen-mcp/src/index.ts"]
}
}