ReactBits logo

ReactBits

Community
ceorkm

MCP server providing access to 135+ animated React components from ReactBits.dev (9.2/10 test score)

Publisherceorkm
Repositoryreactbits-mcp-server
LanguageTypeScript
Forks
17
Stars
43
Available tools
5
Transport typestdio, streamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    ReactBits exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 5 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    43 stars and 17 forks from the linked repository.

ReactBits MCP Server

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.

Features

  • 🎨 Component Discovery: Browse and search through all ReactBits components
  • 🔍 Smart Search: Find components by name, category, or description
  • 💅 Style Options: Access both CSS and Tailwind versions of components
  • 📁 Category Navigation: Filter components by categories (animations, backgrounds, buttons, etc.)
  • 🚀 Fast Performance: Built-in caching for optimal response times
  • 📝 Demo Generation: Get usage examples and demo code for any component

Installation

bash
# 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

From Source

bash
# 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

Configuration

Claude Desktop

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

json
{
  "mcpServers": {
    "reactbits": {
      "command": "npx",
      "args": ["reactbits-dev-mcp-server"],
      "env": {
        "GITHUB_TOKEN": "your_github_token_here"
      }
    }
  }
}

VS Code (with Continue extension)

Add to your VS Code settings:

json
{
  "continue.server": {
    "mcpServers": {
      "reactbits": {
        "command": "npx",
        "args": ["reactbits-dev-mcp-server"]
      }
    }
  }
}

Cursor

Add to your Cursor settings or .cursorrules:

json
{
  "mcpServers": {
    "reactbits": {
      "command": "npx",
      "args": ["reactbits-dev-mcp-server"],
      "env": {
        "GITHUB_TOKEN": "your_github_token_here"
      }
    }
  }
}

Quick Start

bash
# 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

Available Tools

list_components

List 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 return

Example:

"List all animation components with Tailwind support"

get_component

Get 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_components

Search for ReactBits components by name or description.

Parameters:

  • query (required): Search query
  • category (optional): Filter by category
  • limit (optional): Maximum number of results

Example:

"Find all components related to cards"

get_component_demo

Get usage example and demo code for a ReactBits component.

Parameters:

  • name (required): Name of the component

Example:

"Show me how to use the glow button component"

list_categories

List all available component categories.

Example:

"What categories of components are available?"

Usage Examples

With AI Assistants

Once configured, you can ask your AI assistant questions like:

  • "Show me all the background animation components from ReactBits"
  • "I need a glowing button component - what's available?"
  • "How do I implement the particle background effect?"
  • "Find all text animation components that support Tailwind"
  • "Show me the code for the glass morphism card component"

Component Categories

ReactBits components are organized into the following categories:

  • Animations: Dynamic cursor effects and interactive animations
  • Backgrounds: Animated and static background patterns
  • Buttons: Interactive button components with various effects
  • Cards: Card components with hover effects and animations
  • Text Animations: Animated text effects and reveals
  • Components: General UI components and layouts
  • Navigation: Navigation menus and interfaces

Development

Project Structure

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

Building

bash
# Install dependencies
npm install

# Build the project
npm run build

# Run in development mode
npm run dev

Testing

bash
# Run the MCP inspector for debugging
npx @modelcontextprotocol/inspector

GitHub API Token (Optional but Recommended)

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.

Setting up a GitHub Token

  1. Create a GitHub personal access token at https://github.com/settings/tokens

    • Click "Generate new token (classic)"
    • No special scopes needed (public repository access only)
    • Copy the generated token
  2. Set it as an environment variable:

bash
# 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.

Component Quality Status

Based on comprehensive testing, here's the current quality status of ReactBits components:

✅ Excellent Quality (9.0-10/10)

  • Backgrounds (9.8/10): Aurora, Beams, Particles, etc. - Production-ready WebGL effects
  • Animations (9.5/10): BlobCursor, SplashCursor, Magnet, etc. - Professional animations
  • Text Animations (9.0/10): BlurText, CountUp, CircularText, etc. - Complete Framer Motion

⚠️ Incomplete Components (2.0/10)

  • Buttons: All 8 button components return placeholder code
  • Forms: All 3 form components are incomplete
  • Loaders: All 9 loader components are incomplete

📦 Dependencies

The MCP server now includes dependency information for each component:

  • framer-motion: Text animations and interactive components
  • gsap: Cursor animations and advanced interactions
  • three.js / @react-three/fiber: 3D backgrounds and effects
  • ogl: WebGL rendering (Aurora component)

Contributing

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.

  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)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • ReactBits.dev for the amazing component collection
  • Anthropic for the Model Context Protocol specification
  • The MCP community for inspiration and examples

Support

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "reactbits": {
      "command": "npx",
      "args": [
        "reactbits-dev-mcp-server"
      ]
    }
  }
}

Available Tools

  • list_components

    List all available ReactBits components with optional filtering

  • get_component

    Get the source code for a specific ReactBits component

  • search_components

    Search for ReactBits components by name or description

  • get_component_demo

    Get usage example and demo code for a ReactBits component

  • list_categories

    List all available component categories

Use ReactBits MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once ReactBits is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. You can run MCP locally on your device or connect to a remote MCP server URL.

Option 1: Use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add ReactBits as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the ReactBits MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "reactbits": {
      "command": "npx",
      "args": [
        "-y",
        "reactbits-dev-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the ReactBits MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the ReactBits MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use ReactBits to help me with this task?
ReactBits
Sure. I read it.
Here is what I found using ReactBits.

Option 2: Add an MCP server URL

Use this when ReactBits is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter your server URL in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste your server URL into the Server URL field.
  2. Enter a connection name for ReactBits.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the ReactBits connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the ReactBits tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the ReactBits tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use ReactBits to help me with this task?
ReactBits
Sure. I read it.
Here is what I found using ReactBits.

Frequently asked questions

What is the ReactBits MCP server used for?

ReactBits is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use ReactBits MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use ReactBits with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use ReactBits MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With ReactBits connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect ReactBits MCP to TypingMind?

ReactBits can be connected in TypingMind with the local MCP connector or by adding a remote MCP server URL. Use the local connector when the server needs access to files, apps, or private resources on your device, and use a server URL when the MCP server is hosted remotely.

What tools does ReactBits MCP provide in TypingMind?

ReactBits exposes 5 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use ReactBits MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If ReactBits requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇