
pf mcp figma plugin
连接到 Cursor MCP 服务器,自动检测并共享 Figma 组件和框架。
Repository Info
About This Server
连接到 Cursor MCP 服务器,自动检测并共享 Figma 组件和框架。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Cursor MCP Figma Plugin
This Figma plugin connects to the Cursor MCP server to automatically detect and share Figma components, frames, and other elements with Cursor agents.
Features
- Real-time component detection
- Automatic updates when components change
- Manual scanning of the current page
- Seamless integration with Cursor MCP server
Public MCP Server
You can use the public MCP server at:
https://mcp-server-g9fg.onrender.com
Setup
-
Install the plugin in Figma:
- Open Figma
- Go to Plugins > Development > Import plugin from manifest
- Select the
manifest.jsonfile from this project
-
Configure the MCP server:
- The plugin UI now lets you set the MCP server URL directly. Enter your server URL in the input field and click "Set Server URL".
- By default, it uses the public Render MCP server.
-
Run the plugin:
- In Figma, right-click and select Plugins > Development > Cursor MCP Connector
- The plugin UI will appear with connection status
Usage
- Click Scan Current Page to send all components/frames on the current page to the MCP server.
- You can change the MCP server URL at any time using the input field and button in the plugin UI.
Troubleshooting
- If you see an error like
Could not reach MCP server..., check:- The MCP server URL is correct and accessible from your network.
- The MCP server allows CORS requests from Figma (the provided server does).
- The server is running and not overloaded.
Deploying Your Own MCP Server
- You can deploy your own MCP server using the included
mcp-server.jsandpackage.jsonfiles. - Render.com is recommended for easy Node.js hosting.
- Make sure to update the MCP server URL in the plugin UI to point to your deployed server.
Development
To modify the plugin:
-
Edit the files:
code.js: Main plugin logicui.html: Plugin interfacemanifest.json: Plugin configuration
-
Test changes:
- Reload the plugin in Figma
- Check the browser console for any errors
Requirements
- Figma desktop app or Figma web
- Running MCP server instance (or use the public one above)
- Network access to the MCP server
Troubleshooting
If the plugin isn't connecting:
- Verify the MCP server is running (if self-hosted)
- Check the MCP server URL in
code.js - Ensure network access is allowed
- Check the browser console for error messages
Quick Start
Clone the repository
git clone https://github.com/andreycretsu/pf-mcp-figma-pluginInstall dependencies
cd pf-mcp-figma-plugin
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.