Skip to main content
Glama
dmjacas
by dmjacas

heroui-v2-mcp

HeroUI v2 (https://v2.heroui.com) のコンポーネントドキュメント、ソースコード、スタイル定義、テーマトークンのための MCP (Model Context Protocol) サーバーです。

公式の @heroui/react-mcp が対象としているのは HeroUI v3 であり、その背後にデプロイ済みの Cloudflare Worker、R2 バケット、PostHog プロジェクトが必要なのとは異なり、これはスタンドアロンのローカルサーバーです。heroui-inc/heroui@main (v2.x を追跡するブランチ) と raw.githubusercontent.com から直接オンデマンドですべてを取得し、プロセスの生存期間中は結果をメモリにキャッシュします。クラウドアカウント、API デプロイ、抽出パイプラインは不要です。

なぜ別プロジェクトなのか

HeroUI v3 (ブランチ v3、サイト heroui.com) と v2 (ブランチ main、サイト v2.heroui.com) は、異なる互換性のないコンポーネントモデルです。パッケージレイアウトが異なり、v2 サイトには llms.txt がなく、docs フォルダ構造 (/docs/components/*/docs/react/*) も異なり、スタイリングアプローチ (packages/core/theme/src/components 配下の tailwind-variants ファイルと v3 が使用するもの) も異なります。公式 MCP は v2 ドキュメントの提供を明示的に拒否するため、このプロジェクトはそのツールサーフェスをミラーリングしつつ、v2 のデータソースを指し示しています。

Related MCP server: UI Toolkit MCP Server

ツール

ツール

目的

list_components

すべての v2 コンポーネントスラグを一覧表示します (v2.heroui.com/docs/components/<slug> に対応)

get_component_docs

説明、インストールコマンド、インポート、使用方法、プロパティ/API テーブルを取得します

get_component_source_code

packages/components/<pkg>/src から React/TypeScript ソースを取得します

get_component_source_styles

packages/core/theme/src/components から tailwind-variants スタイル定義を取得します

get_docs

一般的なガイド: インストール、フレームワーク、テーマ設定、CLI、HeroUIProvider など

get_theme_variables

デフォルトのセマンティックカラー + レイアウトトークンを取得します

インストールと実行

パッケージは npm に heroui-v2-mcp として公開されているため、使用するためにクローンやビルドの手順は必要ありません。

Claude Code / Claude Desktop / Cursor から使用する

MCP 設定に追加してください。npx がオンデマンドでダウンロードして実行します:

{
  "mcpServers": {
    "heroui-v2": {
      "command": "npx",
      "args": ["-y", "heroui-v2-mcp"]
    }
  }
}

または、グローバルにインストールしてバイナリを直接指定します:

npm install -g heroui-v2-mcp
{
  "mcpServers": {
    "heroui-v2": {
      "command": "heroui-v2-mcp"
    }
  }
}

ローカル開発 (ソースから)

npm install
npm run dev         # tsx --watch, runs src/server.ts directly (no build step)
npm run inspect      # launches @modelcontextprotocol/inspector against src/server.ts
npm run build        # emits dist/server.js

GitHub レート制限

ディレクトリ一覧は GitHub REST API 経由で取得されますが、認証なしの場合、これは1時間あたり60リクエストに制限されています。ファイルの内容 (raw.githubusercontent.com) はこの制限の対象外です。多くのコンポーネントを閲覧中に 403 エラーが発生した場合は、トークンを設定してください:

export GITHUB_TOKEN=ghp_xxx   # no scopes needed, just raises the rate limit to 5000/hr

データの解決方法

  • コンポーネントリスト = main ブランチの apps/docs/content/docs/components/*.mdx 配下のファイル。

  • ほとんどのドキュメントスラグは、packages/components/<slug> パッケージに 1:1 でマッピングされます。一部のドキュメントページは、別のパッケージにバンドルされているサブコンポーネントを文書化しています (例:textarea@heroui/input に含まれ、checkbox-group@heroui/checkbox に含まれます)。src/constants.tsCOMPONENT_PACKAGE_ALIASES を参照してください。

  • プロパティ/API テーブルは、各 .mdx ドキュメントページに埋め込まれた <APITable data={[...]} /> JSX リテラルから解析されます (その配列は JS リテラルとして評価されます。これは公式リポジトリからの静的データであり、任意/信頼できない入力ではありません)。

  • テーマトークンは packages/core/theme/src/colors/{semantic,common}.tsdefault-layout.ts から取得されます。

キャッシュ

すべての GitHub レスポンス (ファイル内容またはディレクトリ一覧) は、30 分間 (src/constants.tsCACHE_TTL_MS) メモリにキャッシュされます。より早く更新するには、プロセスを再起動してください。

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    A high-quality, open-source Model Context Protocol (MCP) server that bridges AI systems and HeroUI, enabling intelligent assistance for developers working with HeroUI components.
    10
    17
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Comprehensive MCP server for end-to-end UI development, offering tools to generate components, manage design tokens, audit accessibility, autofix issues, inspect live pages, compare screenshots, and more across multiple frameworks.
    17
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Local, free MCP server for brand logo search and shadcn/ui component search & source lookup, requiring no API keys or login.
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    A local MCP server that lets MCP clients inspect and edit the Figma document currently open in the Figma desktop app using a local bridge and development plugin.
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dmjacas/heroui-v2-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server