ReactBits
STDIOMCP server providing access to 135+ animated React components from ReactBits.dev collection
MCP server providing access to 135+ animated React components from ReactBits.dev collection
A Model Context Protocol (MCP) server that provides AI assistants with access to ReactBits.dev components - a collection of 135+ animated React components for creative developers.
⚠️ Important Note: Some ReactBits components (buttons, forms, loaders) currently have incomplete implementations. See Component Quality Status below.
# Install globally npm install -g reactbits-dev-mcp-server # Or run directly with npx (no installation required) npx reactbits-dev-mcp-server # Or install as a dependency npm install reactbits-dev-mcp-server
# Clone the repository git clone https://github.com/yourusername/reactbits-mcp-server cd reactbits-mcp-server # Install dependencies npm install # Build the project npm run build # Run the server npm start
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{ "mcpServers": { "reactbits": { "command": "npx", "args": ["reactbits-dev-mcp-server"], "env": { "GITHUB_TOKEN": "your_github_token_here" } } } }
Add to your VS Code settings:
{ "continue.server": { "mcpServers": { "reactbits": { "command": "npx", "args": ["reactbits-dev-mcp-server"] } } } }
Add to your Cursor settings or .cursorrules:
{ "mcpServers": { "reactbits": { "command": "npx", "args": ["reactbits-dev-mcp-server"], "env": { "GITHUB_TOKEN": "your_github_token_here" } } } }
# Clone and install git clone https://github.com/yourusername/reactbits-mcp-server cd reactbits-mcp-server npm install # Build npm run build # Test locally node test-list-components.js
list_componentsList all available ReactBits components with optional filtering.
Parameters:
category (optional): Filter by category (e.g., "animations", "backgrounds", "buttons")style (optional): Filter by styling method ("css", "tailwind", "default")limit (optional): Maximum number of components to returnExample:
"List all animation components with Tailwind support"
get_componentGet the source code for a specific ReactBits component.
Parameters:
name (required): Name of the component (e.g., "splash-cursor", "pixel-card")style (optional): Preferred styling method ("css", "tailwind", "default")Example:
"Show me the source code for the splash cursor component"
search_componentsSearch for ReactBits components by name or description.
Parameters:
query (required): Search querycategory (optional): Filter by categorylimit (optional): Maximum number of resultsExample:
"Find all components related to cards"
get_component_demoGet usage example and demo code for a ReactBits component.
Parameters:
name (required): Name of the componentExample:
"Show me how to use the glow button component"
list_categoriesList all available component categories.
Example:
"What categories of components are available?"
Once configured, you can ask your AI assistant questions like:
ReactBits components are organized into the following categories:
reactbits-mcp-server/
├── src/
│   ├── index.ts           # Main server entry point
│   ├── services/
│   │   └── ReactBitsService.ts   # Component fetching logic
│   ├── types/
│   │   └── index.ts       # TypeScript type definitions
│   └── utils/
│       └── CacheManager.ts # Caching utility
├── dist/                  # Compiled output
├── package.json
├── tsconfig.json
└── README.md
# Install dependencies npm install # Build the project npm run build # Run in development mode npm run dev
# Run the MCP inspector for debugging npx @modelcontextprotocol/inspector
The server can work without a GitHub token but will be limited to 60 requests per hour. With a token, you get up to 5,000 requests per hour.
Create a GitHub personal access token at https://github.com/settings/tokens
Set it as an environment variable:
# Option 1: Export in your shell export GITHUB_TOKEN=your_token_here # Option 2: Create a .env file (copy from .env.example) cp .env.example .env # Edit .env and add your token # Option 3: Pass when running the server GITHUB_TOKEN=your_token_here npx reactbits-dev-mcp-server
⚠️ Security Note: Never commit your GitHub token to version control. Always use environment variables.
Based on comprehensive testing, here's the current quality status of ReactBits components:
The MCP server now includes dependency information for each component:
framer-motion: Text animations and interactive componentsgsap: Cursor animations and advanced interactionsthree.js / @react-three/fiber: 3D backgrounds and effectsogl: WebGL rendering (Aurora component)Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.