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
リンク
  • ツールをAIワークフローに接続

    HeroUI React MCP Serverは、対応するAIクライアントやAIエージェントから利用できる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.

HeroUI React MCP ServerのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度HeroUI React MCP Serverに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

HeroUI React MCP Serverをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. HeroUI React MCP ServerのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "heroui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@heroui/react-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてHeroUI React MCP ServerのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. HeroUI React MCP ServerのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
HeroUI React MCP Serverを使ってこのタスクを手伝ってもらえますか?
HeroUI React MCP Server
はい、読みました。
HeroUI React MCP Serverで調べた結果をお伝えします。

よくある質問

HeroUI React MCP Server MCPサーバーは何に使いますか?

HeroUI React MCP Serverは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでHeroUI React MCP Server MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでHeroUI React MCP Serverを利用できます。

TypingMindでHeroUI React MCP Server MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。HeroUI React MCP Serverを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

HeroUI React MCP Server MCPをTypingMindに接続するにはどうすればよいですか?

HeroUI React MCP ServerはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでHeroUI React MCP Server MCPのどのようなツールを利用できますか?

HeroUI React MCP Serverは9個のMCPツールを提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

HeroUI React MCP Server MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。HeroUI React MCP Serverで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇