{
  "openapi": "3.0.1",
  "info": {
    "title": "Figma MCP Server",
    "description": "Production-grade MCP server connecting AI agents to Figma. 30 tools: file reads, asset exports (PNG/SVG/PDF), component search, design-system audits, Claude 4.7 vision analysis, WCAG compliance, and React+Tailwind code generation. Works with Claude Desktop, Cursor, Windsurf, ChatGPT.",
    "version": "1.0",
    "x-build-id": "dbLtOCJHDEdFa3Vwi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dramatic_jonquil~figma-mcp-server/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dramatic_jonquil-figma-mcp-server",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dramatic_jonquil~figma-mcp-server/runs": {
      "post": {
        "operationId": "runs-sync-dramatic_jonquil-figma-mcp-server",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dramatic_jonquil~figma-mcp-server/run-sync": {
      "post": {
        "operationId": "run-sync-dramatic_jonquil-figma-mcp-server",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Run mode",
            "enum": [
              "mcp-server",
              "command",
              "batch"
            ],
            "type": "string",
            "description": "mcp-server: long-running HTTP MCP endpoint (connect Claude/Cursor/Windsurf). command: one-shot tool call. batch: array of tool calls executed sequentially.",
            "default": "mcp-server"
          },
          "figmaToken": {
            "title": "Figma Personal Access Token",
            "type": "string",
            "description": "Create at figma.com/developers/api#access-tokens. Used unless OAuth token is provided."
          },
          "figmaOAuthToken": {
            "title": "Figma OAuth Access Token",
            "type": "string",
            "description": "Optional OAuth 2.0 access token. Overrides figmaToken when provided."
          },
          "figmaRefreshToken": {
            "title": "Figma OAuth Refresh Token",
            "type": "string",
            "description": "Optional OAuth refresh token. Enables automatic token refresh on 401 responses."
          },
          "figmaOAuthClientId": {
            "title": "Figma OAuth Client ID",
            "type": "string",
            "description": "OAuth app Client ID — required only if figmaRefreshToken is provided."
          },
          "figmaOAuthClientSecret": {
            "title": "Figma OAuth Client Secret",
            "type": "string",
            "description": "OAuth app Client Secret — required only if figmaRefreshToken is provided."
          },
          "command": {
            "title": "Command",
            "type": "string",
            "description": "Tool name (e.g. figma.getFile, vision.wcagAudit, transform.toReactTailwind). Required when mode=command."
          },
          "args": {
            "title": "Args",
            "type": "object",
            "description": "Arguments object for the command. See README for per-tool shape (fileKey, nodeIds, etc.)."
          },
          "batch": {
            "title": "Batch operations",
            "type": "array",
            "description": "Array of {command, args, label?} entries to execute sequentially when mode=batch."
          },
          "enableVision": {
            "title": "Enable Claude vision analysis",
            "type": "boolean",
            "description": "Unlock vision.* tools (WCAG audit, component docs, design critique). Requires anthropicApiKey.",
            "default": false
          },
          "anthropicApiKey": {
            "title": "Anthropic API Key",
            "type": "string",
            "description": "Required when enableVision=true. Get one at console.anthropic.com."
          },
          "visionModel": {
            "title": "Vision model",
            "enum": [
              "claude-opus-4-7",
              "claude-sonnet-4-6",
              "claude-haiku-4-5-20251001"
            ],
            "type": "string",
            "description": "Claude model used for vision analysis. Opus 4.7 = highest quality; Haiku 4.5 = fastest/cheapest.",
            "default": "claude-opus-4-7"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Concurrent Figma API calls. Figma throttles aggressively — keep this at 2 unless you have enterprise quota.",
            "default": 2
          },
          "requestTimeoutMs": {
            "title": "Request timeout (ms)",
            "minimum": 1000,
            "maximum": 120000,
            "type": "integer",
            "description": "Per-request timeout in milliseconds.",
            "default": 30000
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Max retry attempts on 429/5xx with exponential backoff + jitter.",
            "default": 5
          },
          "verboseLogging": {
            "title": "Verbose logs",
            "type": "boolean",
            "description": "Enable DEBUG-level logs for observability and troubleshooting.",
            "default": false
          },
          "persistSession": {
            "title": "Persist session",
            "type": "boolean",
            "description": "Persist MCP session IDs across requests so AI clients can resume multi-step tasks.",
            "default": true
          },
          "defaultExport": {
            "title": "Default export settings",
            "type": "object",
            "description": "Defaults merged into every figma.exportImages / figma.exportAssetsBatch call when fields are omitted.",
            "default": {
              "format": "svg",
              "scale": 2,
              "useAbsoluteBounds": false
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}