Figma Connector
Read-safe Figma connector for files, nodes, rendered assets, and comments.
Credential setup
bearerUse a personal access token with file_content:read and file_comments:read only.
Setup docs: https://www.figma.com/developers/api#access-tokens
After adding this connector, attach the credential on the server page, then run astrail tools list.
Hosted MCP endpoint
/api/mcp/preset-figmaPrivate servers require an Astrail API key in the Authorization header.
MCP client snippets
ConnectClaude Desktop config
{
"mcpServers": {
"figma-connector": {
"url": "/api/mcp/preset-figma"
}
}
}cURL initialize
curl -sS -X POST "/api/mcp/preset-figma" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'cURL tools/list
curl -sS -X POST "/api/mcp/preset-figma" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'cURL tools/call
curl -sS -X POST "/api/mcp/preset-figma" \
-H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"figma_get_file","arguments":{"file_key":"example","depth":"example","version":"example"}}}'Runtime behavior
healthynot_checkedsafe_rest_executionnot recordednot recordednot recordednonestructured fallbackstandardauth_required / oauth_requiredmapping_requiredAstrail does not evaluate generated TypeScript inside Next.js. Hosted calls are routed through stored tool metadata and endpoint maps.
Tools
4figma_get_fileRetrieve a Figma file document tree.
figma_get_file_nodesRetrieve specific nodes from a Figma file.
figma_export_assetsRender selected Figma nodes as image URLs.
figma_list_commentsList comments on a Figma file.
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({ name: "Figma Connector", version: "1.0.0" });
// Curated Astrail connector for: figma_get_file, figma_get_file_nodes, figma_export_assets, figma_list_comments.
// The hosted endpoint executes its verified deterministic endpoint map. Attach a least-privilege provider credential before calling private tools.
server.tool("connector_status", "Confirm this curated connector template is installed.", z.object({}), async () => ({
content: [{ type: "text", text: "Connector installed. Attach provider credentials to enable hosted API calls." }],
}));
const transport = new StdioServerTransport();
await server.connect(transport);