Labsco
themesberg logo

Flowbite MCP

β˜… 37

from themesberg

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

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

Flowbite - Tailwind CSS components
Official MCP server for Flowbite to leverage AI for UI creation and theme generation

<a href="https://www.npmjs.com/package/flowbite-mcp"><img src="https://img.shields.io/npm/dt/flowbite-mcp.svg" alt="Total Downloads"></a>

Install MCP Server

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:

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

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

Install MCP Server

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

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

Resources

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