native-mcp

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

MCP server for HeroUI Native component documentation via Model Context Protocol

Access HeroUI Native component documentation directly in your AI assistant via Model Context Protocol (MCP). Or add manually to Cursor Settings → Features → MCP Servers: Or add the following to .mcp.json in your project root for a shared project configuration:

Summary extracted from the README.

HeroUI Native MCP Server

Access HeroUI Native component documentation directly in your AI assistant via Model Context Protocol (MCP).

Note: Currently supports heroui-native (React Native components). For @heroui/react (web components), use @heroui/react-mcp.

Features

  • Complete component documentation for HeroUI Native
  • Search and browse React Native components
  • Get props, types, and usage examples
  • Always up-to-date with latest versions
  • Ships the heroui-native skill over MCP, so supporting clients get the HeroUI Native playbook with no separate install

Configuration

Cursor

Add to Cursor

Or add manually to Cursor Settings → Features → MCP Servers:

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

Claude Code

Quick Install (CLI):

claude mcp add heroui-native -- npx -y @heroui/native-mcp@latest

Or add the following to .mcp.json in your project root for a shared project configuration:

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

For a user-wide configuration, run claude mcp add --scope user heroui-native -- npx -y @heroui/native-mcp@latest. Claude Code stores user and local scope configurations in ~/.claude.json; see the Claude Code MCP documentation.

Codex

Quick Install (CLI):

codex mcp add heroui-native -- npx -y @heroui/native-mcp@latest

Or manually add to your Codex configuration file:

macOS/Linux: ~/.codex/config.toml Windows: %USERPROFILE%\.codex\config.toml

[mcp_servers.heroui-native]
command = "npx"
args = ["-y", "@heroui/native-mcp@latest"]

For more configuration options, see the Codex MCP documentation.

Windsurf

Add to Windsurf configuration → MCP Servers:

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

VS Code

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "heroui-native": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@heroui/native-mcp@latest"]
    }
  }
}

For user-wide setup, use MCP: Add Server and select your user profile. See the VS Code MCP configuration reference.

Claude Desktop

Add to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

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

Usage

Once configured, you can ask your AI assistant questions like:

  • "Show me the HeroUI Native installation guide"
  • "Show me all HeroUI Native components"
  • "Get the complete documentation for the Button component"
  • "Show me examples of using the Card component in React Native"
  • "What are the theme variables?"
  • "Explain HeroUI Native's theming guide"

Available Tools

The MCP server provides these tools to AI assistants:

list_components

List all available HeroUI Native components (always returns latest version).

// No parameters required

get_component_docs

Get complete component documentation (including examples, props, usage) directly from heroui.com. This tool consolidates component information, props, and examples into a single call.

// Parameters
{
  components: ["Button"]  // Required - array of component names (case-sensitive)
}

// Examples
{
  components: ["Button"]  // Single component
}
{
  components: ["Button", "Card", "TextField"]  // Multiple components
}

Note: Always use list_components first to verify component names before calling this tool.

get_docs

Get HeroUI Native documentation content for guides, principles, and release notes (NOT component docs). Fetches official documentation from heroui.com.

// Parameters
{
  path: string  // Required - exact documentation path
}

// Examples
{
  path: "/docs/native/getting-started/theming"  // Get theming guide
}
{
  path: "/docs/native/getting-started/quick-start"  // Get installation guide
}

Note: For component documentation, use get_component_docs instead. All Native documentation paths start with /docs/native/ prefix.

get_theme_variables

Get HeroUI Native default theme variables and design tokens (actual variable values). Includes both light and dark mode variables for all categories.

Note: For theme documentation and guides, use get_docs({ path: "/docs/native/getting-started/theming" }) instead.

Skills

The server publishes the heroui-native skill through the Skills over MCP extension (io.modelcontextprotocol/skills). Clients that support it, such as Claude Code v2.1.331+ and Claude, load the skill only when it is needed. In Claude Code it appears as <server-name>:heroui-native, for example /heroui-native:heroui-native.

The skill is not bundled in this package. Its source is skills/heroui-native in the HeroUI repository. Every HeroUI Native docs deploy copies it to the API, and the server fetches it from /v1/skills at startup and checks for updates hourly, so a merged change reaches users without a new release of this package. Only SKILL.md, references and the license are served, not scripts/. If the API is unreachable, the server runs without skills. Clients without the extension ignore it and keep using the tools above.

Troubleshooting

MCP server not found

Ensure you have Node.js 22.22.0 or later installed. The package will be automatically downloaded when using npx.

Connection issues

If you're behind a corporate firewall, you may need to configure proxy settings or use a custom API URL.

Contributing

Contributions are always welcome! See ../../CONTRIBUTING.md for ways to get started.

Please adhere to our Code of Conduct.

Support

License

MIT