Figma Context MCP
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)
MCP Server for Optics Design System documentation and token usage.
สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน
ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry
เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง
ต้องเตรียมก่อน
คุณใช้แอปไหน
เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”
เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json
{
"mcpServers": {
"optics": {
"command": "npx",
"args": [
"-y",
"optics-mcp"
]
}
}
}พิมพ์คำสั่งนี้ใน Terminal
claude mcp add optics -- npx -y optics-mcpวางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json
{
"mcpServers": {
"optics": {
"command": "npx",
"args": [
"-y",
"optics-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
วางในไฟล์ .vscode/mcp.json ของโปรเจกต์
{
"servers": {
"optics": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"optics-mcp"
]
}
}
}เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง
ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น
ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี
ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README
รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง
เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569
ชื่อใน registry ยืนยันด้วยบัญชี GitHub RoleModel ซึ่งเป็นเจ้าของ repo
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ยังไม่ได้อ่านข้อมูล repo จาก GitHub
ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต
ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน
รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต
เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo
จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น
registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก
รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)
repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.2.6) เข้า registry 11 เดือนที่ผ่านมา
โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย
ในหมวดเดียวกันมี Figma Context MCP, Claude Real Video, Figma MCP Server
server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว
อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
Let any LLM watch a video locally — and search everything it has ever watched.
server ทางการของ Figma ส่งข้อมูลงานออกแบบให้ AI อ่าน เพื่อเปลี่ยนแบบเป็นโค้ดหรืออธิบายแบบได้ตรงขึ้น ต่อผ่านคลาวด์ของ Figma
ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ
A Model Context Protocol (MCP) server for the Optics Design System, enabling LLMs to understand and work with design tokens, components, and documentation from https://docs.optics.rolemodel.design.
If you're an AI agent, read [SYSTEM_OVERVIEW.md](./SYSTEM_OVERVIEW.md) FIRST!
Optics uses a sophisticated HSL-based color system that's different from typical design systems. The system overview explains:
--color-primary token (use --op-color-primary-base instead)Key insight: Optics has 500+ color tokens organized as a predictable scale system, not simple name-value pairs.
This MCP server provides 14 tools and resources for working with the Optics design system:
graph TB
subgraph "MCP Client (AI/LLM)" CLIENT[AI Agent/LLM] end
subgraph "Optics MCP Server" SERVER[MCP Server stdio transport]
subgraph "Resources (13)" SYSTEM[optics://system-overview] DOC_INTRO[optics://documentation/introduction] DOC_START[optics://documentation/getting-started] DOC_TOKENS[optics://documentation/design-tokens] DOC_COLOR[optics://documentation/color-system] DOC_SPACING[optics://documentation/spacing] DOC_TYPO[optics://documentation/typography] DOC_COMP[optics://documentation/components] DOC_A11Y[optics://documentation/accessibility] TOK_ALL[optics://tokens/all] TOK_COLOR[optics://tokens/color] TOK_SPACING[optics://tokens/spacing] TOK_TYPO[optics://tokens/typography] COMP_ALL[optics://components/all] end
subgraph "Core Tools (7)" T1[get_token] T2[search_tokens] T3[get_token_usage_stats] T4[get_component_info] T5[list_components] T6[get_component_tokens] T7[search_documentation] end
subgraph "Advanced Tools (7)" T8[generate_theme] T9[validate_token_usage] T10[replace_hard_coded_values] T11[check_contrast] T12[suggest_token_migration] T13[generate_component_scaffold] T14[generate_sticker_sheet] end
subgraph "Prompts (5)" P1[start-here] P2[get-token-reference] P3[component-guide] P4[theme-customization] P5[migration-guide] end
subgraph "Data Layer" TOKENS[83 Design Tokens HSL colors, spacing, typography, borders, shadows] COMPONENTS[24 Components with token dependencies] DOCS[Documentation Guidelines & best practices] end end
CLIENT -->|JSON-RPC| SERVER SERVER --> SYSTEM SERVER --> DOC_INTRO SERVER --> DOC_START SERVER --> DOC_TOKENS SERVER --> DOC_COLOR SERVER --> DOC_SPACING SERVER --> DOC_TYPO SERVER --> DOC_COMP SERVER --> DOC_A11Y SERVER --> TOK_ALL SERVER --> TOK_COLOR SERVER --> TOK_SPACING SERVER --> TOK_TYPO SERVER --> COMP_ALL SERVER --> T1 SERVER --> T2 SERVER --> T3 SERVER --> T4 SERVER --> T5 SERVER --> T6 SERVER --> T7 SERVER --> T8 SERVER --> T9 SERVER --> T10 SERVER --> T11 SERVER --> T12 SERVER --> T13 SERVER --> T14 SERVER --> P1 SERVER --> P2 SERVER --> P3 SERVER --> P4 SERVER --> P5 T1 --> TOKENS T2 --> TOKENS T3 --> TOKENS T4 --> COMPONENTS T5 --> COMPONENTS T6 --> COMPONENTS T7 --> DOCS T8 --> TOKENS T9 --> TOKENS T10 --> TOKENS T11 --> TOKENS T12 --> TOKENS T13 --> COMPONENTS T14 --> TOKENS T14 --> COMPONENTS P1 --> SYSTEM P2 --> TOKENS P3 --> COMPONENTS P4 --> T8 P5 --> T12
Quick Setup:
{
"servers": { "optics": { "command": "npx", "args": [ "@rolemodel/optics-mcp@latest" ] } } }
Or create .vscode/mcp.json in your workspace with the same config.
Official MCP Registry: Listed at registry.modelcontextprotocol.io ✅
One-Click Install (click to open Cursor):
cursor://anysphere.cursor-deeplink/mcp/install?name=optics&config=eyJvcHRpY3MiOnsiY29tbWFuZCI6Im5weCIsImFyZ3MiOlsiLXkiLCJvcHRpY3MtbWNwIl19fQ==
Or Manual Setup:
{
"servers": { "optics": { "command": "npx", "args": [ "@rolemodel/optics-mcp@latest" ] } } }
The easiest way to use Optics MCP - no installation required!
Add to your MCP configuration:
{
"mcpServers": { "optics": { "command": "npx", "args": [ "@rolemodel/optics-mcp@latest" ] } } }
Add with a single command:
claude mcp add optics -- npx -y optics-mcp
Other useful commands:
# List all MCP servers
claude mcp list
claude mcp remove optics
claude mcp get optics
claude mcp test optics
That's it! The server runs automatically whenever your MCP client needs it.
If you want to modify the server or contribute:
git clone https://github.com/RoleModel/optics-mcp.git
cd optics-mcp npm install npm run build
Then configure with the local path:
{
"mcpServers": { "optics": { "command": "node", "args": ["/absolute/path/to/optics-mcp/dist/index.js"] } } }
npm start
For detailed documentation of all tools, see TOOLS.md.
get_tokenGet detailed information about a specific design token.
search_tokensSearch for design tokens by category or name pattern.
get_token_usage_statsGet statistics about design token usage across the system.
get_component_infoGet detailed information about a component including its design token dependencies.
list_componentsList all available components in the design system.
get_component_tokensGet all design tokens used by a specific component.
search_documentationSearch through Optics documentation.
generate_themeCreate a custom branded theme with CSS variables and Figma Variables JSON.
validate_token_usageFind hard-coded values in code that should use design tokens.
replace_hard_coded_valuesAutomatically replace hard-coded values with design tokens.
check_contrastCheck WCAG color contrast ratios between tokens.
suggest_token_migrationSuggest tokens for legacy code migration.
generate_component_scaffoldGenerate component code with Optics tokens.
generate_sticker_sheetGenerate a visual style guide showing all design tokens and components.
The server exposes the following resources via the optics:// URI scheme:
optics://documentation/introduction - Overview of Opticsoptics://documentation/getting-started - Getting started guideoptics://documentation/design-tokens - Design token documentationoptics://documentation/color-system - Color system guideoptics://documentation/spacing - Spacing system guideoptics://documentation/typography - Typography guideoptics://documentation/components - Component library overviewoptics://documentation/accessibility - Accessibility guidelinesoptics://tokens/all - All design tokensoptics://tokens/color - Color tokens onlyoptics://tokens/spacing - Spacing tokens onlyoptics://tokens/typography - Typography tokens onlyoptics://components/all - All componentsAll components extracted from real Optics SCSS with accurate token dependencies:
Each component specifies which Optics design tokens it uses, making it easy to understand dependencies and maintain consistency.
npm run build
npm run watch
optics-mcp/
├── src/ │ ├── index.ts # MCP server implementation │ └── optics-data.ts # Design tokens and component data ├── dist/ # Compiled JavaScript ├── package.json ├── tsconfig.json └── README.md
The server tracks which design tokens are used by each component, enabling:
ตัดมาแค่ช่วงต้น อ่านต่อใน repo