.env file, which the server reads from its working directory at startup; pass --env to load a different file. Values in the .env file override variables already set in the shell.
For step-by-step setup of credentials, see Authentication. The fetch command accepts a subset of these options.
Authentication
How the server authenticates to the Figma API. Stdio mode and thefetch command exit at startup unless one of the first two is set. See Authentication for how to choose and set up a method.
Env:
FIGMA_OAUTH_TOKENA Figma OAuth access token. Sent to Figma as Authorization: Bearer. If both this and a personal access token are set, the OAuth token is used.Per-request token
HTTP mode only. A token sent by the MCP client on an individual request overrides the server’s own credentials for that request. See Per-request tokens in HTTP mode.Transport
Run over stdin/stdout instead of HTTP. Use this when your MCP client launches the server as a subprocess, which is how most editor configs work. Without it, the server starts an HTTP server; see HTTP server.
Env:
FRAMELINK_PORT (PORT is also accepted)Port for the HTTP server. Ignored in stdio mode.Env:
FRAMELINK_HOSTAddress the HTTP server binds to. Ignored in stdio mode.Output
Env:
OUTPUT_FORMATFormat of the design data returned by get_figma_data. tree is the most compact and is built for LLMs; use yaml or json only if something needs to parse the output. Any other value stops the server at startup. The fetch command defaults to yaml instead.Images
Env:
IMAGE_DIRBase directory for download_figma_images. The tool only writes files inside it, and its description tells the agent this path. Relative paths resolve against the server’s working directory. In stdio mode, set this explicitly: clients often launch the server outside your project, and the server prints a warning when it is unset and image downloads are on.Env:
SKIP_IMAGE_DOWNLOADS (true or false)Don’t register the download_figma_images tool.Network
Env: See Network proxy and connection errors.
FIGMA_PROXYProxy URL for outbound requests to Figma, such as http://proxy.example.com:8080. When unset, the server uses the standard HTTP_PROXY, HTTPS_PROXY, and NO_PROXY variables if any are present. Pass none to ignore those variables and connect directly:Telemetry
Env:
FRAMELINK_TELEMETRY=off, or DO_NOT_TRACK set to any non-empty value other than 0Turn off anonymous usage telemetry. When on, the server sends one event per tool call describing timing, response shape, and errors, with Figma credentials scrubbed.Files
Path to the
.env file to load. Relative paths resolve against the server’s working directory.