MCPSERV.CLUB
Tomas-Jankauskas

Figma to Vue MCP Server

MCP Server

Generate Vue 3 components from Figma designs instantly

Stale(50)
7stars
3views
Updated 22 days ago

About

A Model Context Protocol server that converts Figma files into Vue 3 components using TypeScript, script setup syntax, and Hostinger’s design system. It auto‑imports HComponents, produces BEM CSS classes, supports responsive layouts and component props.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

Figma to Vue MCP Server in Action

The Figma to Vue MCP Server bridges the gap between visual design and functional code by converting Figma components into fully‑typed Vue 3 modules that adhere to Hostinger’s design system and HComponents conventions. It removes the manual, error‑prone step of translating a design file into Vue code, enabling designers and developers to iterate faster while maintaining architectural consistency across the application.

When an AI assistant requests a component, the server pulls the specified Figma file using the provided access token and node identifier. It then parses the design hierarchy, extracting layout information, typography, colors, and component boundaries. The resulting Vue 3 component is generated with syntax, TypeScript typings for props, and BEM‑style CSS classes that map directly to the design system’s tokens. If a node corresponds to an existing HComponent, the server automatically imports and re‑uses that component instead of duplicating code. This not only preserves design system integrity but also reduces bundle size and encourages reuse.

Key capabilities include:

  • Responsive layout handling: The generated component automatically adapts to different breakpoints, mirroring the responsive behavior defined in Figma.
  • Dynamic content support: Props and slots are inferred from the design, allowing runtime data binding without additional manual edits.
  • Consistent styling: All CSS classes follow the BEM convention and reference design tokens, ensuring that the output aligns with the company’s style guide.
  • Type safety: By emitting TypeScript definitions for component props, developers avoid runtime errors and benefit from IDE autocompletion.

Typical use cases involve rapid prototyping, where a product manager can share a Figma prototype and immediately receive a working Vue component ready for integration. It also serves as a continuous delivery pipeline step: whenever a design file is updated, the MCP can regenerate components and push them to a shared repository, keeping the front‑end in sync with design changes. In AI‑driven workflows, a Claude or GPT model can query the server directly to retrieve component code snippets, embed them into documentation, or even generate full pages by composing multiple components on the fly.

What sets this MCP apart is its tight coupling with Hostinger’s internal design system and HComponents. Unlike generic code generators that produce boilerplate, this server ensures every output is production‑ready, respects naming conventions, and reuses existing components. For developers working with AI assistants, it transforms a simple text prompt into ready‑to‑use Vue code, dramatically reducing the friction between design and implementation.