Flowbite MCP
This MCP server is the official tool that allows you to work with the Flowbite UI framework and generate websites, layouts, and themes using AI
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
Resources:
- π¦ 60+ UI components - Complete access to the Flowbite UI components
Server:
- π Dual transport support - Standard I/O (stdio) for CLI or HTTP Streamable for server deployments
- β‘ Production ready - Docker support with health checks and monitoring
Quickstart
Using NPX
The simplest way to use Flowbite MCP Server:
npx flowbite-mcp
Environment variables
Currently you only need the Figma personal access token if you want to enable the Figma to code generation tool.
// other options
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
You set this variable in your MCP client configuration file.
Integration examples
Use the following configuration examples to install the Flowbite MCP server in popular clients such as Cursor, Claude, Windsurf, and others.
Claude desktop
Update the claude_desktop_config.json file and add the following configuration:
{
"mcpServers": {
"flowbite": {
"command": "npx",
"args": ["-y", "flowbite-mcp"],
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
}
}
}
Cursor editor
Update the mcp.json file and add the following configuration:
{
"mcpServers": {
"flowbite": {
"command": "npx",
"args": ["-y", "flowbite-mcp"],
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
}
}
}
Windsurf editor
Update the mcp_config.json file and add the following configuration:
{
"mcpServers": {
"flowbite": {
"command": "npx",
"args": ["-y", "flowbite-mcp"],
"env": {
"FIGMA_ACCESS_TOKEN": "YOUR_PERSONAL_FIGMA_ACCESS_TOKEN"
}
}
}
}
Glama.ai
Local Transport Modes
Standard I/O (stdio)
The default mode for local development and CLI integrations:
# Start 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 server
HTTP-based transport for production and multi-client scenarios:
node build/index.js --mode http --port 3000
This will make the MCP server available at 'http://localhost:3000/mcp'.
Local development
# 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:
# 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:
# 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
# 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:
npm run inspector
Logging
Check server logs for detailed information:
# stdio mode logs to console
node build/index.js
# HTTP 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.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is licensed under the MIT License License - see the LICENSE file for details.
Credits
- Flowbite - For the amazing Tailwind CSS component library
- Anthropic - For the Model Context Protocol specification
- Tailwind CSS - For the utility-first CSS framework
Resources
- π¨ Flowbite Documentation
- π¦ Flowbite Components
- π Model Context Protocol
- π Tailwind CSS v4 Docs
- π¬ GitHub Issues
Roadmap
- Complete component resource access
- AI-powered theme generator
- Dual transport support (stdio + HTTP)
- Flowbite Pro blocks integration (with license authentication)
- Figma to code conversion tool
- Enhanced theme customization options
- Component search and filtering
- Real-time component preview generation
Related Servers
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
AppleScript MCP
Execute AppleScript on macOS
WordPress MCP Server
An MCP server for integrating with and managing WordPress sites.
Local Context MCP
A collection of reference implementations for the Model Context Protocol (MCP), giving LLMs secure access to tools and data.
Kubernetes
Kubernetes MCP server with the top30 tools
Remote MCP Server (Authless)
An example of a remote MCP server without authentication, deployable on Cloudflare Workers.
Model Context Protocol servers
A collection of reference implementations for the Model Context Protocol (MCP), showcasing servers implemented with TypeScript and Python SDKs.
Codebase MCP Server
An intelligent codebase search engine that transforms local codebases into a natural language queryable knowledge base.
NimCP
A powerful, macro-based library for creating Model Context Protocol (MCP) servers in the Nim programming language.
Rails MCP Server
An MCP server for Rails projects, allowing LLMs to interact with your application.
Neovim MCP Server
Connects any MCP client to the Neovim editor for seamless integration and control.