Install
$ agentstack add mcp-matracey-daisyui-mcp-server β scanned Β· β verified, works with Claude Code, Cursor, and more.
Security review
β PassedNo issues found. Passed automated security review. Β· v0.1.0 How review works β
- β Prompt-injection patterns
- β Secret / credential exfiltration
- β Dangerous shell & filesystem operations
- β Untrusted network calls
- β Known-malicious package signatures
What it can access
- β Network access No
- β Filesystem access No
- β Shell / process execution No
- β Environment & secrets No
- β Dynamic code execution No
From automated source analysis of v0.1.0. βUsedβ means the capability is present in the source β more access means more to trust, not that itβs unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work βAbout
πΌ daisyui-mcp-server
> MCP server for daisyUI React components β search docs, props, and code examples from any AI coding assistant
[](https://www.npmjs.com/package/daisyui-mcp-server) [](https://opensource.org/licenses/MIT) [](https://github.com/matracey/daisyui-mcp-server/actions/workflows/ci.yml) [](https://nodejs.org)
Overview
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)β
βββββββββββββββββββ ββββββββββββββ βββββββββββββββββββββββ ββββββββββββββββββ
Available Tools
| 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 | β |
Categories
Components are organized into: actions, data-display, navigation, feedback, layout, data-input, mockup
Quick Start
npx daisyui-mcp-server
Configuration
VS Code (GitHub Copilot)
Add to .vscode/mcp.json:
{
"servers": {
"daisyui": {
"type": "stdio",
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Cursor
Add to .cursor/mcp.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Amazon Q Developer CLI
Add to ~/.aws/amazonq/mcp.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Zed
Add to settings.json:
{
"context_servers": {
"daisyui": {
"command": {
"path": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
}
JetBrains IDEs (IntelliJ, WebStorm, etc.)
- Go to Settings β Tools β AI Assistant β MCP Servers
- Click Add
- Set command to
npxwith arguments["-y", "daisyui-mcp-server"]
Cline
Add to cline_mcp_settings.json:
{
"mcpServers": {
"daisyui": {
"command": "npx",
"args": ["-y", "daisyui-mcp-server"]
}
}
}
Development
Prerequisites
- Node.js >= 18
- npm
Setup
git clone https://github.com/matracey/daisyui-mcp-server.git
cd daisyui-mcp-server
npm install
Build
npm run build
Test
npm test # Run tests
npm run test:watch # Watch mode
npm run test:coverage # With coverage report
Run Locally
npm run dev # Watch mode with tsx
npm start # Run built version
Regenerate Knowledge Base
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/.
Adding New Components
- Add the component name and category to the
CATEGORY_MAPinscripts/generate-knowledge-base.ts - Run
npm run generateto regenerate the knowledge base - Run
npm testto verify the new component is valid
How It Works
Architecture
The 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.
Knowledge Base Generation
The scripts/generate-knowledge-base.ts script:
- Clones the
react-daisyuirepository - Parses each component's TypeScript source to extract props, types, and defaults
- Scrapes
daisyui.com/components//for descriptions, CSS classes, and examples - Outputs a structured JSON file (
src/data/generated/components.json)
Search Scoring
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).
Contributing
Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
- Open an issue for bugs or feature requests
- Submit a pull request with your changes
License
MIT β see [LICENSE](LICENSE) for details.
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source β we do not rehost the code.
- Author: matracey
- Source: matracey/daisyui-mcp-server
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.