I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

Figma-to-vue-MCP
Serveur MCP qui génère des composants Vue à partir de Figma Designs suivant le système de conception de Hostinger
1
Github Watches
0
Github Forks
3
Github Stars
Figma to Vue MCP Server
A Model Context Protocol (MCP) server that generates Vue 3 components from Figma designs, following Hostinger's design system and HComponents requirements.
Features
- Converts Figma designs to Vue 3 components with TypeScript and
<script setup>
syntax - Automatically imports and uses HComponents where appropriate
- Generates BEM-style CSS classes
- Preserves design system consistency
- Handles responsive layouts
- Supports component props and dynamic content
Setup
- Clone the repository:
git clone https://github.com/Tomas-Jankauskas/figma-to-vue-mcp.git
cd figma-to-vue-mcp
- Install dependencies:
npm install
- Create a
.env
file with your Figma access token:
FIGMA_ACCESS_TOKEN=your_figma_access_token
PORT=3000 # Optional, defaults to 3000
- Start the server:
npm run dev # For development
# or
npm start # For production
Usage
Send a POST request to /generate-component
with the following body:
{
"figmaUrl": "https://www.figma.com/file/[FILE_KEY]/[FILE_NAME]?node-id=[NODE_ID]",
"componentName": "MyComponent"
}
The server will respond with:
{
"component": "// Generated Vue component code"
}
Example
curl -X POST http://localhost:3000/generate-component \
-H "Content-Type: application/json" \
-d '{
"figmaUrl": "https://www.figma.com/file/abc123/MyDesign?node-id=1:1",
"componentName": "YoutubeLinks"
}'
Development
-
npm run dev
: Start development server with hot reload -
npm run build
: Build for production -
npm test
: Run tests
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
MIT
相关推荐
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
Une passerelle API unifiée pour intégrer plusieurs API d'explorateur de blockchain de type étherscan avec la prise en charge du protocole de contexte modèle (MCP) pour les assistants d'IA.
Reviews

user_cgK0d9jh
I've been using the figma-to-vue-mcp by Tomas-Jankauskas for a few projects, and it's been a game changer! It streamlines the process of converting Figma designs to Vue components effortlessly. The integration is seamless, and the documentation on the GitHub page is clear and comprehensive. Highly recommend this tool for anyone looking to save time and improve workflow efficiency. Check it out: https://github.com/Tomas-Jankauskas/figma-to-vue-mcp