AgentStack
MCP unreviewed MIT Self-run

Heroui Mcp

mcp-t-hash06-heroui-mcp · by T-hash06

A Model Context Protocol (MCP) server providing AI agents with comprehensive HeroUI component library context, documentation, and intelligent development assistance

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add mcp-t-hash06-heroui-mcp

Open-source listing — not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures
  • high Pipes remote content directly into a shell (remote code execution).

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Reliability & compatibility

Not yet reviewed
0 installs to date
no reviews yet
stale · 1y ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Heroui Mcp? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

HeroUI MCP Server

[](https://www.npmjs.com/package/heroui-mcp) [](https://www.typescriptlang.org/) [](https://opensource.org/licenses/MIT)

A high-quality, open-source Model Context Protocol (MCP) server that provides AI agents with comprehensive context and tooling for the HeroUI component library. This server bridges AI systems and HeroUI, enabling intelligent assistance for developers working with HeroUI components.

🚀 Features

  • Component Discovery: List and explore all available HeroUI components
  • Documentation Access: Retrieve comprehensive component documentation and usage examples
  • API Reference: Access detailed component props, slots, and data attributes
  • Accessibility Information: Get accessibility guidelines and best practices for each component
  • Usage Patterns: Learn common implementation patterns and best practices
  • TypeScript Support: Full TypeScript support with comprehensive type definitions
  • Caching System: Efficient Git-based caching for fast documentation retrieval
  • RESTful API: Clean HTTP endpoints for easy integration

📋 Prerequisites

  • Node.js 18.0 or higher
  • pnpm (recommended) or npm
  • Git (for repository caching)
  • Bun (optional, recommended for faster development) or tsx for TypeScript execution

🛠️ Installation

From Source

  1. Clone the repository:

``bash git clone https://github.com/T-Hash06/heroui-mcp.git cd heroui-mcp ``

  1. Install dependencies:

``bash pnpm install ``

  1. Build the project:

``bash pnpm build ``

  1. Start the server:

``bash pnpm start ``

The server will start on http://localhost:3000 by default.

🎯 Quick Start

Basic Usage

Once the server is running, the best way to interact with it is through the MCP Inspector tool, which provides a user-friendly interface for exploring and testing MCP servers.

  1. Install the MCP Inspector:

``bash npx @modelcontextprotocol/inspector ``

  1. Connect to your server:
  • Open the MCP Inspector in your browser
  • Add your server URL: http://localhost:3000
  • Explore the available tools and resources interactively

Available Tools

The server provides the following MCP tools:

| Tool | Description | |------|-------------| | list_components | List all available HeroUI components | | get_component_docs | Get comprehensive documentation for a component | | get_component_api | Get API reference (props, methods, events) | | get_component_slots | Get slot information for a component | | get_component_data_attributes | Get data attributes for a component | | get_component_accessibility | Get accessibility information and guidelines | | get_component_usage | Get usage examples and patterns |

Example: Exploring Components

Using the MCP Inspector, you can:

  1. Browse available tools - See all component-related tools in a visual interface
  2. Test tools interactively - Run tools like list_components or get_component_docs with real-time results
  3. Explore component data - Get detailed information about any HeroUI component
  4. View formatted output - See documentation and API information in a readable format

The MCP Inspector provides the best experience for exploring the server's capabilities without needing to write code or use command-line tools.

🏗️ Development

Development Setup

  1. Install dependencies:

``bash pnpm install ``

  1. Start development server (choose one option):

Option A: Using Bun (recommended for faster startup) ```bash # Install Bun if you don't have it curl -fsSL https://bun.sh/install | bash

# Start development server pnpm dev ```

Option B: Using tsx (if you prefer Node.js) ```bash # Install tsx globally or use npx npm install -g tsx

# Run directly with tsx npx tsx src/index.ts ```

  1. For production deployment:

```bash # Build the project pnpm build

# Start production server pnpm start ```

  1. Run tests:

``bash pnpm test ``

  1. Format code:

``bash pnpm format ``

  1. Check code quality:

``bash pnpm check ``

Project Structure

src/
├── app.ts                # Main application setup
├── index.ts              # Entry point
├── cache/                # Git caching system
├── config/               # Configuration management
├── http/                 # HTTP server and routes
├── resources/            # MCP resources
├── server/               # MCP server factory
├── tools/                # MCP tools implementation
│   └── components/       # HeroUI component tools
├── transport/            # Session management
├── types/                # TypeScript type definitions
└── utils/                # Utility functions

Available Scripts

| Script | Description | |--------|-------------| | pnpm dev | Start development server with Bun (fast TypeScript execution) | | pnpm build | Build the project for production (TypeScript compilation) | | pnpm start | Start the production server (requires build first) | | pnpm test | Run tests in watch mode | | pnpm test:run | Run tests once | | pnpm test:coverage | Run tests with coverage report | | pnpm check | Run all quality checks (lint, type-check, test) | | pnpm format | Format code with Biome | | pnpm lint | Lint code with Biome |

Development vs Production

  • Development: Use pnpm dev (Bun) or npx tsx src/index.ts for fast TypeScript execution
  • Production: Use pnpm build then pnpm start for optimized compiled JavaScript

🔧 Configuration

The server can be configured through environment variables or configuration files:

Environment Variables

# Server configuration
PORT=3000
HOST=localhost

# Cache configuration
CACHE_DIR=./cache
REPO_URL=https://github.com/heroui-inc/heroui.git
BRANCH=main

Configuration Files

  • src/config/server.config.ts - Server configuration
  • src/config/cache.config.ts - Cache configuration

🧪 Testing

The project uses Vitest for testing:

# Run all tests
pnpm test

# Run tests once
pnpm test:run

# Run tests with coverage
pnpm test:coverage

# Run specific test file
pnpm test src/tools/components/list-components.test.ts

🤝 Contributing

Quick Contribution Guide

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes
  4. Run quality checks: pnpm check
  5. Commit your changes: git commit -m 'Add amazing feature'
  6. Push to the branch: git push origin feature/amazing-feature
  7. Open a Pull Request

Development Standards

  • Follow Conventional Commits
  • Maintain TypeScript strict mode compliance
  • Write tests for new functionality
  • Ensure all quality checks pass (pnpm check)
  • Document new features and APIs

🐞 Troubleshooting

Common Issues

Server won't start

  • Check if the port is already in use
  • Verify Node.js version (18.0+ required)
  • Ensure all dependencies are installed

Cache initialization fails

  • Check internet connection for Git repository access
  • Verify Git is installed and accessible
  • Check repository URL and branch configuration

Tool execution errors

  • Ensure the HeroUI repository cache is initialized
  • Check component name spelling and case sensitivity
  • Verify the requested component exists in the documentation

Debug Mode

Enable debug logging:

NODE_ENV=development pnpm dev

📄 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

🙏 Acknowledgments

🔗 Links


Made with ❤️ for the HeroUI community

HeroUI • MCP • GitHub

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.