{"slug": "claude-code-setup-for-playwright-mcp-and-figma-mcp", "title": "Claude Code Setup for Playwright MCP and Figma MCP", "summary": "A developer documented a two-command setup for adding Playwright MCP and Figma MCP servers to Claude Code, using `claude mcp add playwright npx @playwright/mcp@latest` and an HTTP transport command for Figma's remote server at mcp.figma.com/mcp. The writeup notes Playwright MCP drives a real browser via accessibility-tree snapshots and is explicitly \"not a security boundary,\" while Figma MCP reads design context and can write back to the canvas, with rate limits ranging from 20 calls per month on View seats to 600 per day on Enterprise Full/Dev seats.", "body_md": "*Originally published on [ClueTrove](https://cluetrove.com/playwright-mcp-figma-mcp-claude-code-setup/).*\n\nEach server takes one command. Playwright MCP: claude mcp add playwright `npx @playwright/mcp@latest` (needs Node.js 18 or newer). Figma MCP: claude mcp add --transport http figma [https://mcp.figma.com/mcp](https://mcp.figma.com/mcp), then type /mcp and authenticate in the browser.\n\nBoth commands come from the makers’ docs (Microsoft’s playwright-mcp repository and Figma’s developer docs) and from Claude Code’s MCP docs, read on 20 October 2026. Figma’s rate limits depend on your seat and plan, so check the table below before you rely on it.\n\n`npx @playwright/mcp@latest` (Node.js 18+).\nUse Playwright MCP when Claude must drive a browser: click, fill forms, take screenshots and read console messages. Use Figma MCP when Claude must read a design and write code from it, or write content back to the canvas.\n\nThey solve different problems, and many front-end workflows use both. Figma supplies the design, and Playwright checks the result in a real browser.\n\nIt is Microsoft’s MCP server that lets an AI client drive a browser through Playwright. Its core tools work from page snapshots (the accessibility tree), with optional vision tools. Clients listed include VS Code, Cursor, Windsurf and Claude Desktop.\n\nThe README also shows a standalone HTTP mode (`npx @playwright/mcp@latest` --port 8931, client URL [http://localhost:8931/mcp](http://localhost:8931/mcp)) and a Docker image that supports headless Chromium only.\n\nAlways-on tools include click, navigate, type, fill form, take screenshot, snapshot, handle dialog, file upload, network requests, console messages and tabs. Extra capabilities are opt-in with --caps (for example vision, pdf, devtools, storage). Options include --browser (chrome, firefox, webkit, msedge), --headless, --isolated and --allowed-origins.\n\nYes, by default. It uses a persistent profile per workspace, so logins stay. Use --isolated to discard state on close, or --storage-state to seed it.\n\nTreat it as powerful, not sandboxed. The README calls it “not a security boundary.” Origin allow and block lists do not cover redirects. Secret redaction is a convenience, not a security feature. The run-code tool executes arbitrary JavaScript in the server process. Keep it to workspaces and sites you trust, and use --isolated when you do not want sessions to persist.\n\nFigma says it brings Figma into your AI workflow. Agents get design context to generate code from Figma files, and the remote server can also write content back to the canvas. There are two servers: the remote server (recommended) at [https://mcp.figma.com/mcp](https://mcp.figma.com/mcp), and a desktop server run through the Figma desktop app.\n\nManual setup does not install Figma’s skills, which is why the plugin is recommended. In your prompt, paste a link made with right-click > Copy link to selection. The remote server needs that link.\n\nFigma’s docs say the desktop server requires a Dev or Full seat on a Professional, Education, Organization, Government or Enterprise plan. Writing to the canvas needs the remote server, and writing outside your drafts needs a Full seat. It is free during beta, with usage-based pricing planned.\n\n| Seat / plan | Limit (per Figma) | \n|---|---|\n| View or Collab seats | 20 per month, all plans | \n| Full/Dev, Professional | 200 per day, 10 per minute | \n| Full/Dev, Organization | 200 per day, 15 per minute | \n| Full/Dev, Enterprise | 600 per day, 20 per minute | \n| Starter | Not available for Full/Dev seat limits | \n\nRead the table like this: a View seat gets 20 calls a month, which is too few for real work. A Full or Dev seat on Professional gets 200 a day, and Enterprise triples that to 600. Figma says some write tools are exempt and that it may change limits at any time.\n\nBy scope: local (default, this project only), project (.mcp.json, shared) or user (all projects), set with --scope.\n\nClaude Code warns above 10,000 tokens and caps at 25,000 by default. The MAX_MCP_OUTPUT_TOKENS variable changes it.\n\nNode.js 18 or newer.\n\nStart Claude Code and type /mcp. For Figma, select figma there and choose Authenticate.\n\nFigma recommends the remote server. It is also the only one that can write to the canvas.\n\n*Facts last checked on 20 October 2026.*", "url": "https://wpnews.pro/news/claude-code-setup-for-playwright-mcp-and-figma-mcp", "canonical_source": "https://dev.to/abdullah_almania_be4b69d4/claude-code-setup-for-playwright-mcp-and-figma-mcp-34dg", "published_at": "2026-12-02 10:05:58+00:00", "updated_at": "2026-12-02 10:14:40.836333+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "developer-tools"], "entities": ["Claude Code", "Playwright MCP", "Figma MCP", "Microsoft", "Figma", "Anthropic", "ClueTrove"], "also_reported_by": [], "takeaway": "Adding Playwright MCP via `claude mcp add playwright npx @playwright/mcp@latest` and Figma's remote server via HTTP transport lets Claude Code both read designs and verify results in a real browser, but Playwright MCP is not sandboxed and its run-code tool executes arbitrary JavaScript in the server", "recommendation": {"advice": "Scope MCP servers to local or project level and use --isolated when sessions shouldn't persist, since Playwright MCP's origin allowlists don't cover redirects and its run-code tool executes arbitrary JavaScript.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/claude-code-setup-for-playwright-mcp-and-figma-mcp", "markdown": "https://wpnews.pro/news/claude-code-setup-for-playwright-mcp-and-figma-mcp.md", "text": "https://wpnews.pro/news/claude-code-setup-for-playwright-mcp-and-figma-mcp.txt", "jsonld": "https://wpnews.pro/news/claude-code-setup-for-playwright-mcp-and-figma-mcp.jsonld"}}