HeroUI MCP MonorepoBLOCK
⚙️ MCP servers for HeroUI React v3 and HeroUI Native.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Model Context Protocol (MCP) servers for the HeroUI design system. Access HeroUI component documentation directly in your AI assistant.
MCPs
Quick Start
Installation
Choose your package based on your platform:
For Web (React/Next.js):
# Cursor, Claude Code, Windsurf, etc. npx -y @heroui/react-mcp@latest
For React Native:
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
# 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:
pnpm build # Build all packages pnpm build:react # Build React MCP only pnpm build:native # Build Native MCP only
Development Servers:
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
41e58a09a78cOBSERVED · 2026-10-12Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add mastra --env ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} --env AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} --env AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} --env GITHUB_TOKEN=${GITHUB_TOKEN} -- npx -y @heroui/[email protected]{
"mcpServers": {
"mastra": {
"command": "npx",
"args": [
"-y",
"@heroui/[email protected]"
],
"env": {
"ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
"AWS_ACCESS_KEY_ID": "${AWS_ACCESS_KEY_ID}",
"AWS_SECRET_ACCESS_KEY": "${AWS_SECRET_ACCESS_KEY}",
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}Exposed tools (9)
7 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
Button | read | A pressable element that triggers an action. |
Card | read | A surface that groups related content. |
Checkbox | read | A control that toggles between checked and unchecked. |
Tabs | write | A set of layered sections of content. |
analyze-and-plan | write | Analyze the project to identify all HeroUI v2 components and create a migration plan. Supports both full and incremental migration approaches. This is the first step in migration. |
get_component_docs | read | Get complete HeroUI Native 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 |
heroui-button | read | Root element of the button. |
implement-migration | read | Implement HeroUI v2 to v3 component migrations. Supports both full and incremental migration approaches. Use this to migrate components phase by phase with checkpoints for user approval. |
migrationType | read | Migration approach: |
Trust audit
BLOCKgrade D · trust 64/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (5 observation(s))
- Network
- declared (5 observation(s))
- Shell
- declared (5 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (16)
exec(server, {name, description, config}) {exec(server, {name, description, config}) {exec(server, {name, description, config}) {exec(server, {name, description, config}) {exec(server, {name, description, config}) {.bumprc
import packageJson from "../../../package.json";
import type {ToolConfig} from "../../mcp/types";import {initializePrompts} from "../../mcp/prompts";import {initializeTools} from "../../mcp/tools";import packageJson from "../../../package.json";
@hono/mcp, @modelcontextprotocol/sdk, hono, posthog-node, zod, @cloudflare/workers-types, @types/node, dotenv-cli
@aws-sdk/client-s3, @modelcontextprotocol/sdk, @xmldom/xmldom, hono, posthog-node, zod, @cloudflare/vitest-pool-workers, @cloudflare/workers-types
@aws-sdk/client-s3, @hono/zod-validator, @modelcontextprotocol/sdk, @xmldom/xmldom, hono, posthog-node, zod, @cloudflare/vitest-pool-workers
@types/node, prettier, tsup, turbo, typescript
@types/node, eslint, tsup, typescript
Gates applied: no_behavioural_pass.
41e58a09a78cfull audit observations/trust-audit/mcp-server/heroui-inc__heroui-mcp.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-12 | 41e58a09a78c | BLOCK | D | 64 | first audit |
Questions
What is the @heroui/react-mcp MCP server?
⚙️ MCP servers for HeroUI React v3 and HeroUI Native.
What tools does @heroui/react-mcp expose?
9 in total: 7 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is @heroui/react-mcp safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (64/100) and found 5 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does @heroui/react-mcp need?
It reads ANTHROPIC_API_KEY, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, HEROUI_API_KEY, OPENAI_API_KEY, R2_ACCESS_KEY_ID and R2_SECRET_ACCESS_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does @heroui/react-mcp run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as @heroui/mastra at 1.0.0.
How current is this page?
The grade is for one exact copy of the source (41e58a09a78c), read on 2026-10-12. The repository is watched and re-audited when it changes.