Figma-to-Component Tools Setup
Prerequisites and setup for using the Figma workflow tools: sfnext_start_figma_workflow, sfnext_analyze_component, and sfnext_match_tokens_to_theme.
Note: 🚧 This MCP tool is for Storefront Next. Storefront Next is part of a closed pilot and isn't available for general use.
Overview
The Figma-to-component workflow requires an external Figma MCP server to fetch design data from Figma. The b2c-dx-mcp server handles workflow orchestration, component analysis, and token mapping, but it needs the Figma MCP server to access Figma designs.
Prerequisites:
- b2c-dx-mcp configured with
--allow-non-ga-toolsflag (Figma tools are preview) - Storefront Next project
app.csstheme file (required forsfnext_match_tokens_to_themetool; optional path can be provided)- External Figma MCP server enabled in your MCP client
See Installation for b2c-dx-mcp setup.
Figma MCP Setup
The workflow requires a separate Figma MCP server to fetch design data from Figma. Enable it in your MCP client following the Figma MCP Server Documentation.
Figma provides two connection options:
- Desktop MCP (Local) - Uses the Figma desktop app (no API token needed)
- Remote MCP (Hosted) - Requires a Figma Personal Access Token
Check the Figma MCP catalog to see which option your MCP client supports, then follow the installation instructions in the Figma documentation.
Figma Design File
You must have view access (or higher) to the Figma file. The workflow requires a Figma URL that includes the node-id query parameter to identify the specific frame or component to convert.
To get a URL with node-id:
- Open the Figma file
- Select the frame or component you want to convert
- Right-click → Copy link to selection
The workflow supports standard Figma URL formats with node-id parameter. No special Figma configuration (Dev Mode, Code Connect, plugins) is required.
Verification
To confirm the Figma MCP server is working, list tools in your MCP client. You should see Figma MCP tools available (exact names may vary by provider).
If the Figma MCP server is not enabled, the workflow tool will still return instructions and parsed parameters, but design data cannot be fetched from Figma.
Related Documentation
- sfnext_start_figma_workflow - Workflow orchestrator (call first)
- sfnext_analyze_component - REUSE/EXTEND/CREATE recommendation
- sfnext_match_tokens_to_theme - Token mapping
- STOREFRONTNEXT Toolset - Overview of Storefront Next tools
- Figma MCP Server Documentation - Official Figma MCP setup