A stdio-based Model Context Protocol (MCP) server that reads Figma design data via the Figma REST API and caches snapshots locally. Version 0.1.5, active development. Written in TypeScript with ESM-only support (Node >=20). Designed for AI-assisted design-to-code workflows (e.g., Codex). Automatically stores auth tokens and cache under ~/.figma-rest-mcp-server. No build step needed for end users; global npm install and CLI commands for auth, path inspection, cache clearing, and serving. Differentiates from other Figma MCP servers by local caching and strict stdio MCP protocol compliance.
npm install figma-rest-mcp-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows global installation, authentication, and running the MCP server via CLI or Codex integration.
Restrict file permissions (chmod 600) or use environment variable FIGMA_PAT if supported.
Update Node.js to version 20 or later. Use nvm or n to manage Node versions.
To clear cache: `figma-rest-mcp cache:clear`.
Use import statements or dynamic import() in your project. For TypeScript, set "module": "ESNext" or use a bundler.
Run `codex mcp add figma_rest -- figma-rest-mcp serve` once after global installation.
Replace `require('figma-rest-mcp-server')` with `import('figma-rest-mcp-server')` (dynamic) or use a static import at the top of an ESM module.Ensure npm global bin directory is in PATH. Run `npm root -g` to check location, then add it to PATH. Alternatively, use npx: `npx figma-rest-mcp serve`.
Run `figma-rest-mcp auth` and follow the prompts to enter your Figma Personal Access Token.
Install globally: `npm i -g figma-rest-mcp-server`. For local projects, add as dependency and run from node_modules/.bin.
No dependency data recorded yet.