# flowbite-mcp

Connects the Flowbite library to your AI assistant to generate Tailwind CSS UI markup and turn Figma nodes into code. Helpful when assembling components from design files.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 42
- Author: themesberg
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/themesberg/flowbite-mcp
- Updated: 2026-01-04
- HTML: https://affpapa.org/en/nevibecode/mcp/flowbite-mcp

## What it does

This server connects an AI assistant to more than 60 Flowbite UI components. All styling relies on Tailwind CSS. It provides two core tools: a theme palette builder from hex values and a code generator for Figma nodes.

Figma conversion requires setting `FIGMA_ACCESS_TOKEN` in your client configuration. Without it, generation fails. Static component references and theme generation remain usable without any API keys.

You can run the server locally with stdio via `npx flowbite-mcp`. For team workflows, Docker runs it in HTTP Streamable mode on port 3000.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `FIGMA_ACCESS_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add flowbite-mcp -e FIGMA_ACCESS_TOKEN=<FIGMA_ACCESS_TOKEN> -- npx -y flowbite-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add flowbite-mcp --env FIGMA_ACCESS_TOKEN=<FIGMA_ACCESS_TOKEN> -- npx -y flowbite-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "flowbite-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "flowbite-mcp"
            ],
            "env": {
                "FIGMA_ACCESS_TOKEN": "<FIGMA_ACCESS_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "flowbite-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "flowbite-mcp"
            ],
            "env": {
                "FIGMA_ACCESS_TOKEN": "<FIGMA_ACCESS_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e FIGMA_ACCESS_TOKEN=<FIGMA_ACCESS_TOKEN> flowbite-mcp npx -y flowbite-mcp
```
Replace <…> with your own values

## When to use it
- convert Figma nodes into Tailwind CSS markup
- generate branded theme configurations from a hex color
- insert Flowbite UI components and forms into project code
- host a shared interface MCP server in Docker via HTTP

## Example prompts
- Convert the Figma node at `<figma-node-url>` into a Tailwind CSS card component
- Generate a Flowbite theme configuration using hex color `#1C64F2`
- Create a login form using Flowbite UI components

## Similar
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74559
- [tldraw](https://affpapa.org/en/nevibecode/mcp/tldraw.md) — MCP server · ★ 51091
- [Figma-Context-MCP](https://affpapa.org/en/nevibecode/mcp/figma-context-mcp.md) — MCP server · ★ 16062
- [mcp-server-chart](https://affpapa.org/en/nevibecode/mcp/mcp-server-chart.md) — MCP server · ★ 4402
- [Dembrandt](https://affpapa.org/en/nevibecode/mcp/dembrandt.md) — MCP server · ★ 3821
- [RevoGrid DataGrid MCP Pro](https://affpapa.org/en/nevibecode/mcp/revogrid-datagrid-mcp-pro.md) — MCP server · ★ 3450

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
