loading…
Search for a command to run...
loading…
MCP server for daisyUI React components that enables AI coding assistants to search documentation, look up props, and retrieve code examples.
MCP server for daisyUI React components that enables AI coding assistants to search documentation, look up props, and retrieve code examples.
MCP server for daisyUI React components — search docs, props, and code examples from any AI coding assistant
npm version License: MIT CI Node.js
daisyui-mcp-server is a Model Context Protocol (MCP) server that gives AI coding assistants instant access to daisyUI React component documentation. It enables tools like GitHub Copilot, Claude, Cursor, and others to search components, look up props, and retrieve code examples — all without leaving your editor.
daisyUI is the most popular component library for Tailwind CSS, providing beautiful, accessible UI components. This MCP server is built around the react-daisyui bindings.
┌─────────────────┐ ┌────────────┐ ┌─────────────────────┐ ┌────────────────┐
│ AI Assistant │────▶│ MCP Client │────▶│ daisyui-mcp-server │────▶│ Knowledge Base │
│ (Copilot/Claude) │◀────│ │◀────│ │◀────│ (56 components)│
└─────────────────┘ └────────────┘ └─────────────────────┘ └────────────────┘
| Tool | Description | Parameters |
|---|---|---|
daisyui_search |
Search component documentation | query (required), category, limit |
daisyui_get_component |
Get full component docs with props & examples | name (required) |
daisyui_get_examples |
Get code examples for a component | name (required) |
daisyui_list_components |
List all components, optionally by category | category |
daisyui_get_theme_info |
Get daisyUI theme configuration guide | — |
Components are organized into: actions, data-display, navigation, feedback, layout, data-input, mockup
npx daisyui-mcp-server
Add to .vscode/mcp.json:
{
"servers": {
"daisyui": {
"type": "stdio",
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Add to claude_desktop_config.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Add to .cursor/mcp.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Add to ~/.aws/amazonq/mcp.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Add to settings.json:
{
"context_servers": {
"daisyui": {
"command": {
"path": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
}
npx with arguments ["-y", "daisyui-mcp-server"]Add to cline_mcp_settings.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
git clone https://github.com/matracey/daisyui-mcp-server.git
cd daisyui-mcp-server
npm install
npm run build
npm test # Run tests
npm run test:watch # Watch mode
npm run test:coverage # With coverage report
npm run dev # Watch mode with tsx
npm start # Run built version
The knowledge base is generated from the react-daisyui source code and daisyUI documentation:
npm run generate
This clones the react-daisyui repo, parses component source files for props and types, scrapes daisyui.com for descriptions and examples, and outputs the result to src/data/generated/.
CATEGORY_MAP in scripts/generate-knowledge-base.tsnpm run generate to regenerate the knowledge basenpm test to verify the new component is validThe server uses the MCP SDK to expose 5 tools over stdio transport. When an AI assistant connects, it can call these tools to query a pre-built knowledge base of 56 daisyUI React components.
The scripts/generate-knowledge-base.ts script:
react-daisyui repositorydaisyui.com/components/<name>/ for descriptions, CSS classes, and examplessrc/data/generated/components.json)The search engine uses a token-based scoring system:
| Match Type | Score |
|---|---|
| Exact name match | +100 |
| Name contains query | +50 |
| Name contains token | +30 |
| Description contains token | +15 |
| Prop name matches token | +10 |
| CSS class matches token | +10 |
| Example matches token | +5 |
Results are sorted by score and returned up to the specified limit (default 5, max 10).
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
MIT — see LICENSE for details.
Выполни в терминале:
claude mcp add daisyui-mcp-server -- npx Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development