flowbite-mcp 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +324 -0
- package/build/index.js +975 -0
- package/build/server-runner.js +228 -0
- package/data/components/accordion.md +860 -0
- package/data/components/alerts.md +739 -0
- package/data/components/avatar.md +178 -0
- package/data/components/badge.md +420 -0
- package/data/components/banner.md +145 -0
- package/data/components/bottom-navigation.md +513 -0
- package/data/components/breadcrumb.md +273 -0
- package/data/components/button-group.md +410 -0
- package/data/components/buttons.md +405 -0
- package/data/components/card.md +711 -0
- package/data/components/carousel.md +858 -0
- package/data/components/chat-bubble.md +1063 -0
- package/data/components/clipboard.md +1029 -0
- package/data/components/datepicker.md +673 -0
- package/data/components/device-mockups.md +152 -0
- package/data/components/drawer.md +1353 -0
- package/data/components/dropdowns.md +1925 -0
- package/data/components/footer.md +299 -0
- package/data/components/forms.md +371 -0
- package/data/components/gallery.md +322 -0
- package/data/components/indicators.md +262 -0
- package/data/components/jumbotron.md +213 -0
- package/data/components/kbd.md +217 -0
- package/data/components/list-group.md +365 -0
- package/data/components/mega-menu.md +558 -0
- package/data/components/modal.md +1309 -0
- package/data/components/navbar.md +1053 -0
- package/data/components/pagination.md +472 -0
- package/data/components/popover.md +826 -0
- package/data/components/progress.md +95 -0
- package/data/components/qr-code.md +280 -0
- package/data/components/rating.md +323 -0
- package/data/components/sidebar.md +1067 -0
- package/data/components/skeleton.md +221 -0
- package/data/components/speed-dial.md +1270 -0
- package/data/components/spinner.md +222 -0
- package/data/components/stepper.md +271 -0
- package/data/components/tables.md +3127 -0
- package/data/components/tabs.md +808 -0
- package/data/components/timeline.md +304 -0
- package/data/components/toast.md +341 -0
- package/data/components/tooltips.md +524 -0
- package/data/components/typography.md +269 -0
- package/data/components/video.md +95 -0
- package/data/forms/checkbox.md +375 -0
- package/data/forms/file-input.md +98 -0
- package/data/forms/floating-label.md +185 -0
- package/data/forms/input-field.md +222 -0
- package/data/forms/number-input.md +1099 -0
- package/data/forms/phone-input.md +577 -0
- package/data/forms/radio.md +315 -0
- package/data/forms/range.md +83 -0
- package/data/forms/search-input.md +280 -0
- package/data/forms/select.md +259 -0
- package/data/forms/textarea.md +155 -0
- package/data/forms/timepicker.md +732 -0
- package/data/forms/toggle.md +176 -0
- package/data/plugins/charts.md +2683 -0
- package/data/plugins/datatables.md +1922 -0
- package/data/plugins/datepicker.md +5 -0
- package/data/plugins/wysiwyg.md +2377 -0
- package/data/quickstart.md +169 -0
- package/data/theme.md +231 -0
- package/data/toc.md +79 -0
- package/data/typography/blockquote.md +182 -0
- package/data/typography/headings.md +174 -0
- package/data/typography/hr.md +74 -0
- package/data/typography/images.md +168 -0
- package/data/typography/links.md +118 -0
- package/data/typography/lists.md +387 -0
- package/data/typography/paragraphs.md +186 -0
- package/data/typography/text.md +249 -0
- package/package.json +71 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Bergside Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
<p>
|
|
2
|
+
<a href="https://flowbite.com" >
|
|
3
|
+
<img alt="Flowbite - Tailwind CSS components" width="350" src="https://flowbite.s3.amazonaws.com/github/flowbite-mcp-github-2.png">
|
|
4
|
+
</a><br>
|
|
5
|
+
Official MCP server for Flowbite to leverage AI for UI creation and theme generation
|
|
6
|
+
</p>
|
|
7
|
+
|
|
8
|
+
<p>
|
|
9
|
+
<a href="https://discord.com/invite/4eeurUVvTy"><img src="https://img.shields.io/discord/902911619032576090?color=%237289da&label=Discord" alt="Discord"></a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/flowbite-mcp"><img src="https://img.shields.io/npm/dt/flowbite-mcp.svg" alt="Total Downloads"></a>
|
|
11
|
+
<a href="https://github.com/themesberg/flowbite-mcp/releases"><img src="https://img.shields.io/npm/v/flowbite-mcp.svg" alt="Latest Release"></a>
|
|
12
|
+
<a href="https://flowbite.com/docs/getting-started/license/"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License"></a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
An MCP server that enables AI assistants to access the [Flowbite](https://flowbite.com/) 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.
|
|
16
|
+
|
|
17
|
+
## MCP Features
|
|
18
|
+
|
|
19
|
+
- **🎨 60+ UI Components** - Complete access to buttons, cards, modals, dropdowns, and more
|
|
20
|
+
- **📝 Form Elements** - Input fields, checkboxes, radio buttons, select, textarea, and advanced form components
|
|
21
|
+
- **✍️ Typography Components** - Headings, paragraphs, blockquotes, lists, and text styling
|
|
22
|
+
- **🔌 Plugin Integrations** - Charts, datatables, WYSIWYG editors, and datepickers
|
|
23
|
+
- **🎯 AI-Powered Theme Generator** - Create custom branded themes from any hex color
|
|
24
|
+
- **📦 Component Source Code** - Latest Flowbite Tailwind CSS implementations
|
|
25
|
+
- **📋 Metadata Access** - Component descriptions, usage patterns, and integration guides
|
|
26
|
+
- **🌐 Dual Transport Support** - Standard I/O (stdio) for CLI or HTTP Streamable for server deployments
|
|
27
|
+
- **⚡ Production Ready** - Docker support with health checks and monitoring
|
|
28
|
+
- **🎨 Quickstart Guide** - Complete setup and integration documentation
|
|
29
|
+
|
|
30
|
+
## Quickstart
|
|
31
|
+
|
|
32
|
+
### Using NPX
|
|
33
|
+
|
|
34
|
+
The simplest way to use Flowbite MCP Server:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
# Run directly with npx (no installation needed)
|
|
38
|
+
npx flowbite-mcp
|
|
39
|
+
|
|
40
|
+
# Show help and options
|
|
41
|
+
npx flowbite-mcp --help
|
|
42
|
+
|
|
43
|
+
# Run in HTTP server mode for production
|
|
44
|
+
npx flowbite-mcp --mode http --port 3000
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Transport Modes
|
|
48
|
+
|
|
49
|
+
### Standard I/O (stdio)
|
|
50
|
+
|
|
51
|
+
The default mode for local development and CLI integrations:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Start in stdio mode (default)
|
|
55
|
+
node build/index.js
|
|
56
|
+
|
|
57
|
+
# Configure in Claude Desktop config.json
|
|
58
|
+
{
|
|
59
|
+
"mcpServers": {
|
|
60
|
+
"flowbite": {
|
|
61
|
+
"command": "node",
|
|
62
|
+
"args": ["/path/to/flowbite-mcp/build/index.js"]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### HTTP server
|
|
69
|
+
|
|
70
|
+
HTTP-based transport for production and multi-client scenarios:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
node build/index.js --mode http --port 3000
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
This will make the MCP server available at 'http://localhost:3000/mcp'.
|
|
77
|
+
|
|
78
|
+
### Environment variables
|
|
79
|
+
|
|
80
|
+
Configure the server behavior with these environment variables:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Transport mode: stdio (default) or http
|
|
84
|
+
MCP_TRANSPORT_MODE=http
|
|
85
|
+
|
|
86
|
+
# Server port for HTTP mode
|
|
87
|
+
MCP_PORT=3000
|
|
88
|
+
|
|
89
|
+
# Host binding for HTTP mode
|
|
90
|
+
MCP_HOST=0.0.0.0
|
|
91
|
+
|
|
92
|
+
# CORS origins (comma-separated)
|
|
93
|
+
MCP_CORS_ORIGINS=http://localhost:3000,https://myapp.com
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
## Installation & Setup
|
|
97
|
+
|
|
98
|
+
Make sure that you have the following installed:
|
|
99
|
+
|
|
100
|
+
- Node.js 16+ installed
|
|
101
|
+
- Tailwind CSS v4+ (for generated themes)
|
|
102
|
+
|
|
103
|
+
### Local development
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# Clone the repository
|
|
107
|
+
git clone https://github.com/themesberg/flowbite-mcp.git
|
|
108
|
+
cd flowbite-mcp
|
|
109
|
+
|
|
110
|
+
# Install dependencies
|
|
111
|
+
npm install
|
|
112
|
+
|
|
113
|
+
# Build the project
|
|
114
|
+
npm run build
|
|
115
|
+
|
|
116
|
+
# Run in stdio mode (for Claude Desktop, Cursor)
|
|
117
|
+
npm start
|
|
118
|
+
|
|
119
|
+
# Run inspector
|
|
120
|
+
npm run start inspector
|
|
121
|
+
|
|
122
|
+
# Run in HTTP server mode (for production/multi-client)
|
|
123
|
+
MCP_TRANSPORT_MODE=http npm start
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Integration Examples
|
|
127
|
+
|
|
128
|
+
### Claude desktop
|
|
129
|
+
|
|
130
|
+
**Method 1: Using NPX**
|
|
131
|
+
|
|
132
|
+
```json
|
|
133
|
+
{
|
|
134
|
+
"mcpServers": {
|
|
135
|
+
"flowbite": {
|
|
136
|
+
"command": "npx",
|
|
137
|
+
"args": ["-y", "flowbite-mcp"]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Cursor editor
|
|
144
|
+
|
|
145
|
+
**With NPX:**
|
|
146
|
+
|
|
147
|
+
```json
|
|
148
|
+
{
|
|
149
|
+
"mcpServers": {
|
|
150
|
+
"flowbite": {
|
|
151
|
+
"command": "npx",
|
|
152
|
+
"args": ["-y", "flowbite-mcp"]
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Continue.dev
|
|
159
|
+
|
|
160
|
+
```json
|
|
161
|
+
{
|
|
162
|
+
"mcpServers": [
|
|
163
|
+
{
|
|
164
|
+
"name": "flowbite",
|
|
165
|
+
"command": "npx",
|
|
166
|
+
"args": ["-y", "flowbite-mcp"]
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Local Development
|
|
173
|
+
|
|
174
|
+
For development or running from source:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
# Install dependencies
|
|
178
|
+
npm install
|
|
179
|
+
|
|
180
|
+
# Build the project
|
|
181
|
+
npm run build
|
|
182
|
+
|
|
183
|
+
# Run in stdio mode
|
|
184
|
+
npm start
|
|
185
|
+
|
|
186
|
+
# Run in HTTP server mode
|
|
187
|
+
npm run start:http
|
|
188
|
+
|
|
189
|
+
# Development mode with auto-reload
|
|
190
|
+
npm run dev
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Production deployment (HTTP Mode)
|
|
194
|
+
|
|
195
|
+
For production servers with multiple clients:
|
|
196
|
+
|
|
197
|
+
```bash
|
|
198
|
+
# Using npx
|
|
199
|
+
npx flowbite-mcp --mode http --port 3000
|
|
200
|
+
|
|
201
|
+
# Using Docker Compose
|
|
202
|
+
docker-compose up -d
|
|
203
|
+
|
|
204
|
+
# Health check
|
|
205
|
+
curl http://localhost:3000/health
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Development Scripts
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
# Build TypeScript to JavaScript
|
|
212
|
+
npm run build
|
|
213
|
+
|
|
214
|
+
# Watch mode for development
|
|
215
|
+
npm run watch
|
|
216
|
+
|
|
217
|
+
# Development with auto-reload
|
|
218
|
+
npm run dev
|
|
219
|
+
|
|
220
|
+
# Run MCP Inspector for debugging
|
|
221
|
+
npm run inspector
|
|
222
|
+
|
|
223
|
+
# Start production server
|
|
224
|
+
npm start
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
## Docker Configuration
|
|
228
|
+
|
|
229
|
+
The project includes a production-ready Docker setup with multi-stage builds for optimal performance.
|
|
230
|
+
|
|
231
|
+
### Quickstart with Docker
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
# Build and run with Docker Compose (recommended)
|
|
235
|
+
docker-compose up -d
|
|
236
|
+
|
|
237
|
+
# Check health
|
|
238
|
+
curl http://localhost:3000/health
|
|
239
|
+
|
|
240
|
+
# View logs
|
|
241
|
+
docker-compose logs -f
|
|
242
|
+
|
|
243
|
+
# Stop
|
|
244
|
+
docker-compose down
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### MCP inspector
|
|
248
|
+
|
|
249
|
+
Use the MCP Inspector for interactive debugging:
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
npm run inspector
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Logging
|
|
256
|
+
|
|
257
|
+
Check server logs for detailed information:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
# stdio mode logs to console
|
|
261
|
+
node build/index.js
|
|
262
|
+
|
|
263
|
+
# HTTP mode includes HTTP request logs
|
|
264
|
+
MCP_TRANSPORT_MODE=http node build/index.js
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## File structure
|
|
268
|
+
|
|
269
|
+
```
|
|
270
|
+
flowbite-mcp/
|
|
271
|
+
├── src/
|
|
272
|
+
│ ├── index.ts # Main server entry point
|
|
273
|
+
│ └── server-runner.ts # Express HTTP Streamable transport
|
|
274
|
+
├── data/
|
|
275
|
+
│ ├── components/ # 60+ component markdown files
|
|
276
|
+
│ ├── forms/ # Form component documentation
|
|
277
|
+
│ ├── typography/ # Typography elements
|
|
278
|
+
│ ├── plugins/ # Plugin documentation
|
|
279
|
+
│ ├── theme.md # Theme variable reference
|
|
280
|
+
│ └── quickstart.md # Getting started guide
|
|
281
|
+
├── build/ # Compiled JavaScript output
|
|
282
|
+
├── package.json
|
|
283
|
+
├── tsconfig.json
|
|
284
|
+
└── README.md
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
## Contributing
|
|
288
|
+
|
|
289
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
290
|
+
|
|
291
|
+
1. Fork the repository
|
|
292
|
+
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
|
|
293
|
+
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
|
|
294
|
+
4. Push to the branch (`git push origin feature/AmazingFeature`)
|
|
295
|
+
5. Open a Pull Request
|
|
296
|
+
|
|
297
|
+
## License
|
|
298
|
+
|
|
299
|
+
This project is licensed under the MIT License License - see the [LICENSE](LICENSE) file for details.
|
|
300
|
+
|
|
301
|
+
## Credits
|
|
302
|
+
|
|
303
|
+
- **[Flowbite](https://flowbite.com/)** - For the amazing Tailwind CSS component library
|
|
304
|
+
- **[Anthropic](https://anthropic.com)** - For the Model Context Protocol specification
|
|
305
|
+
- **[Tailwind CSS](https://tailwindcss.com/)** - For the utility-first CSS framework
|
|
306
|
+
|
|
307
|
+
## Resources
|
|
308
|
+
|
|
309
|
+
- 🎨 [Flowbite Documentation](https://flowbite.com/docs/getting-started/introduction/)
|
|
310
|
+
- 📦 [Flowbite Components](https://flowbite.com/docs/components/accordion/)
|
|
311
|
+
- 🌐 [Model Context Protocol](https://modelcontextprotocol.io/)
|
|
312
|
+
- 🚀 [Tailwind CSS v4 Docs](https://tailwindcss.com/docs)
|
|
313
|
+
- 💬 [GitHub Issues](https://github.com/themesberg/flowbite-mcp/issues)
|
|
314
|
+
|
|
315
|
+
## Roadmap
|
|
316
|
+
|
|
317
|
+
- [x] Complete component resource access
|
|
318
|
+
- [x] AI-powered theme generator
|
|
319
|
+
- [x] Dual transport support (stdio + HTTP)
|
|
320
|
+
- [ ] Flowbite Pro blocks integration (with license authentication)
|
|
321
|
+
- [ ] Figma to code conversion tool
|
|
322
|
+
- [ ] Enhanced theme customization options
|
|
323
|
+
- [ ] Component search and filtering
|
|
324
|
+
- [ ] Real-time component preview generation
|