CR

ceorkm/reactbits-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

73 stars 20 forks 质量 71 趋势 0MIT

ceorkm/reactbits-mcp-server 是从 https://github.com/ceorkm/reactbits-mcp-server. 导入的 MCP 服务器候选

概览

ceorkm/reactbits-mcp-server 是从 https://github.com/ceorkm/reactbits-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,为AI助手提供访问 ReactBits.dev 组件——一组135+动画React组件,供创意开发者使用。

⚠️ 重要提示:部分 ReactBits 组件(按钮、表单、加载器)目前实现不完整。请参见下方组件质量状态。

特色

  • 🎨 组件发现:浏览并搜索所有ReactBits组件
  • 🔍 智能搜索:按名称、类别或描述查找组件
  • 💅 样式选项:访问组件的CSS和Tailwind版本
  • 📁 分类导航:按类别(动画、背景、按钮等)筛选组件
  • 🚀 快速性能:内置缓存以实现最佳响应时间
  • 📝 演示生成:获取任何组件的使用示例和演示代码

安装

来自源头

配置

克劳德桌面

添加到你的Claude桌面配置中:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json Linux:~/.config/Claude/claude_desktop_config.json

VS 代码(带 Continue 扩展)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

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

# 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

# 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

{
  "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:

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

Cursor

Add to your Cursor settings or .cursorrules:

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

Quick Start

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

在 GitHub 查看完整 README

安装

npx reactbits-dev-mcp-server
新手?先看 mcpskill.org 教程 →

配置

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