Figma Context MCP
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
作者提供的说明(英文原文)
AI design fidelity — compare Figma designs or screenshots against rendered UI. No API keys.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
FIGMA_ACCESS_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"kiyas": {
"command": "npx",
"args": [
"-y",
"kiyas-cli",
"mcp"
],
"env": {
"FIGMA_ACCESS_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add kiyas --env FIGMA_ACCESS_TOKEN=your-value -- npx -y kiyas-cli mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"kiyas": {
"command": "npx",
"args": [
"-y",
"kiyas-cli",
"mcp"
],
"env": {
"FIGMA_ACCESS_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"kiyas": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"kiyas-cli",
"mcp"
],
"env": {
"FIGMA_ACCESS_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 saiffmirza 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:FIGMA_ACCESS_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.4.0)于4个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:Figma Context MCP, Claude Real Video, Figma MCP Server
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
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.
The Figma MCP server brings Figma design context directly into your AI workflow.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
AI-Powered Design Fidelity — MCP Server & CLI
"comparison" — pronounced "key-AHS"
A developer-first MCP server (also runnable as a CLI) that compares Figma designs against rendered UI components and surfaces an AI-powered semantic diff. Plugs into Claude Code, Cursor, Codex CLI, and any other MCP-compatible client.
Unlike pixel-diff tools, kiyas uses vision AI to understand _what_ is different and _why_ it matters — outputting actionable, human-readable feedback like:
Just describe the component by name. kiyas finds it in your codebase, screenshots it, and compares it against the Figma design.
Prefer an app over a terminal? There's also a desktop app.
A native macOS app for running the same comparisons point-and-click — built for designers and anyone who'd rather not touch a terminal. Pick a project, paste a Figma link (or drop in a screenshot), describe the component, and get the full report in-app. It uses the same engine and the same subscription-based auth: AI calls go through the Claude Code or Codex CLI on your machine, never an API key.
[⬇ Download the latest release](https://github.com/saiffmirza/kiyas/releases/latest) (Apple Silicon)
.dmg, drag Kiyas to Applications.xattr -dr com.apple.quarantine /Applications/Kiyas.app).Highlights: project sidebar with dev-server detection, capture preview + crop before comparing, built-in terminal, full dark mode, and a Liquid Glass icon on macOS 26.
To build from source instead:
git clone https://github.com/saiffmirza/kiyas && cd kiyas
npm install npm run desktop # dev mode
cd apps/desktop && npx electron-builder --mac
┌─────────────────────┐
│ kiyas │ │ (MCP server / CLI) │ │ │ │ figma / design img │ │ + target/component │ └──────────┬───────────┘ │ ┌──────────────┼──────────────┐ ▼ ▼ ▼ ┌──────────────┐ ┌───────────┐ ┌─────────────┐ │ 1. Auth │ │ 2. Design │ │ 3. Resolve │ │ │ │ Capture │ │ Component │ │ Verify │ │ │ │ │ │ Claude Code │ │ Figma API │ │ AI agent │ │ or Codex CLI │ │ PNG export│ │ searches │ │ is installed │ │ — or your │ │ codebase, │ │ & signed in │ │ own image │ │ finds URL + │ │ │ │ (--design)│ │ CSS selector│ └──────┬───────┘ └─────┬─────┘ └──────┬──────┘ │ │ │ │ ▼ ▼ │ ┌────────────┐ ┌────────────┐ │ │ Figma │ │ Playwright │ │ │ design │ │ screenshot │ │ │ (PNG) │ │ (PNG) │ │ └─────┬──────┘ └─────┬──────┘ │ │ │ │ └───────┬───────┘ │ ▼ │ ┌──────────────────────┐ └─────────►│ 4. Vision AI Compare │ │ │ │ Both images sent to │ │ Claude Code CLI with │ │ a structured prompt │ │ │ │ Returns JSON array │ │ of discrepancies │ └──────────┬───────────┘ │ ▼ ┌──────────────────────┐ │ 5. HTML Report │ │ │ │ Side-by-side images │ │ Severity badges │ │ Interactive filters │ │ HIGH / MEDIUM / LOW │ │ │ │ file:// link in │ │ terminal output │ └──────────────────────┘
Step-by-step:
--scale), and fetches node metadata (colors, fonts, spacing). Or skip Figma entirely: pass --design with your own design image and no Figma token is needed.kiyas exposes its comparison engine as an MCP server over stdio. Three tools, all with Zod-typed input schemas:
| Tool | Description | Required input |
|---|---|---|
compare | Run a fresh design-vs-implementation comparison; returns reportId + summary | (figma or designImage) + (target or component) |
get_diff_report | Fetch a stored report's HTML or JSON content | reportId |
list_issues | List discrepancies from a stored report, optionally filtered by severity | reportId |
Reports are persisted under .kiyas/reports/ / in your project directory, so the same reportId stays valid across calls and across CLI/MCP usage.
npm install -g kiyas-cli
npx playwright install chromium
Claude Code
claude mcp add kiyas -- npx -y kiyas-cli@latest mcp
claude mcp add kiyas -e FIGMA_ACCESS_TOKEN=figd_xxx -- npx -y kiyas-cli@latest mcp
kiyas is also listed in the official MCP Registry as io.github.saiffmirza/kiyas, so registry-aware clients can install it directly from their MCP catalog.
Cursor — edit ~/.cursor/mcp.json:
{
"mcpServers": { "kiyas": { "command": "npx", "args": ["kiyas-cli@latest", "mcp"] } } }
Codex CLI — edit ~/.codex/config.toml:
[mcp_servers.kiyas]
command = "npx" args = ["kiyas-cli@latest", "mcp"]
The configs above use kiyas-cli@latest so npx picks up new releases on every launch — the tradeoff is a registry check per start, and launches can fail offline. If you'd rather pin a version (kiyas-cli@1.3.1) or use a global install, that's safe too: kiyas checks npm once at startup (non-blocking) and logs a notice to stderr when a newer version is available.
The compare tool needs Figma access only when you pass a figma URL. Three ways to provide it:
1. Pass your token via the server config (recommended):
claude mcp add kiyas -e FIGMA_ACCESS_TOKEN=<your-token> -- npx -y kiyas-cli@latest mcp
or in .mcp.json / mcp.json / config.toml, add an env block:
{
"mcpServers": { "kiyas": { "command": "npx", "args": ["kiyas-cli@latest", "mcp"], "env": { "FIGMA_ACCESS_TOKEN": "your-token" } } } }
2. A `.kiyasrc` file in the project root or home directory: { "figmaAccessToken": "..." }
3. No token at all — pair with the Figma MCP server. If the agent already has Figma's own MCP server connected, it can export the frame as an image itself and pass the file path (or image URL) as designImage instead of a figma URL. kiyas never touches the Figma API in this mode:
Export node 1:234 from the Figma file as a PNG, then use kiyas to compare it against the primary button on the login page.
If a figma URL is used with no token configured, the tool fails fast with these instructions rather than hanging.
Once connected, you can ask the agent things like:
Compare the Figma frame at
against the primary button on the login page, then list only the high-severity issues.
The agent will call compare to produce a reportId, then list_issues with severity: "high" against that ID.
--figma; comparing against a local screenshot with --design requires no tokennpm install -g kiyas-cli
npx playwright install chromium
kiyas setup
This walks you through:
.env# Describe the component by name — kiyas finds it automatically
kiyas --figma "https://www.figma.com/design/abc123/Design?node-id=1:234" \ --component "eventHeader on the redemption screen"
kiyas --figma "https://www.figma.com/design/abc123/Design?node-id=1:234" \ --target "http://localhost:3000/redemption" \ --selector ".event-header"
kiyas --figma "https://www.figma.com/design/abc123/Design?node-id=1:234" \ --component "primary button" \ --output report.html
kiyas --figma "https://www.figma.com/design/abc123/Design?node-id=1:234" \ --component "primary button" \ --format json
kiyas --design ./design.png \ --component "primary button" \ --output report.html
kiyas --figma "https://www.figma.com/design/abc123/Design?node-id=1:234" \ --component "nav bar" \ --model openai
| Flag | Description
只显示了开头部分;其余内容请在仓库中阅读