Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add shinjiyu/figma_mcp --skill figma-plugin-apigit clone --depth 1 https://github.com/shinjiyu/figma_mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/shinjiyu/figma_mcp/figma-plugin-api)<a href="https://agentmods.dev/skills/shinjiyu/figma_mcp/figma-plugin-api"><img src="https://agentmods.dev/badge/skills/shinjiyu/figma_mcp/figma-plugin-api/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shinjiyu/figma_mcp/figma-plugin-api"><img src="https://agentmods.dev/badge/skills/shinjiyu/figma_mcp/figma-plugin-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00034 | $0.00395 |
| Opus 5.5 | $0.00014 | $0.00158 |
| Sonnet 5.5 | $0.00007 | $0.00079 |
| Haiku 4.5 | $0.00003 | $0.00040 |
Grade A, and why
figma-plugin-api scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
figma_exec (Plugin API)
Code runs in the plugin main thread with global figma.
Do
returnplain objects / arrays / numbers / stringsawait figma.getNodeByIdAsync(id)underdocumentAccess: dynamic-page- Map nodes yourself:
return figma.currentPage.selection.map((n) => ({
id: n.id,
name: n.name,
type: n.type,
x: n.x,
y: n.y,
width: n.width,
height: n.height,
}));
Don't
- Rely on REST / Personal Access Tokens (not used by this MCP)
- Return giant binary / image bytes unless asked
- Expect the plugin panel to stay connected if the user closed it
Useful snippets
Find frames by name
const hits = figma.currentPage.findAll(
(n) => n.type === "FRAME" && n.name.includes("主界面")
);
return hits.map((n) => ({
id: n.id,
name: n.name,
w: n.width,
h: n.height,
}));
Export PNG (base64) for one node
const node = figma.currentPage.selection[0];
if (!node) return { ok: false, error: "no selection" };
const bytes = await node.exportAsync({ format: "PNG", constraint: { type: "SCALE", value: 1 } });
// Return length only by default — full base64 can be huge.
return { id: node.id, name: node.name, byteLength: bytes.byteLength };
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 61 lines · 34 tokens per session scan A 16621b335cf1
figma-plugin-api is a skill published in the GitHub repository shinjiyu/figma_mcp (0 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 395 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
figma-plugin-api compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| figma-plugin-apishinjiyu/figma_mcp | Skill | 0 | 3mo ago | MIT | A | 34 | Claude Code, Codex |
| webgl-holographic-foilnexu-io/open-design | Skill | 107k | today | Apache-2.0 | A | 41 | Claude Code, Codex |
| html-ppt-hermes-cyber-terminalnexu-io/open-design | Skill | 107k | today | Apache-2.0 | A | 53 | Claude Code, Codex |
| html-ppt-taste-brutalistnexu-io/open-design | Skill | 107k | today | Apache-2.0 | A | 78 | Claude Code, Codex |
| visual-ralphYeachan-Heo/oh-my-codex | Skill | 34k | today | MIT | A | 52 | Codex |
| glance-canonical-layoutsandroid/skills | Skill | 10k | 2d ago | Apache-2.0 | A | 56 | Claude Code |
| accessibilitymicrosoft/hve-core | Skill | 1.6k | today | MIT | A | 47 | Claude Code |