Λογότυπο HeroUI React MCP Server

HeroUI React MCP Server

Οργανισμός
heroui-inc

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

Εκδότηςheroui-inc
Αποθετήριοheroui-mcp
ΓλώσσαTypeScript
Forks
4
Αστέρια
60
Διαθέσιμα εργαλεία
9
Τύπος μεταφοράςstdio
Κατηγορίες
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Συνδέστε εργαλεία σε ροές εργασίας AI

    Το HeroUI React MCP Server παρέχει δυνατότητες MCP που μπορούν να χρησιμοποιηθούν από συμβατές εφαρμογές-πελάτες AI και πράκτορες AI.

  • 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 με πολλά μοντέλα AI

Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας. Έτσι, μόλις συνδεθεί το HeroUI React MCP Server, μπορείτε να το χρησιμοποιείτε με διαφορετικά μοντέλα AI στο TypingMind, αντί να το ρυθμίζετε ξεχωριστά για κάθε μοντέλο. Αυτή η ενσωμάτωση MCP εκτελείται τοπικά στη συσκευή σας μέσω του συνδέσμου MCP του TypingMind.

Οδηγός ρύθμισης για τη χρήση του τοπικού συνδέσμου

Επιλέξτε αυτή τη μέθοδο όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές ή ιδιωτικούς πόρους στον υπολογιστή σας.

1

Ανοίξτε τις ρυθμίσεις MCP

Στο TypingMind, μεταβείτε στις «Ρυθμίσεις», έπειτα στις «Σύνθετες ρυθμίσεις» και στο «Model Context Protocol» και επιλέξτε «Ρύθμιση συνδέσμου».

  1. Ανοίξτε το TypingMind στο πρόγραμμα περιήγησής σας.
  2. Κάντε κλικ στο εικονίδιο «Ρυθμίσεις».
  3. Μεταβείτε στις «Σύνθετες ρυθμίσεις».
  4. Ανοίξτε την ενότητα Model Context Protocol.
  5. Κάντε κλικ στην επιλογή «Ρύθμιση συνδέσμου» και επιλέξτε «Αυτή η συσκευή».
Οθόνη ρύθμισης συνδέσμου MCP του TypingMind με επιλεγμένη την επιλογή «Αυτή η συσκευή»
2

Εκτελέστε την εντολή του συνδέσμου

Επιλέξτε «Αυτή η συσκευή», αντιγράψτε την εντολή από το TypingMind και εκτελέστε την στο Τερματικό. Διατηρήστε τη διεργασία σε λειτουργία όσο χρησιμοποιείτε το MCP.

  1. Αντιγράψτε την εντολή ρύθμισης που εμφανίζεται στο TypingMind.
  2. Ανοίξτε το Τερματικό στο macOS ή το Windows Terminal στα Windows.
  3. Επικολλήστε και εκτελέστε την εντολή.
  4. Εγκρίνετε την εγκατάσταση του πακέτου, αν το Τερματικό σάς ζητήσει επιβεβαίωση για να συνεχίσει.
  5. Διατηρήστε ανοιχτό το παράθυρο του Τερματικού και τη διεργασία σε λειτουργία όσο χρησιμοποιείτε εργαλεία MCP.
3

Προσθέστε το HeroUI React MCP Server ως διακομιστή

Όταν η κατάσταση του συνδέσμου είναι «Έτοιμος», κάντε κλικ στο «Αλλαγή servers» και επικολλήστε τις ρυθμίσεις του διακομιστή MCP.

  1. Περιμένετε μέχρι η κατάσταση του συνδέσμου να εμφανιστεί ως «Έτοιμος».
  2. Κάντε κλικ στο «Αλλαγή servers».
  3. Επικολλήστε τις ρυθμίσεις του διακομιστή MCP HeroUI React MCP Server.
  4. Αποθηκεύστε τη λίστα διακομιστών.
  5. Κάντε ανανέωση αν θέλετε να επιβεβαιώσετε ότι ο σύνδεσμος παραμένει έτοιμος για χρήση.
Ρυθμίσεις MCP του TypingMind με ενεργό διακομιστή και το κουμπί «Αλλαγή servers»
{
  "mcpServers": {
    "heroui-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@heroui/react-mcp"
      ]
    }
  }
}
4

Χρησιμοποιήστε τη σύνδεση με διαφορετικά μοντέλα

Αποθηκεύστε τη λίστα διακομιστών, ανοίξτε τα «Πρόσθετα», ενεργοποιήστε τα εργαλεία MCP του HeroUI React MCP Server και έπειτα επιλέξτε οποιοδήποτε υποστηριζόμενο μοντέλο AI στο TypingMind. Χρησιμοποιήστε τα εργαλεία στη συνομιλία ή αναθέστε τα σε έναν πράκτορα AI.

  1. Ανοίξτε τη σελίδα «Πρόσθετα» στο TypingMind.
  2. Ενεργοποιήστε τα εργαλεία MCP του HeroUI React MCP Server.
  3. Ξεκινήστε μια συνομιλία και επιλέξτε το μοντέλο AI που θέλετε να χρησιμοποιήσετε.
  4. Χρησιμοποιήστε τα εργαλεία MCP στη συνομιλία ή αντιστοιχίστε τα σε έναν πράκτορα AI.
  5. Μεταβείτε σε άλλο μοντέλο AI όποτε χρειάζεται, χωρίς να συνδέσετε ξανά το MCP.
Συνομιλία στο TypingMind με ενεργοποιημένα εργαλεία MCP και επιλεγμένο μοντέλο AI
Θα με βοηθήσετε σε αυτό μέσω HeroUI React MCP Server;
HeroUI React MCP Server
Βεβαίως. Το διάβασα.
Δείτε τι βρήκα μέσω του HeroUI React MCP Server.

Συχνές ερωτήσεις

Σε τι χρησιμεύει ο διακομιστής MCP HeroUI React MCP Server;

Το HeroUI React MCP Server είναι ένας διακομιστής MCP που επιτρέπει σε συμβατές εφαρμογές AI να συνδέονται με εξωτερικά εργαλεία και πληροφορίες πλαισίου. Στο TypingMind, μπορείτε να προσθέσετε αυτόν τον διακομιστή MCP μία φορά και να κάνετε τα εργαλεία του διαθέσιμα στον χώρο εργασίας AI σας.

Μπορώ να χρησιμοποιήσω το HeroUI React MCP Server MCP με πολλά μοντέλα AI στο TypingMind;

Ναι. Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας, ώστε να μπορείτε να χρησιμοποιείτε το HeroUI React MCP Server με διαφορετικά μοντέλα AI, όπως τα Claude, ChatGPT, Gemini ή άλλα μοντέλα που έχετε ρυθμίσει στο TypingMind, χωρίς να ρυθμίζετε τον διακομιστή MCP ξεχωριστά για κάθε μοντέλο.

Γιατί να χρησιμοποιήσετε τον σύνδεσμο MCP HeroUI React MCP Server με το TypingMind;

Το TypingMind είναι ένα από τα καλύτερα περιβάλλοντα συνομιλίας με μεγάλα γλωσσικά μοντέλα, καθώς συγκεντρώνει πολλά μοντέλα AI, προτροπές, πρόσθετα, πράκτορες AI, κλειδιά API και εργαλεία MCP σε έναν χώρο εργασίας. Συνδέοντας το HeroUI React MCP Server, μπορείτε να χρησιμοποιείτε τα εργαλεία MCP του με τα μοντέλα που προτιμάτε, διατηρώντας οργανωμένη τη ροή εργασίας των συνομιλιών σας στο TypingMind.

Πώς συνδέω το HeroUI React MCP Server MCP στο TypingMind;

Το HeroUI React MCP Server λειτουργεί μέσω του τοπικού συνδέσμου MCP του TypingMind. Αυτή είναι η καλύτερη επιλογή όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές υπολογιστή, εργαλεία γραμμής εντολών ή ιδιωτικούς πόρους στον υπολογιστή σας.

Ποια εργαλεία παρέχει το HeroUI React MCP Server MCP στο TypingMind;

Το HeroUI React MCP Server διαθέτει 9 εργαλεία MCP που μπορείτε να ενεργοποιήσετε από τη σελίδα Πρόσθετα του TypingMind και να χρησιμοποιήσετε σε συνομιλίες ή να αναθέσετε σε πράκτορες AI.

Χρειάζεται να κοινοποιήσω τα κλειδιά API μου στο TypingMind για να χρησιμοποιήσω το HeroUI React MCP Server MCP;

Όχι. Το TypingMind δίνει προτεραιότητα στην τοπική λειτουργία και σας επιτρέπει να διατηρείτε τον έλεγχο των παρόχων μοντέλων, των κλειδιών API, των προτροπών και των ρυθμίσεων MCP σας. Αν το HeroUI React MCP Server απαιτεί έλεγχο ταυτότητας, προσθέστε τις απαιτούμενες κεφαλίδες, τις ρυθμίσεις OAuth ή τις τοπικές ρυθμίσεις για τον συγκεκριμένο διακομιστή MCP κατά τη δημιουργία της σύνδεσης.

Σχετικοί διακομιστές MCP

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇