Skip to main content
Glama
React Bits MCP Server

React Bits MCP Server

by duolabstech
README.md
# React Bits MCP Server

šŸš€ **MCP Server for React Bits** - Access 99+ premium React components with animations, backgrounds, and UI elements through the Model Context Protocol.

## 🌟 Features

- **99+ Components**: Access to a comprehensive library of React components
- **4 Categories**: Animations, Backgrounds, Components, and Text Animations
- **MCP Protocol**: Seamless integration with MCP-compatible clients
- **TypeScript Support**: Full TypeScript definitions included
- **File-based**: No external dependencies or API keys required
- **Real-time**: Components are read directly from the file system

## šŸ“¦ Installation

### Via npm (Recommended)
```bash
npm install -g react-bits-mcp-server
```

### Via GitHub
```bash
git clone https://github.com/duolabstech/react-bits-mcp-server.git
cd react-bits-mcp-server
npm install
```

## šŸš€ Usage

### As a Global Package
```bash
react-bits-mcp
```

### With MCP Client
Add to your MCP client configuration:
```json
{
  "mcpServers": {
    "react-bits": {
      "command": "react-bits-mcp",
      "args": []
    }
  }
}
```
### If you're a Vibe Coder
Add to your assistent Cursor, Trae, Windsurf, VSCode:

```json
{
  "mcpServers": {
    "react-bits": {
      "command": "npx",
      "args": [
        "reactbits-mcp-server"
      ],
      "env": {
        "your-Github-Access-Token"
      }
    }
  }
}

```
## šŸ› ļø Available Tools

| Tool | Description |
|------|-------------|
| `list_components` | List all available components |
| `get_component` | Get source code for a specific component |
| `get_component_demo` | Get demo code for a component |
| `get_component_metadata` | Get component metadata and dependencies |
| `search_components` | Search components by name or category |

## šŸ“Š Component Categories

### šŸŽ¬ Animations (20 components)
- AnimatedContent, BlobCursor, ClickSpark, Crosshair, Cubes
- FadeContent, GlareHover, ImageTrail, Magnet, MagnetLines
- MetaBalls, MetallicPaint, Noise, PixelTrail, PixelTransition
- Ribbons, ShapeBlur, SplashCursor, StarBorder, StickerPeel, TargetCursor

### 🌈 Backgrounds (24 components)
- Aurora, Balatro, Ballpit, Beams, DarkVeil, Dither
- DotGrid, FaultyTerminal, Galaxy, GridDistortion, GridMotion
- Hyperspeed, Iridescence, LetterGlitch, LightRays, Lightning
- LiquidChrome, Orb, Particles, RippleGrid, Silk, Squares, Threads, Waves

### 🧩 Components (32 components)
- AnimatedList, BounceCards, CardSwap, Carousel, ChromaGrid
- CircularGallery, Counter, DecayCard, Dock, ElasticSlider
- FlowingMenu, FluidGlass, FlyingPosters, Folder, GlassIcons
- GlassSurface, GooeyNav, InfiniteMenu, InfiniteScroll, Lanyard
- MagicBento, Masonry, ModelViewer, PixelCard, ProfileCard
- RollingGallery, ScrollStack, SpotlightCard, Stack, Stepper, TiltedCard

### ✨ Text Animations (23 components)
- ASCIIText, BlurText, CircularText, CountUp, CurvedLoop
- DecryptedText, FallingText, FuzzyText, GlitchText, GradientText
- RotatingText, ScrambledText, ScrollFloat, ScrollReveal, ScrollVelocity
- ShinyText, SplitText, TextCursor, TextPressure, TextTrail
- TextType, TrueFocus, VariableProximity

## šŸ’” Example Usage

### List All Components
```javascript
// MCP call
{
  "method": "tools/call",
  "params": {
    "name": "list_components",
    "arguments": {}
  }
}
```

### Get a Specific Component
```javascript
// Get AnimatedList component
{
  "method": "tools/call",
  "params": {
    "name": "get_component",
    "arguments": {
      "componentName": "AnimatedList"
    }
  }
}
```

### Search Components
```javascript
// Search for card components
{
  "method": "tools/call",
  "params": {
    "name": "search_components",
    "arguments": {
      "query": "card",
      "category": "Components"
    }
  }
}
```

## šŸ”§ Development

### Prerequisites
- Node.js 18+
- npm or yarn

### Setup
```bash
git clone https://github.com/duolabstech/react-bits-mcp-server.git
cd react-bits-mcp-server
npm install
```

## šŸ“ License

MIT License - see [LICENSE](LICENSE) file for details.

## šŸ¤ Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

## šŸ› Issues

If you encounter any issues, please report them on [GitHub Issues](https://github.com/duolabstech/react-bits-mcp-server/issues).

## šŸ”— Links

- [React Bits Website](https://reactbits.dev)
- [MCP Protocol](https://modelcontextprotocol.io)
- [npm Package](https://www.npmjs.com/package/react-bits-mcp-server)

---

**Made with ā¤ļø by the Duo Creative Labs**