Logo vun HeroUI React MCP Server

HeroUI React MCP Server

Organisatioun
heroui-inc

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

Editeurheroui-inc
Repositoryheroui-mcp
SproochTypeScript
Forks
4
Stären
60
Disponibel Tools
9
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    HeroUI React MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 9 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    60 Stären an 4 Forks aus dem verlinkte Repository.

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

Installatioun

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

Disponibel Tools

  • 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 mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal HeroUI React MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

HeroUI React MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu HeroUI React MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "heroui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@heroui/react-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu HeroUI React MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu HeroUI React MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat HeroUI React MCP Server?
HeroUI React MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat HeroUI React MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server HeroUI React MCP Server benotzt?

HeroUI React MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech HeroUI React MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir HeroUI React MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat HeroUI React MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann HeroUI React MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech HeroUI React MCP Server MCP mat TypingMind?

HeroUI React MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt HeroUI React MCP Server MCP an TypingMind zur Verfügung?

HeroUI React MCP Server stellt 9 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir HeroUI React MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann HeroUI React MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇