MCP server to convert Figma designs to Flowbite UI components in Tailwind CSS
This MCP server (io.github.themesberg/flowbite-mcp) converts Figma designs into Flowbite UI components using Tailwind CSS. It is positioned as an “Official MCP server for Flowbite” for AI-assisted UI creation and theme generation. The repository is described with MCP server and styling-focused topics.
🛠️ Key Features
Convert Figma designs to Flowbite UI components
Generate Flowbite UI and themes using Tailwind CSS
Supports MCP via stdio (“mcp-stdio”) and includes component/Docker-oriented tooling topics
An MCP server that enables AI assistants to access the Flowbite library of Tailwind CSS components—including UI elements, forms, typography, and plugins—while offering an intelligent theme generator for creating custom branded designs within AI-driven development environments.
MCP Features
Tools:
🎨 [NEW] Figma to code - Copy the Figma node url and generate code (video demo)
🎯 Theme file generator - Create custom branded themes from any branded hex color
# Clone the repository
git clone https://github.com/themesberg/flowbite-mcp.git
cd flowbite-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Run in stdio mode (for Claude Desktop, Cursor)
npm start
# Run inspector
npm run start inspector
# Run in HTTP server mode (for production/multi-client)
MCP_TRANSPORT_MODE=http npm start
Production deployment (HTTP Mode)
For production servers with multiple clients:
bash
# Using npx
npx flowbite-mcp --mode http --port 3000
# Using Docker Compose
docker-compose up -d
# Health check
curl http://localhost:3000/health
Hosting variables
Configure the server behavior with these environment variables:
bash
# Transport mode: stdio (default) or http
MCP_TRANSPORT_MODE=http
# Server port for HTTP mode
MCP_PORT=3000
# Host binding for HTTP mode
MCP_HOST=0.0.0.0
# CORS origins (comma-separated)
MCP_CORS_ORIGINS=http://localhost:3000,https://myapp.com
Docker Configuration
The project includes a production-ready Docker setup with multi-stage builds for optimal performance.
Quickstart with Docker
bash
# Build and run with Docker Compose (recommended)
docker-compose up -d
# Check health
curl http://localhost:3000/health
# View logs
docker-compose logs -f
# Stop
docker-compose down
MCP inspector
Use the MCP Inspector for interactive debugging:
bash
npm run inspector
Logging
Check server logs for detailed information:
bash
# stdio mode logs to console
node build/index.js
# HTTP mode includes HTTP request logs
MCP_TRANSPORT_MODE=http node build/index.js