react-mcp

v1.2.0
@heroui/react-mcp Checked 4 hours ago Published 4 days ago

MCP server for HeroUI component documentation via Model Context Protocol

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_components

List all available components in HeroUI v3 - v2 components NOT supported. ⚠️ VERSION INFO: This returns v3 components only - NOT v2 components. Migration from v2 is available - visit https://heroui.com/docs/react/migration. If you need v2 components, visit https://v2.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. Example workflow: list_co…

get_component_docs

Get complete component documentation (including examples, props, usage) directly from heroui.com. Accepts an array of component names and returns the full MDX documentation for each component. Returns raw markdown content from the component's .mdx file, which includes: - Import statements - Usage examples - Variants and sizes - Props documentation - Styling information - API Reference - And more This tool replaces get_component_info, get_component_props, and get_component_examples. Use this when you need complete component documentation in one call. Workflow: list_components → get_component…

ParameterTypeDescription
components *arrayArray of component names from list_components (case-sensitive). Examples: ["Button"], ["Card", "TextField"], ["Button", "Card", "Tabs"]. DO NOT guess names - always verify with list_components first.

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_docs. IMPORTANT: Do NOT copy this code directly - use the component via @heroui/react impor…

ParameterTypeDescription
components *arrayArray of component names from list_components. This shows internal implementation - use get_component_docs for usage 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 b…

ParameterTypeDescription
components *arrayArray of component names from list_components. These are BEM classes from @heroui/styles - not for use with React components.

get_theme_variables

Get HeroUI v3 default theme variables and design tokens (actual variable values). Includes both light and dark mode variables for all categories: - Colors: Color tokens (accent, success, danger, background, foreground) - Typography: Font sizes, weights, line heights - Spacing: Margin, padding, gap values - Borders: Border radius, widths, colors - Shadows: Box shadows and elevations - Animations: Durations, timing functions 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, -…

get_docs

Get HeroUI v3 React documentation content for guides, principles, and release notes (NOT component docs). Fetches official documentation from heroui.com. Returns the complete MDX content of documentation pages. Use for understanding concepts, design principles, implementation guides, and version history. Documentation covers: getting started, theming, colors, styling, animation, release notes. IMPORTANT: For component documentation, use get_component_docs instead. Example paths: /docs/react/getting-started/theming, /docs/react/releases/v3-0-0-rc-1. All React documentation paths start with /doc…

ParameterTypeDescription
path *stringThe documentation path to fetch. DO NOT guess paths - use one of the available paths from the enum. NOTE: For component docs, use get_component_docs instead. NOTE: Paths containing /native/ are for He…