PluginBench
MCP Server
Stale
MIT

io.github.themesberg/flowbite-mcp MCP Server

io.github.themesberg/flowbite-mcp

Convert Figma designs to Flowbite Tailwind CSS components and generate custom branded themes with AI.

What is the io.github.themesberg/flowbite-mcp MCP server?

The Flowbite MCP server enables AI assistants to access the Flowbite library of 60+ Tailwind CSS components and intelligently generate custom branded themes. It includes tools to convert Figma designs directly to code and create themed UI components for AI-driven development.

This MCP server integrates Flowbite's comprehensive UI component library with AI capabilities, allowing you to generate production-ready Tailwind CSS code from Figma designs and create custom branded themes from hex colors. It's designed for developers using Claude, Cursor, or other AI assistants who want to accelerate UI development with pre-built, accessible components.

How to install io.github.themesberg/flowbite-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • FIGMA_ACCESS_TOKEN
    required
    secret

    Your personal access token for the Figma API

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "flowbite-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "flowbite-mcp"
      ],
      "env": {
        "FIGMA_ACCESS_TOKEN": "<YOUR_FIGMA_ACCESS_TOKEN>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • Figma to code — Convert Figma node URLs directly to Flowbite component code
  • Theme file generator — Create custom branded themes from hex colors for consistent design systems

Use cases

  • Convert Figma mockups to production-ready Tailwind CSS component code
  • Generate custom branded color themes for consistent UI across projects
  • Access 60+ pre-built Flowbite UI components including forms, typography, and plugins
  • Rapidly prototype and build UIs with AI assistance using component documentation
  • Create themed design systems with custom color palettes

io.github.themesberg/flowbite-mcp MCP server FAQ

What is the Flowbite MCP server?

It's an official MCP server that gives AI assistants access to Flowbite's Tailwind CSS component library, plus tools to convert Figma designs to code and generate custom branded themes.

Is it free?

Yes, Flowbite MCP is open-source under the MIT License and free to use.

How do I install it in Cursor?

Click the 'Install MCP Server' button in the README, or manually add the configuration to your mcp.json file with the command 'npx -y flowbite-mcp'.

How do I install it in Claude Desktop?

Update your claude_desktop_config.json file to include the flowbite server configuration with the command 'npx -y flowbite-mcp'.

Do I need authentication?

Optional: a Figma personal access token is only required if you want to use the Figma-to-code conversion tool. Set it as the FIGMA_ACCESS_TOKEN environment variable.

What transport modes does it support?

It supports both stdio (default for CLI/local) and HTTP server mode (for production deployments), with Docker support included.

README (reference)

Source of truth, from the repository.

<p> <a href="[https://flowbite.com](https://flowbite.com/docs/getting-started/mcp/)" > <img alt="Flowbite - Tailwind CSS components" width="350" src="https://flowbite.s3.amazonaws.com/github/flowbite-mcp-github-2.png"> </a><br> Official MCP server for Flowbite to leverage AI for UI creation and theme generation </p> <p> <a href="https://discord.com/invite/4eeurUVvTy"><img src="https://img.shields.io/discord/902911619032576090?color=%237289da&label=Discord" alt="Discord"></a> <a href="https://www.npmjs.com/package/flowbite-mcp"><img src="https://img.shields.io/npm/dt/flowbite-mcp.svg" alt="Total Downloads"></a> <a href="https://github.com/themesberg/flowbite-mcp/releases"><img src="https://img.shields.io/npm/v/flowbite-mcp.svg" alt="Latest Release"></a> <a href="https://flowbite.com/docs/getting-started/license/"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License"></a> </p>

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

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

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

<a href="https://glama.ai/mcp/servers/@zoltanszogyenyi/flowbite-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@zoltanszogyenyi/flowbite-mcp/badge" /> </a>

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.

  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)
  5. 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

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 MCP servers

SYSynchronity logo

Shop connected e-commerce stores: search, compare, cart, and checkout with buyer approval.

0
PHP
MIT
View repository →

Generate professional PDF reports from LLM output — cover, TOC, tables, charts, 5 themes.

0
Python
MIT
View repository →

8 AI services via MCP: content, code, image, docs, data extraction, translation, SEO, email.

Check if a Florida address can build an ADU: county GIS zoning, eligibility verdict, local rules.

View repository →

Current UTC time from NTP atomic clocks. Zero-dependency stdio server.

View repository →

Concierge MCP for agentic workflows: verified time + drift, uuid, diff, calc, attest, verify.

View repository →