MCP server to convert Figma designs to Flowbite UI components in Tailwind CSS
npm install flowbite-mcp
https://flowbite.com" >

Official MCP server for Flowbite to leverage AI for UI creation and theme generation

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.
- π¨ [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
- π¦ 60+ UI components - Complete access to the Flowbite UI components
- π Dual transport support - Standard I/O (stdio) for CLI or HTTP Streamable for server deployments
- β‘ Production ready - Docker support with health checks and monitoring
The simplest way to use Flowbite MCP Server:
``bash`
npx flowbite-mcp
Currently you only need the Figma personal access token if you want to enable the Figma to code generation tool.
`bash`
// other options
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
You set this variable in your MCP client configuration file.
Use the following configuration examples to install the Flowbite MCP server in popular clients such as Cursor, Claude, Windsurf, and others.
Update the claude_desktop_config.json file and add the following configuration:
`json`
{
"mcpServers": {
"flowbite": {
"command": "npx",
"args": ["-y", "flowbite-mcp"],
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
}
}
}

Update the mcp.json file and add the following configuration:
`json`
{
"mcpServers": {
"flowbite": {
"command": "npx",
"args": ["-y", "flowbite-mcp"],
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
}
}
}
Update the mcp_config.json file and add the following configuration:
`json`
{
"mcpServers": {
"flowbite": {
"command": "npx",
"args": ["-y", "flowbite-mcp"],
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
}
}
}
The default mode for local development and CLI integrations:
`bashStart in stdio mode (default)
node build/index.js
{
"mcpServers": {
"flowbite": {
"command": "node",
"args": ["/path/to/flowbite-mcp/build/index.js"],
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
}
}
}
`
Learn how to get the Figma personal access token to enable the Figma to code generation tool.
HTTP-based transport for production and multi-client scenarios:
`bash`
node build/index.js --mode http --port 3000
This will make the MCP server available at 'http://localhost:3000/mcp'.
`bashClone the repository
git clone https://github.com/themesberg/flowbite-mcp.git
cd flowbite-mcp
$3
For production servers with multiple clients:
`bash
Using npx
npx flowbite-mcp --mode http --port 3000Using Docker Compose
docker-compose up -dHealth check
curl http://localhost:3000/health
`$3
Configure the server behavior with these environment variables:
`bash
Transport mode: stdio (default) or http
MCP_TRANSPORT_MODE=httpServer port for HTTP mode
MCP_PORT=3000Host binding for HTTP mode
MCP_HOST=0.0.0.0CORS 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.
$3
`bash
Build and run with Docker Compose (recommended)
docker-compose up -dCheck health
curl http://localhost:3000/healthView logs
docker-compose logs -fStop
docker-compose down
`$3
Use the MCP Inspector for interactive debugging:
`bash
npm run inspector
`$3
Check server logs for detailed information:
`bash
stdio mode logs to console
node build/index.jsHTTP mode includes HTTP request logs
MCP_TRANSPORT_MODE=http node build/index.js
`File structure
`
flowbite-mcp/
βββ src/
β βββ index.ts # Main server entry point
β βββ server-runner.ts # Express HTTP Streamable transport
βββ data/
β βββ components/ # 60+ component markdown files
β βββ forms/ # Form component documentation
β βββ typography/ # Typography elements
β βββ plugins/ # Plugin documentation
β βββ theme.md # Theme variable reference
β βββ quickstart.md # Getting started guide
βββ build/ # Compiled JavaScript output
βββ package.json
βββ tsconfig.json
βββ README.md
`Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
1. Fork the repository
2. Create your feature branch (
git checkout -b feature/AmazingFeature)
3. Commit your changes (git commit -m 'Add some AmazingFeature')
4. Push to the branch (git push origin feature/AmazingFeature`)This project is licensed under the MIT License License - see the LICENSE file for details.
- Flowbite - For the amazing Tailwind CSS component library
- Anthropic - For the Model Context Protocol specification
- Tailwind CSS - For the utility-first CSS framework
- π¨ Flowbite Documentation
- π¦ Flowbite Components
- π Model Context Protocol
- π Tailwind CSS v4 Docs
- π¬ GitHub Issues
- [x] Complete component resource access
- [x] AI-powered theme generator
- [x] Dual transport support (stdio + HTTP)
- [ ] Flowbite Pro blocks integration (with license authentication)
- [x] Figma to code conversion tool
- [ ] Enhanced theme customization options
- [ ] Component search and filtering
- [ ] Real-time component preview generation