Figma Context MCP
Give your coding agent access to your Figma data. Implement designs in any framework in one-shot.
作者提供的说明(英文原文)
MCP server giving AI agents eyes on OpenImageDebugger buffers in live gdb/lldb sessions
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"oid": {
"command": "uvx",
"args": [
"oid-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add oid -- uvx oid-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"oid": {
"command": "uvx",
"args": [
"oid-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"oid": {
"type": "stdio",
"command": "uvx",
"args": [
"oid-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 OpenImageDebugger 验证,该账户拥有此仓库
代码最后更新于5天前
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于5天前,最新版本(0.3.6)于12天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
MCP server that gives AI agents eyes on OpenImageDebugger buffers in a live gdb/lldb session: list observable symbols at a breakpoint, view renderings, read exact values, dump lossless .npy copies, and mirror buffers into the human viewer.
⚠️ Experimental. This is a new, experimental feature — the control
protocol, tool surface, and behavior may change without notice, and it
is not yet covered by any stability guarantee. It is opt-in
(
OID_AGENT=1) and exposes debuggee memory to local processes; enable
it only in trusted, local development. Feedback welcome.
Two cooperating pieces, connected over a localhost socket:
oid.py, stdlib-only) starts inside your debugger's embedded Python when OID_AGENT=1 is set. It writes a per-session discovery file (host, port, random token) into a private per-user directory..npy) outside the fragile debugger process.You run the debugger; the MCP client runs oid-mcp. They find each other through the discovery directory, so both must be able to read the same directory (see Troubleshooting).
oid.py. See the top-level README's Building the Open Image Debugger.lldb — the same debugger you already use with OID.pip install needed. Install with curl -LsSf https://astral.sh/uv/install.sh | sh (or brew install uv). uv run --directory /path/to/OpenImageDebugger/resources/oidmcp oid-mcp
The first run resolves mcp/numpy/pillow into a local venv. It prints an experimental/security warning to stderr and then waits for MCP traffic on stdin — that blocking wait means it started correctly. Press Ctrl-C to exit.
mcpServers schema — only the file location differs. Each client spawns its *own* oid-mcp process, so you can register it in several clients at once; they all discover the same debug session.Claude Code — one-liner:
claude mcp add oid -- \
uv run --directory /path/to/OpenImageDebugger/resources/oidmcp oid-mcp
or add it to .mcp.json:
{
"mcpServers": { "oid": { "command": "uv", "args": ["run", "--directory", "/path/to/OpenImageDebugger/resources/oidmcp", "oid-mcp"] } } }
Cursor — put the same entry in ~/.cursor/mcp.json (global, all projects) or /.cursor/mcp.json (one project). Settings → *MCP / Tools & Integrations* → *Add new MCP server* opens that file. The tools are only usable from Cursor's Agent chat.
{
"mcpServers": { "oid": { "command": "/absolute/path/to/uv", "args": ["run", "--directory", "/path/to/OpenImageDebugger/resources/oidmcp", "oid-mcp"] } } }
Use an absolute `command` path in desktop editors. Cursor and
other GUI IDEs do not inherit your shell
PATH, so a bare"uv"
often fails to launch. Use the output of
command -v uv(e.g.
/opt/homebrew/bin/uvwith Apple-Silicon Homebrew). The same goes
for any interpreter the client can't resolve on its own.
Optional environment variables (set them on the server entry via your client's env field, and — for OID_AGENT_DIR — on the debugger too):
| Variable | Default | Purpose |
|---|---|---|
OID_MCP_MAX_BYTES | 268435456 (256 MiB) | Reject buffers larger than this before transfer |
OID_AGENT_DIR | ~/.oid-agent/ (%LOCALAPPDATA%\oid-agent on Windows) | Discovery directory shared by debugger and server |
Discovery location. The default directory is derived from your home
directory (via the password database), so a GUI-spawned
oid-mcpand a
terminal debugger resolve the same path regardless of
$TMPDIR/$HOME.
To relocate it, set
OID_AGENT_DIRin both environments to the same
absolute path (
~is not expanded).
OID_AGENT=1 gdb ./your-program
(gdb) source /path/to/OpenImageDebugger/oid.py
lldb works the same way:
OID_AGENT=1 lldb ./your-program
(lldb) command script import /path/to/OpenImageDebugger/oid.py
(If oid.py is already in your ~/.gdbinit / ~/.lldbinit, just launch the debugger with OID_AGENT=1 in its environment.)
plot needs it, the other tools do not. list_sessions() # confirm the server sees your debugger
list_buffers() # what's observable at this stop view("frame") # look at the whole buffer view("frame", region=[100,100,64,64]) # zoom into a suspicious spot stats("frame") # min/max/mean/std, NaN/Inf/zero counts values("frame", x=100, y=100, w=4, h=4) # exact numbers for a tiny crop dump("frame") # lossless .npy for offline analysis plot("frame") # mirror it into the human's viewer
Every tool accepts session= to target a specific debugger when more than one is live; it defaults to the most recently started session.
The pixel tools (view, stats, values, dump, list_buffers) don't require a debugger at all. A viewer started standalone with the agent endpoint enabled:
OID_AGENT=1 oidwindow --open path/to/image.png
exposes the same endpoint even with no debugger attached, so an agent can inspect whatever a user currently has open in the viewer.
When a debugger *did* spawn the viewer, that viewer's session carries a debugger_pid back-pointer, so set_view/get_view accept either the viewer's own pid or its debugger's pid to address that window. (The pixel tools — view/stats/values/dump/list_buffers — prefer the debugger's own buffers when given a debugger pid, and fall back to the viewer only when there's no live debugger session.) list_sessions() reports the pairing (see below).
set_view/get_view always target a viewer (there's nothing to move in a debugger without one), resolved the same way: a viewer pid, or a debugger pid paired to a live viewer.
| Tool | Purpose |
|---|---|
list_sessions() | {"debuggers": [...], "viewers": [...]} — live debug sessions and viewer windows (all tools take session= ); each viewer entry shows its debugger_pid pairing (null for a standalone viewer) |
list_buffers() | Observable buffer symbols at the current stop (debugger or viewer session) |
view(symbol, region?, channel?, vmin?, vmax?, max_px?) | PNG rendering; region is the stateless zoom |
stats(symbol, region?) | Per-channel min/max/mean/std, NaN/Inf/zero counts |
values(symbol, x, y, w, h, channel?) | Exact numbers (≤1024 per call) |
dump(symbol, path?, overwrite?) | Lossless .npy dump into the per-user dump directory; path is a filename within it (not an arbitrary path); refuses to overwrite an existing file unless overwrite=true |
plot(symbol) | Mirror into the human viewer window |
set_view(session?, buffer?, center?, zoom?, rotation_deg?, channel?, auto_contrast?) | Set the viewer's view absolutely (idempotent — it sets state, it does not nudge); omitted fields keep their current value; channel is 0, 1, 2, or "all"; auto_contrast is a global viewer toggle, not per-buffer |
get_view(session?) | Read the viewer's current buffer/center/zoom/rotation_deg/channel/auto_contrast |
OID_AGENT=1 is set; it binds localhost with a per-session token (discovery files under ~/.oid-agent/, override with OID_AGENT_DIR). It exposes debuggee memory to local processes that can read those files — the same trust domain as your user account.OID_MCP_MAX_BYTES (default 256 MiB).plot requires it, the other tools do not.OID_AGENT=1 was set in the debugger's environment; oid.py was actually sourced/imported; the debuggee has stopped at a breakpoint at least once; and the debugger and oid-mcp agree on the discovery directory. If they run under different TMPDIR values (common on macOS, where each process may get its own per-user temp dir), set OID_AGENT_DIR to the same absolute path on both sides.OID_AGENT_DIR at a private directory you own with mode 0700.OID_MCP_MAX_BYTES (bytes) on the server entry, or narrow what you fetch.