All integrations
Get an API key
Figma
Files, nodes, comments and design tokens in Figma.
Design
How an agent reaches it
MCPREST APICLI
How you authenticate
API key
OAuth
- Open Settings, then Security, then Personal access tokens, and generate one with the scopes you need.
- Figma expects the token in X-Figma-Token, not Authorization.
Connection details
- Base URL
- https://api.figma.com/v1
- Pagination
- cursor
Common endpoints
| who am I | GET /me |
| read a file | GET /files/{key}?depth=2 |
| read specific nodes | GET /files/{key}/nodes?ids={id} |
| export images | GET /images/{key}?ids={id}&format=png |
| list comments | GET /files/{key}/comments |
Worth knowing
- The key header is X-Figma-Token when using a personal access token; OAuth uses Bearer instead.
- File keys come from the URL: figma.com/file/{KEY}/....
- A whole-file fetch is enormous. Use `?depth=` or the /nodes endpoint to avoid pulling megabytes into context.