Логотип HeroUI React MCP Server

HeroUI React MCP Server

Організація
heroui-inc

⚙️ MCP servers for HeroUI React v3 and HeroUI Native.

Видавецьheroui-inc
Репозиторійheroui-mcp
МоваTypeScript
Форки
4
Зірки
60
Доступні інструменти
9
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    HeroUI React MCP Server надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 9

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 60, форки: 4 — у пов’язаному репозиторії.

HeroUI MCP Monorepo

Model Context Protocol (MCP) servers for the HeroUI design system. Access HeroUI component documentation directly in your AI assistant.

MCPs

MCPDescriptionDocs
@heroui/react-mcpMCP server for web (@heroui/react) component docs, examples, and theme dataREADME
@heroui/native-mcpMCP server for React Native (@heroui/native) component docs, examples, and theme dataREADME

Quick Start

Installation

Choose your package based on your platform:

For Web (React/Next.js):

bash
# Cursor, Claude Code, Windsurf, etc.
npx -y @heroui/react-mcp@latest

For React Native:

bash
npx -y @heroui/native-mcp@latest

See package-specific READMEs for detailed installation instructions for your IDE.

What's Included

  • 🔍 Component Discovery - Search and browse all HeroUI components
  • 📚 Complete Documentation - Props, types, and usage examples
  • 🎨 Theme Information - Access theme variables and design tokens
  • 💻 Source Code - View component implementation and styles
  • 🔄 Always Up-to-Date - Latest component data fetched automatically

Local Development

bash
# Clone and install
git clone https://github.com/heroui-inc/heroui-mcp.git
cd heroui-mcp
pnpm install

# Set up environment variables (required for data extraction)
cp .env.example .env
# Edit .env with your Cloudflare R2 and GitHub credentials

Available Scripts

Build Commands:

bash
pnpm build                    # Build all packages
pnpm build:react              # Build React MCP only
pnpm build:native             # Build Native MCP only

Development Servers:

bash
pnpm dev                      # Start all dev servers (excludes mastra)
pnpm dev:react                # React MCP API server (http://localhost:8787)
pnpm dev:native               # Native MCP API server (http://localhost:8788)
pnpm dev:mastra               # Mastra playground server (http://localhost:4111)

Testing & Inspection:

bash
pnpm inspect:react            # Launch MCP Inspector for React
pnpm inspect:native           # Launch MCP Inspector for Native
pnpm lint                     # Run linting
pnpm typecheck                # Run type checking
pnpm test                     # Run tests

Data Extraction:

bash
pnpm extract:react            # Extract React component data
pnpm extract:native           # Extract Native component data

Code Quality:

bash
pnpm format                   # Format code with Prettier
pnpm clean                    # Clean build artifacts
pnpm release:check            # Pre-release validation

See CONTRIBUTING.md for detailed development setup and architecture information.

Contributing

We welcome contributions! Please see CONTRIBUTING.md for development setup, architecture details, and contribution guidelines.

Please adhere to our Code of Conduct in all interactions.

Support

License

MIT

Встановлення

TypingMind
{
  "mcpServers": {
    "heroui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@heroui/react-mcp@latest"
      ]
    }
  }
}

Доступні інструменти

  • installation

    Get installation guide for NEW HeroUI v3 (Alpha) projects - NOT for migrating from v2. ⚠️ IMPORTANT: This is for NEW projects only - Migration from v2 to v3 is NOT supported yet. Migration tool will be available when v3 reaches stable release. CRITICAL: HeroUI v3 requires Tailwind CSS v4 (NOT v3) - this is mandatory. Automatically fetches the latest HeroUI v3 alpha version. Provides framework-specific setup for Next.js App Router, Pages Router, Vite, or general React. Unlike v2, HeroUI v3 does NOT require a Provider component - it works directly. Includes all required dependencies: @heroui/react, @heroui/styles, and tailwind-variants. v3 Status: ALPHA - expect breaking changes, use for new projects only. For v2 projects: Continue using v2 until migration tool is available with v3 stable.

  • list_components

    List all available components in HeroUI v3 (Alpha) - v2 components NOT supported. ⚠️ VERSION INFO: This returns v3 ALPHA components only - NOT v2 components. Migration from v2 is not available yet - will come with v3 stable release. If you need v2 components, visit https://heroui.com (not supported by this MCP). Always call this first before using any component to verify it exists in v3. Returns the component names exactly as they should be used in imports and other tool calls. v3 uses compound patterns (e.g., Card.Header, Card.Content) - different from v2's flat props. If user asks about a v2 component not in v3, explain it may not be available yet. Example workflow: list_components → get_component_info → get_component_examples. Note: v3 is ALPHA - component list may change before stable release.

  • get_theme_info

    Get HeroUI v3 theme CSS variables and design tokens for customization. Returns organized CSS custom properties that control the entire design system. Variables follow a three-layer system: primitives → semantic → calculated. Use for customizing colors, spacing, typography, borders, shadows, animations. Variables use modern oklch() color format for better color manipulation. Apply these in your CSS with :root or theme-specific selectors. Example variables: --color-accent, --radius-md, --font-size-body, --spacing-4. Category options help filter to specific design aspects. Mode options (light/dark) show theme-specific values. IMPORTANT: HeroUI v3 uses Tailwind CSS v4 - ensure compatibility.

  • get_docs

    Get HeroUI v3 documentation content for guides, principles, and component docs. Fetches official documentation from v3.heroui.com. Returns the complete MDX content of documentation pages. Use for understanding concepts, design principles, implementation guides. The path parameter description shows ALL available documentation paths. Documentation covers: design principles, quick start, components, handbook (theming, colors, styling, animation). IMPORTANT: Always use exact paths shown in the available paths list - DO NOT guess paths. Example paths: /docs/introduction, /docs/components/button, /docs/handbook/theming. Returns MDX content which may include code examples and explanations. This is v3 alpha documentation - ensure you're working with HeroUI v3, not v2.

  • get_component_source_code

    Get the actual React/TypeScript source code implementation of HeroUI v3 components. Accepts an array of component names and returns source code for each. Returns the internal implementation for learning purposes or debugging. Shows how the component is built using React Aria Components. Use this to understand component internals, not for copying implementation. The source shows accessibility features, keyboard handling, and ARIA attributes. Note: For using components, refer to examples via get_component_examples. IMPORTANT: Do NOT copy this code directly - use the component via @heroui/react imports. This shows v3 alpha implementation which uses React Aria Components as foundation. GitHub links are provided for viewing the source in context.

  • get_component_examples

    Get complete, working code examples for HeroUI v3 components. Accepts an array of component names and returns examples for each. Returns ready-to-use React/TypeScript code demonstrating various use cases. Examples show COMPOUND COMPONENT patterns - study these carefully. CRITICAL: Examples demonstrate the ONLY correct way to use components. Never modify the structure shown in examples (e.g., don't flatten compound components). Each example includes imports, component usage, and common patterns. Use this after get_component_info to see practical implementations. If implementing a component, ALWAYS check examples first to avoid mistakes. Common mistakes to avoid: Using onClick instead of onPress, flat props instead of compound components. Workflow: get_component_info → get_component_props → get_component_examples.

  • get_component_props

    Get detailed TypeScript prop definitions for HeroUI v3 components. Accepts an array of component names and returns prop information for each. Returns the complete TypeScript interface with all props, types, defaults, and descriptions. Use this for type-safe implementations and to understand all available options. IMPORTANT: Props returned are for the React component (@heroui/react), not BEM classes. These props work with @heroui/react imports only, not @heroui/styles. Common props include: variant, size, color, isDisabled, className, onPress (not onClick!). Use after get_component_info to understand specific prop types. Example output includes interfaces, enums, and detailed prop documentation. Workflow: get_component_info → get_component_props → get_component_examples.

  • get_component_source_styles

    Get the CSS styles and BEM classes for HeroUI v3 components. Accepts an array of component names and returns styles for each. Returns the complete CSS implementation including all variants and states. Shows BEM class structure (e.g., .button, .button--accent, .button--disabled). IMPORTANT: These are framework-agnostic styles from @heroui/styles package. DO NOT mix BEM classes with React components - choose one approach:

    • Use @heroui/react for full React components with accessibility
    • Use @heroui/styles for CSS-only styling without JavaScript BEM classes provide styling only - no JavaScript behavior or accessibility. For production use, prefer @heroui/react components for full functionality. GitHub links are provided for viewing styles in context.
  • get_component_info

    Get complete information about HeroUI v3 (Alpha) components - v2 API NOT supported. ⚠️ This returns v3 ALPHA component info - APIs may differ from v2 and may change before stable. CRITICAL: Always use this before implementing ANY component to understand its v3 anatomy. Accepts an array of component names and returns information for each component. Returns: description, import statement, anatomy (compound structure), props, subcomponents, examples count, and CSS classes. v3 DIFFERENCE: Uses COMPOUND COMPONENTS (e.g., <Card.Header>...</Card.Header>) v2 used flat props like - this pattern is NOT supported in v3. The anatomy field shows the exact v3 component structure you must follow. If migrating from v2: Component APIs have changed - check carefully, don't assume v2 patterns work. Use this tool when user asks "how to use X component" or before any implementation. Workflow: list_components → get_component_info → get_component_examples.

Використовуйте MCP HeroUI React MCP Server з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення HeroUI React MCP Server ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте HeroUI React MCP Server як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP HeroUI React MCP Server.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "heroui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@heroui/react-mcp"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для HeroUI React MCP Server, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для HeroUI React MCP Server.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через HeroUI React MCP Server?
HeroUI React MCP Server
Звісно. Я це прочитав.
Ось що я знайшов за допомогою HeroUI React MCP Server.

Поширені запитання

Для чого використовується сервер MCP HeroUI React MCP Server?

HeroUI React MCP Server — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP HeroUI React MCP Server з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати HeroUI React MCP Server з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP HeroUI React MCP Server із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши HeroUI React MCP Server, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP HeroUI React MCP Server до TypingMind?

HeroUI React MCP Server працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP HeroUI React MCP Server у TypingMind?

HeroUI React MCP Server надає інструменти MCP (9), які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP HeroUI React MCP Server?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо HeroUI React MCP Server потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇