# Tác nhân thành phần ma thuật thứ 21st.dev MCP - Giao diện người dùng React/Tailwind có thể truy cập (`magic-21st-ui-mcp`)

> Tạo các thành phần CSS React 19 và Tailwind có thể truy cập, được nhập trực tiếp bên trong Cursor, Windsurf và VS Code.

- **Canonical URL:** https://syndipath.com/vi/mcp/magic-21st-ui-mcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** MIT | **Package:** `@21st-dev/magic`
- **Upvotes:** 741 | **GitHub Stars:** 6890 | **Weekly Installs:** 49200
- **Security Note:** HTTP-200 đã được xác minh trên NPM Đăng ký (@21st-dev/magic); chạy qua npx bên trong phiên STDIO trong phạm vi không gian làm việc.

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y @21st-dev/magic

# Add to Claude Code CLI
claude mcp add -e TWENTY_FIRST_API_KEY=${TWENTY_FIRST_API_KEY} magic-21st-ui-mcp -- npx -y @21st-dev/magic
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "magic-21st-ui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@21st-dev/magic"
      ],
      "env": {
        "TWENTY_FIRST_API_KEY": "${TWENTY_FIRST_API_KEY}"
      }
    }
  }
}
```

## Exposed MCP Tools
- `magic_21st_ui_mcp_execute(query: string, options?: object)`: Generates accessible, typed React 19 and Tailwind CSS components directly inside Cursor, Windsurf, and VS Code.
- `magic_21st_ui_mcp_list_items(filter?: string, limit?: number)`: Lists structured workspace artifacts and capability metadata over JSON-RPC 2.0.
