by heroui-inc
Directly fetch HeroUI component documentation, usage examples, source code, and design tokens for both web (React) and React Native environments, enabling AI assistants and developers to browse up‑to‑date design system data.
HeroUI MCP supplies on‑demand component documentation, props definitions, example usage, and theme information for the HeroUI design system. Two separate servers serve the web (React) and native (React Native) packages, keeping the data synchronized with the latest releases.
Web (React/Next.js)
npx -y @heroui/react-mcp@latest
React Native
npx -y @heroui/native-mcp@latest
Run the appropriate command in a terminal; the server starts a local API (default ports 8787 for React and 8788 for Native). Integrate the endpoint in your AI assistant or tooling to query component metadata.
Q: Do I need to build the project before running the server?
A: No. The npx commands fetch pre‑built binaries and start the server directly.
Q: Which ports are used?
A: React MCP runs on http://localhost:8787; Native MCP runs on http://localhost:8788.
Q: How is the data kept up‑to‑date?
A: The servers pull the latest component metadata from the HeroUI monorepo during each release; you can also run pnpm extract:react or pnpm extract:native locally to regenerate data.
Q: Can I run both servers simultaneously? A: Yes – they listen on different ports and operate independently.
Q: Is there a way to customize environment variables? A: Only the extraction scripts require Cloudflare R2 and GitHub credentials; the runtime servers do not need additional env vars.
Model Context Protocol (MCP) servers for the HeroUI design system. Access HeroUI component documentation directly in your AI assistant.
| MCP | Description | Docs |
|---|---|---|
@heroui/react-mcp |
MCP server for web (@heroui/react) component docs, examples, and theme data |
README |
@heroui/native-mcp |
MCP server for React Native (@heroui/native) component docs, examples, and theme data |
README |
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.
# 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
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 # Mastra playground server (http://localhost:4111)
Testing & Inspection:
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:
pnpm extract:react # Extract React component data
pnpm extract:native # Extract Native component data
Code Quality:
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.
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.
Please log in to share your review and rating for this MCP.
Explore related MCPs that share similar capabilities and solve comparable challenges
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
{
"mcpServers": {
"react-mcp": {
"command": "npx",
"args": [
"-y",
"@heroui/react-mcp@latest"
],
"env": {}
},
"native-mcp": {
"command": "npx",
"args": [
"-y",
"@heroui/native-mcp@latest"
],
"env": {}
}
}
}claude mcp add react-mcp npx -y @heroui/react-mcp@latest