Enhanced MCP server for accessing ReactBits component library with GitHub API integration, advanced search, and comprehensive metadata - 107 components with real code access from DavidHDev/react-bits repository
npm install @rpironato/mcp-reactbits-serverbash
npm install -g @rpironato/mcp-reactbits-server
`
š§ Usage
$3
Add to your Claude Desktop MCP configuration (mcp.json):
`json
{
"servers": {
"ReactBits": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@rpironato/mcp-reactbits-server@latest"
]
}
}
}
`
$3
`bash
npx @rpironato/mcp-reactbits-server@latest
`
š ļø Available Tools
$3
List all ReactBits components with comprehensive metadata.
Parameters:
- category (optional): Filter by category
- limit (optional): Maximum components (1-107, default: 107)
- offset (optional): Pagination offset
Returns: Complete component information with descriptions, keywords, dependencies, and versions.
$3
Retrieve real component source code with metadata.
Parameters:
- name (required): Component name
- version (required): js | js-tailwind | ts | ts-tailwind
Returns: Real code + metadata, CLI commands, dependencies, examples
$3
Intelligent search with strategic keywords.
Parameters:
- search (required): Search term (button, menu, card, animation, etc.)
- category (optional): Filter by category
- limit (optional): Maximum results (default: 10)
Returns: Matching components with relevance ranking.
$3
List categories with component counts and details.
Parameters:
- includeComponents (optional): Include component lists (default: false)
Returns: All 4 categories with counts and descriptions.
$3
Generate installation commands with dependencies.
Parameters:
- name (required): Component name
- version (required): Component version
- package_manager (optional): npm | yarn | pnpm | bun
Returns: Complete installation guide with commands and usage examples.
$3
Comprehensive library statistics and analytics.
Parameters:
- includeReport (optional): Include markdown report (default: false)
- includeDependencies (optional): Include dependency stats (default: true)
- includeKeywords (optional): Include keyword analysis (default: true)
Returns: Complete library analytics, dependency usage, popular keywords.
$3
Advanced search with multiple filters.
Parameters:
- query (optional): Search term
- category (optional): Filter by category
- dependencies (optional): Filter by dependencies
- keywords (optional): Filter by keywords
- sortBy (optional): name | category | relevance
- limit (optional): Maximum results (default: 10)
Returns: Filtered and sorted component results.
$3
Comprehensive component documentation.
Parameters:
- name (required): Component name or URL slug
- includeRelated (optional): Include related components (default: true)
Returns: Complete documentation with examples, props, styling, accessibility guidelines.
š ReactBits Library Stats
- Total Components: 107
- Total Implementations: 428 (4 variants each)
- Categories: 4
- Dependencies Supported: React, Framer Motion, Three.js, GSAP, Tailwind CSS
- Package: @rpironato/react-components
$3
| Category | Count | Description |
|----------|-------|-------------|
| TextAnimations | 23 | Animated text effects and typography |
| Animations | 23 | General animation components and effects |
| Components | 34 | UI components, widgets, and interfaces |
| Backgrounds | 27 | Background effects, patterns, and visuals |
š What's New in v2.0.0
$3
- Fixed Search: search_components now returns results for common terms like "button"
- Real Code: get_component_code returns actual component source code
- Complete Database: All 107 ReactBits components with real metadata
$3
- Advanced Search: Multi-filter search with dependencies, keywords, categories
- Statistics & Analytics: Comprehensive library insights and trends
- Component Documentation: Auto-generated docs with examples and guidelines
- Enhanced CLI: jsrepo integration with multi-package-manager support
$3
- TypeScript: Complete type safety and validation
- Performance: Optimized search algorithms and caching
- Error Handling: Robust error handling with fallback systems
- Code Quality: 100% documented with inline comments
š ļø Development
`bash
Clone repository
git clone https://github.com/rpironato/mcp-reactbits-server.git
cd mcp-reactbits-server
Install dependencies
npm install
Build
npm run build
Run development mode
npm run dev
Run tests
npm test
Lint code
npm run lint
`
š Requirements
- Node.js: >= 18.0.0
- npm: >= 8.0.0
- TypeScript: >= 5.0.0
š¤ Contributing
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
1. Fork the repository
2. Create your feature branch (git checkout -b feature/amazing-feature)
3. Commit your changes (git commit -m 'Add amazing feature')
4. Push to the branch (git push origin feature/amazing-feature`)