Are you the author? Sign in to claim
MCP server that generates Vue components from Figma designs following Hostinger's design system
A Model Context Protocol (MCP) server that generates Vue 3 components from Figma designs, following Hostinger's design system and HComponents requirements.
<script setup> syntaxgit clone https://github.com/Tomas-Jankauskas/figma-to-vue-mcp.git
cd figma-to-vue-mcp
npm install
.env file with your Figma access token:FIGMA_ACCESS_TOKEN=your_figma_access_token
PORT=3000 # Optional, defaults to 3000
npm run dev # For development
# or
npm start # For production
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"
}
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"
}'
npm run dev: Start development server with hot reloadnpm run build: Build for productionnpm test: Run testsgit checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)MIT
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows