Figma Context MCP
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
作者提供的说明(英文原文)
Compares a mobile app screen (Android or iOS Simulator) with its Figma design and suggests fixes.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
FIGMA_TOKEN, DRIFTCHECK_OUTPUT, DRIFTCHECK_EXPORTS标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"driftcheck": {
"command": "dnx",
"args": [
"Driftcheck",
"--yes"
],
"env": {
"FIGMA_TOKEN": "your-value",
"DRIFTCHECK_OUTPUT": "your-value",
"DRIFTCHECK_EXPORTS": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add driftcheck --env FIGMA_TOKEN=your-value --env DRIFTCHECK_OUTPUT=your-value --env DRIFTCHECK_EXPORTS=your-value -- dnx Driftcheck --yes运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"driftcheck": {
"command": "dnx",
"args": [
"Driftcheck",
"--yes"
],
"env": {
"FIGMA_TOKEN": "your-value",
"DRIFTCHECK_OUTPUT": "your-value",
"DRIFTCHECK_EXPORTS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"driftcheck": {
"type": "stdio",
"command": "dnx",
"args": [
"Driftcheck",
"--yes"
],
"env": {
"FIGMA_TOKEN": "your-value",
"DRIFTCHECK_OUTPUT": "your-value",
"DRIFTCHECK_EXPORTS": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
DRIFTCHECK_OUTPUT envDRIFTCHECK_EXPORTS env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 wilsonvargas 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:FIGMA_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.1)于10天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 .NET。
同一分类中有:Figma Context MCP, Claude Real Video, Figma MCP Server
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ 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、图片和脚本已被移除。链接会离开本站。
Driftcheck
Catch UI drift before your users do.
Your AI agent compares the app on the emulator with its Figma design, then fixes the differences.
Open the interactive report → · Design: Paylo kit by Marvilo (CC BY 4.0)
Driftcheck is a local MCP server. It captures the screen of an Android device or the iOS Simulator, compares it 1:1 with the Figma frame and gives your agent what it needs to close the gap:
Margin, android:layout_marginTop, Modifier.padding, .frame, EdgeInsets…It works with real-world design kits, where layers are called Frame or Text, and without a Figma token through the Driftcheck Figma plugin.
You need the .NET 10 SDK, plus adb for Android or Xcode for the iOS Simulator. Install Driftcheck in one click:
VS Code asks for your Figma token; leave it empty to use the Figma plugin instead. In Cursor, add the token to FIGMA_TOKEN in the server's configuration afterwards.
Or add it to any MCP client by hand; dotnet dnx downloads it from NuGet the first time:
{
"mcpServers": { "driftcheck": { "command": "dotnet", "args": ["dnx", "Driftcheck", "--yes"], "env": { "FIGMA_TOKEN": " " } } } }
With Claude Code:
claude mcp add driftcheck -e FIGMA_TOKEN=<your Figma token> -- dotnet dnx Driftcheck --yes
Then run your app and ask your agent:
Compare the app on the emulator with https://www.figma.com/design/…?node-id=… and fix the differences.
compare_screen answers with a report the agent can act on (excerpt from the demo):
**Fidelity: 75 %** — 15 of 20 elements as in Figma
| Element | Property | Figma | App |
|---|---|---|---|
| Nice to meet you | height | 31.5 | 25.5 |
| Text "Sign up with Google" | x | 131.9 | 125 |
| Shape "Sign up" | background | #DBC6F8 | #BAD1BB |
FontFamily="Inter", FontSize="32", CharacterSpacingBackgroundColor="#9E56FF" (it renders as #DBC6F8 in the design: the layer or a container has opacity)
Along with it come report.html (the interactive report above: slider, opacity, diff and side by side), side_by_side.png and diff.png.
| Device | How it reads the screen |
|---|---|
| Android emulator or device | adb: screencap + uiautomator dump (the AutomationId is the resource-id) |
| iOS Simulator (macOS) | simctl + an XCUITest helper that reads the accessibility tree (the AutomationId is the accessibilityIdentifier) |
Fix suggestions are written for .NET MAUI, Android views, Jetpack Compose, UIKit, SwiftUI and Flutter, or in plain terms if you don't pass a framework. The comparison itself doesn't depend on the framework: it works from what's on the screen.
| Tool | Use |
|---|---|
list_devices | Connected Android devices and booted iOS simulators |
get_design_specs | Sizes, colors, texts and fonts of the frame (before writing the UI code) |
capture_screen | Capture + app elements with their AutomationId |
compare_screen | Full design vs. app comparison: fidelity, differences, how to fix them and report.html |
import_design | Imports a .driftcheck.json from the Figma plugin that ended up outside Downloads |
Driftcheck downloads the frame once and keeps it in a local cache, recomputes Figma's auto layout, and matches layers to app elements by AutomationId, by visible text or by position. Texts are compared by their visible glyphs rather than their boxes, non-text layers are found in the screenshot by how they look, and a device slightly wider or narrower than the frame is handled by anchoring each element where it fits best. The full walkthrough is in How Driftcheck compares.
Figma limits how many calls a token can make, and on some seat types the quota is very low: once it runs out, it responds 429 with waits of days. That's why:
refresh=true to get_design_specs or compare_screen to download a frame that changed in Figma.429, the error says how long to wait.tools/figma-export-plugin exports the frame (JSON + 2x render) to a .driftcheck.json file without using the REST API. If it lands in Downloads, Driftcheck picks it up on its own from the frame link; if it lands in another folder, import it with import_design. See the plugin README.adb (detected from ANDROID_HOME, ANDROID_SDK_ROOT or the default paths on Windows and macOS)FIGMA_TOKEN environment variable with a Figma Personal Access Token (scope *File content: Read-only*), or the Figma plugin to work without the APIDRIFTCHECK_OUTPUT to change the output folder (default: driftcheck in the temp folder)DRIFTCHECK_EXPORTS to change where plugin exports are looked up (default: Downloads)get_design_specs provides it as a reference.git clone https://github.com/wilsonvargas/Driftcheck.git
cd Driftcheck dotnet build src/Driftcheck.Mcp
The .mcp.json at the root registers the server for MCP clients that read it when opening this folder. To use it from another project, add the server to your client's MCP configuration:
{
"mcpServers": { "driftcheck": { "command": "dotnet", "args": [" /src/Driftcheck.Mcp/bin/Debug/net10.0/Driftcheck.Mcp.dll"] } } }
src/Driftcheck.Mcp — MCP servertools/ios-accessibility-helper — UI test that dumps the iOS Simulator accessibility tree (copied next to the server on build)tools/figma-export-plugin — Figma plugin that exports a frame without the REST APIsamples/PayloMaui — MAUI test app with screens from the Paylo kit by Marvilo (CC BY 4.0) For the iOS Simulator: dotnet build -f net10.0-ios -p:TargetFrameworks=net10.0-ios (limiting TargetFrameworks avoids requiring the Mac Catalyst workload), then xcrun simctl install booted bin/Debug/net10.0-ios/iossimulator-arm64/PayloMaui.app and xcrun simctl launch booted com.companyname.paylomaui. The Xcode version must be the one the iOS workload asks for; if several are installed, pick it with DEVELOPER_DIR.samples/PayloNative — the same sign-up screen with native Android views (Java, no MAUI or AndroidX), to check that the comparison doesn't depend on MAUI. ./build.ps1 builds it with the SDK tools (no Gradle) and installs it on the emulatorsamples/PayloIos — the same screen with native iOS views (UIKit in Swift, no MAUI or storyboard). ./build.sh builds it with swiftc (no Xcode project) and installs it on the booted simulatortests/Driftcheck.Tests — comparer tests with synthetic screensdocs — the detailed comparison walkthrough and the demo report published on GitHub PagesTo compare the sample apps, open the Paylo kit in the Figma
只显示了开头部分;其余内容请在仓库中阅读