HeroUI React MCP Server logo

HeroUI React MCP Server

Organization
heroui-inc

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

Publisherheroui-inc
Repositoryheroui-mcp
LanguageTypeScript
Forks
4
Stars
60
Available tools
9
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    HeroUI React MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 9 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    60 stars and 4 forks from the linked 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

Installation

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

Available 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.

Use HeroUI React MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once HeroUI React MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add HeroUI React MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the HeroUI React MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "heroui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@heroui/react-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the HeroUI React MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the HeroUI React MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use HeroUI React MCP Server to help me with this task?
HeroUI React MCP Server
Sure. I read it.
Here is what I found using HeroUI React MCP Server.

Frequently asked questions

What is the HeroUI React MCP Server MCP server used for?

HeroUI React MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use HeroUI React MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use HeroUI React MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use HeroUI React MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With HeroUI React MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect HeroUI React MCP Server MCP to TypingMind?

HeroUI React MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does HeroUI React MCP Server MCP provide in TypingMind?

HeroUI React MCP Server exposes 9 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use HeroUI React MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If HeroUI React MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇