๐ผ daisyUI MCP Integration Cheat Sheet
๐ฏ Goal
Keep Windsurf agents wired into daisyUI + Context7 knowledge bases for instant, accurate component + theme generation.
๐ ๏ธ Core MCP Servers
- ๐ง
context7(stdio via npx) - ๐
daisyui Docs(GitMCP SSE endpoint) - ๐ Optional:
mcp-remotefor Claude Desktop uplink
๐งพ Windsurf ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
},
"daisyui Docs": {
"serverUrl": "https://gitmcp.io/saadeghi/daisyui"
}
}
}๐งพ VSCode .vscode/mcp.json
{
"servers": {
"context7": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
},
"daisyUI": {
"type": "sse",
"url": "https://gitmcp.io/saadeghi/daisyui"
}
}
}๐งพ Claude Desktop claude_desktop_config.json
{
"mcpServers": {
"Context7": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
},
"daisyui Docs": {
"command": "npx",
"args": ["mcp-remote", "https://gitmcp.io/saadeghi/daisyui"]
}
}
}๐ฆ Cursor Prompt Injection
@web https://daisyui.com/llms.txt
โจ Example Prompts
give me a light daisyUI 5 theme with tropical palette. use context7generate daisyUI button group using join component
๐งฉ Component Snippets
<!-- Button -->
<button class="btn">Button</button>
<button class="btn rounded-full px-6">Custom Button</button>
<!-- Join Group -->
<div class="join">
<button class="btn join-item">Prev</button>
<button class="btn join-item">Play</button>
<button class="btn join-item">Next</button>
</div>
<!-- Divider Positions -->
<div class="flex w-full">
<div class="divider divider-horizontal divider-start">Start</div>
<div class="divider divider-horizontal">Center</div>
<div class="divider divider-horizontal divider-end">End</div>
</div>
<!-- Loading States -->
<span class="loading loading-ball loading-sm"></span>
<span class="loading loading-dots loading-md"></span>๐งช Testing Hooks
- Run
npm run verifyafter integrating new component code. - Capture Playwright traces when validating daisyUI styling regressions.
๐ Reference
/docs/daisyui-mcp-cheatsheet.md- Keep MCP server versions in sync with workspace tooling (Playwright 1.56.0 runtime + 1.54.1 headless shell).