home / mcp / daisyui mcp server

DaisyUI MCP Server

A token-efficient local MCP server that serves DaisyUI component docs and examples for AI assistants.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "birdseyevue-daisyui-mcp": {
      "command": "C:/Users/username/Downloads/fastmcp/venv/Scripts/python.exe",
      "args": [
        "C:/Users/username/Downloads/fastmcp/mcp_server.py"
      ]
    }
  }
}

You run a token-efficient local MCP server that exposes DaisyUI component documentation to your AI assistants. It serves structured component data and examples, while keeping prompts concise and fast to execute.

How to use

Launch and interact with the DaisyUI MCP Server from your MCP client to access component docs, fetch updates, and explore individual components. The server exposes two core capabilities: listing available components and retrieving full documentation for a specific component. Use these tools to build responsive UIs, generate examples, and quickly browse the DaisyUI library.

How to install

Prerequisites you need before installing: Python 3.8+ and Git.

git clone https://github.com/birdseyevue/daisyui-mcp.git
cd daisyui-mcp
python -m venv venv

# Windows
venv\Scripts\activate

# macOS/Linux
source venv/bin/activate
pip install -r requirements.txt

First-time setup requires fetching the latest component docs. Run the update command to populate the local docs.

python update_components.py

Start the MCP server to begin serving component docs.

python mcp_server.py

To update docs after DaisyUI releases changes, re-run the update command.

python update_components.py

Configuration

Configure your MCP client to connect to your local DaisyUI MCP Server using one of the provided runtime commands for your environment. The server runs locally via a Python process, so you will point your client to the appropriate local runtime invocation.

{
  "servers": {
    "daisyui": {
      "command": "<path-to-venv>/bin/python" ,
      "args": ["<path-to-repo>/mcp_server.py"]
    }
  }
}

Notes and tips

If you are on Windows, use the Python executable from your virtual environment and point to mcp_server.py as shown in the example configuration. If you are on macOS or Linux, use the corresponding Python from your venv and the path to mcp_server.py. Keep your venv activated when you start the server to ensure dependencies are available.

Available tools

list_components

Lists all available DaisyUI components with short descriptions

get_component

Gets the full documentation for a specific component (classes, syntax, examples)