Server Details
Connect AI coding agents to Anima Playground, Figma, and your design system.
- Status
- Healthy
- Last Tested
- Transport
- Streamable HTTP
- URL
- Repository
- AnimaApp/mcp-server-guide
- GitHub Stars
- 0
See and control every tool call
Available Tools
4 toolscodegen-figma_to_codeTry in Inspector
Convert a Figma design to production-ready code.
This tool generates code from Figma designs, supporting multiple frameworks and styling options.
Authentication: Requires X-Figma-Token header with your Figma personal access token.
Inputs:
fileKey: Figma file key extracted from the URL. For example, from "https://figma.com/design/abc123XYZ/MyDesign", the fileKey is "abc123XYZ".
nodesId: Array of Figma node IDs to convert. Extract from the URL's node-id parameter, replacing "-" with ":". For example, from "?node-id=1-2", the nodeId is "1:2".
framework: Target framework (react, html). Detect from the user's project to match their existing stack.
styling: CSS approach (tailwind, plain_css). Detect from the user's project to match their existing styling system.
language: TypeScript or JavaScript. Detect from the user's project.
uiLibrary: Optional UI component library (mui, antd, shadcn). Detect from the user's project if they use one of the supported libraries.
assetsBaseUrl: Base path for assets in generated code
Returns:
files: Generated code files as a record of {path: {content, isBinary}}
assets: Array of {name, url} for images/assets that need to be downloaded from Figma
tokenUsage: Approximate token count for the generation
snapshotsUrls: Record of {nodeId: url} with screenshot URLs for each requested node
guidelines: IMPORTANT Instructions for using the generated code effectively
CRITICAL - Implementation Workflow: After calling this tool, you MUST:
Download the snapshot images from snapshotsUrls - these are the visual reference of the original Figma design
View/analyze the snapshot images to understand the exact visual appearance. Use BOTH the generated code AND the snapshots as inputs for your implementation
Parse
data-variantattributes from generated components → map to your component propsExtract CSS variables from generated styles → use exact colors
IMPORTANT: Follow the detailed guidelines provided in the tool response for accurate implementation
Compare final implementation against snapshot for visual accuracy
Asset Handling: The generated code references assets at the assetsBaseUrl path. You must download the assets from the returned URLs and place them at your assetsBaseUrl location. For example, if assetsBaseUrl is "./assets" and an asset is named "logo.png", the code will reference "./assets/logo.png".
| Name | Required | Description | Default |
|---|---|---|---|
| fileKey | Yes | Figma file key extracted from the Figma URL. For example, from "figma.com/design/abc123XYZ/MyDesign", the file key is "abc123XYZ" | |
| nodesId | Yes | Array of Figma node IDs to generate code for. You can find node IDs in the Figma URL after selecting elements, e.g., "0:1", "123:456" | |
| styling | No | CSS styling approach for the generated code. Defaults to Tailwind | tailwind |
| language | No | Programming language for the generated code. Defaults to TypeScript | typescript |
| framework | No | Target framework for the generated code. Defaults to React | react |
| uiLibrary | No | UI component library or code style to use. Options: "mui" (Material UI), "antd" (Ant Design), "shadcn" (shadcn/ui), "clean_react" (production-ready React with semantic HTML, accessibility, and interactivity - no UI library). If not specified, generates plain React/HTML. | |
| assetsBaseUrl | No | Base URL or path for assets in generated code. For example, "./assets" will produce paths like "./assets/logo.png" | ./assets |
playground-createTry in Inspector
Create an Anima playground from a prompt, website URL, or Figma design.
Returns a playground URL where the generated code can be viewed and edited.
Input types (set via "type" field):
"p2c": Generate from a text prompt. Requires: prompt. Styling: tailwind, css, inline_styles.
"l2c": Convert a website URL to code. Requires: url. Styling: tailwind, inline_styles. uiLibrary: shadcn only.
"f2c": Convert Figma frames to code. Requires: fileKey, nodesId (also requires X-Figma-Token header). Styling: tailwind, plain_css, css_modules, inline_styles. uiLibrary: mui, antd, shadcn, clean_react.
Common fields: framework (react or html), styling (see per-type options above). React-only fields: language (typescript or javascript), uiLibrary (see per-type options above).
Returns: { success, sessionId, playgroundUrl }
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | [l2c only] Website URL to convert to code. Required when type is l2c. | |
| type | Yes | Generation type: p2c (prompt), l2c (website URL), f2c (Figma) | |
| prompt | No | [p2c only] Text prompt describing the UI to generate. Required when type is p2c. | |
| fileKey | No | [f2c only] Figma file key. Required when type is f2c. | |
| nodesId | No | [f2c only] Figma node IDs to convert. Required when type is f2c. | |
| styling | No | CSS styling. Valid values per type — p2c: tailwind, css, inline_styles. l2c: tailwind, inline_styles. f2c: tailwind, plain_css, css_modules, inline_styles. | tailwind |
| language | No | Programming language (react framework only). f2c: typescript or javascript. l2c: always typescript. Not used for p2c or html framework. | |
| framework | No | Target framework. Supported by all types. | react |
| uiLibrary | No | UI component library (optional, react framework only). l2c: only shadcn is supported. f2c: mui, antd, shadcn, or clean_react. Not used for p2c. | |
| guidelines | No | [p2c only] Additional coding guidelines for the generation. |
playground-publishTry in Inspector
Publish an Anima playground session to a live URL or as a design system npm package.
Requires a sessionId from a previously created playground (via playground-create).
Modes:
"webapp" (default): Deploys to a live URL. Returns { success, liveUrl, subdomain }.
"designSystem": Publishes as an npm package. Requires: packageName. Returns { success, packageUrl, packageName, packageVersion }.
Returns: { success, liveUrl, subdomain } for webapp mode, or { success, packageUrl, packageName, packageVersion } for designSystem mode.
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Deploy mode: "webapp" publishes to a live URL, "designSystem" publishes as an npm package. | webapp |
| sessionId | Yes | The session ID of the playground to publish (returned by playground-create). | |
| packageName | No | [designSystem mode only] NPM package name. Required when mode is "designSystem". | |
| packageVersion | No | [designSystem mode only] NPM package version. Required when mode is "designSystem". |
project-download_from_playgroundTry in Inspector
Download project files from an Anima playground session as a zip file. Provide the playground URL and receive a pre-signed download URL (valid 10 min) for the zip file containing all project source files. Requires authentication and user must have access to the session.
| Name | Required | Description | Default |
|---|---|---|---|
| playgroundUrl | Yes | Anima playground URL (e.g., https://dev.animaapp.com/chat/<session_id>?...). The session ID will be extracted from this URL. |
To claim this server, publish a /.well-known/glama.json file on your server's domain with the following structure:
The email address must match the email associated with your Glama account. Once verified, the server will appear as claimed by you.
Control your server's listing on Glama, including description and metadata
Receive usage reports showing how your server is being used
Get monitoring and health status updates for your server
The connector status is unhealthy when Glama is unable to successfully connect to the server. This can happen for several reasons:
The server is experiencing an outage
The URL of the server is wrong
Credentials required to access the server are missing or invalid
If you are the owner of this MCP connector and would like to make modifications to the listing, including providing test credentials for accessing the server, please contact support@glama.ai.
Discussions
No comments yet. Be the first to start the discussion!
Your Connectors
Sign in to create a connector for this server.