react-design-systems-mcp

react-design-systems-mcp

Provides component information, usage guidelines, and code generation for AWS Cloudscape Design System in React, with search and pattern library capabilities.

Category
访问服务器

README

React Design Systems

npm version

React Design Systems is a Model Context Protocol (MCP) server that provides comprehensive information about design systems created for React. The current version focuses exclusively on the AWS Cloudscape Design System components, along with code generation capabilities. It's built using the FastMCP framework and TypeScript.

Future versions will expand to support additional popular React design systems including Material UI, Chakra UI, Ant Design, Blueprint, and Mantine.

Change Log

See CHANGELOG.md

Features

Component Information & Search

  • Search for Cloudscape components with advanced filtering options
  • Get detailed information about components including properties, events, and functions
  • Access component usage guidelines and best practices
  • Search across component usage guidelines by content, section, or specific component
  • Get component examples with detailed code snippets
  • Compare components and their capabilities

Code Generation

  • Generate code for components with customization options
  • Generate code for common UI patterns and layouts
  • Generate multi-component layouts and compositions
  • Validate component props and configurations

Advanced Functionality

  • Usage Guidelines: Comprehensive access to component usage guidelines with hybrid resource/tool approach
    • Direct access via cloudscape://usage/{componentId} resource URIs
    • Advanced search capabilities across all usage content
    • Section-specific filtering (Features, General guidelines, etc.)
    • Cross-component content search
  • Events & Functions: Search and explore component events and function APIs
  • Pattern Library: Access to design patterns and architectural guidance
  • Setup Instructions: Get frontend-code mode setup and configuration guidance

Requirements

  • Node.js: 24.0.1 or higher
  • npm: 10.x or higher (comes with Node.js 24.0.1)

Installation

For Usage as a Dependency

# Install from npm
npm install @agentience/react-design-systems-mcp

Global Installation

# Install globally to use as a CLI tool
npm install -g @agentience/react-design-systems-mcp

# Then you can run it directly
react-design-systems-mcp

Claude Desktop Configuration

To use React Design Systems with Claude Desktop, you can configure it as an MCP server using the npm package. This allows Claude Desktop to automatically launch the server when needed.

Configuration File

Add the following configuration to your Claude Desktop MCP settings file:

Location:

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

Configuration:

{
  "mcpServers": {
    "react-design-systems": {
      "command": "npx",
      "args": [
        "@agentience/react-design-systems-mcp"
      ]
    }
  }
}

Command Line Parameters

The server supports the following command line parameters:

  • --transport <type> or -t <type>: Transport type (stdio or sse). Default: stdio
  • --port <number> or -p <number>: Port for SSE transport. Default: 3001
  • --bind <address> or -b <address>: Bind address for SSE transport. Default: 0.0.0.0

Using with Claude

For optimal results when using this MCP server with Claude, consider using a specialized system prompt. We provide an example system prompt that configures Claude as an expert Cloudscape developer with AWS Amplify Gen 2 knowledge. See Claude Cloudscape & Amplify Expert for details.

Advanced Configuration Examples

With Custom Parameters

{
  "mcpServers": {
    "react-design-systems": {
      "command": "npx",
      "args": [
        "@agentience/react-design-systems-mcp",
        "--transport",
        "stdio"
      ]
    }
  }
}

Using Local Installation

If you have the package installed globally or locally:

{
  "mcpServers": {
    "react-design-systems": {
      "command": "react-design-systems-mcp"
    }
  }
}

Development Configuration

For development with a local build:

{
  "mcpServers": {
    "react-design-systems": {
      "command": "node",
      "args": [
        "/path/to/react-design-systems-mcp/dist/server.js"
      ],
      "cwd": "/path/to/react-design-systems-mcp"
    }
  }
}

Verification

After adding the configuration:

  1. Restart Claude Desktop
  2. Start a new conversation
  3. The React Design Systems MCP server should be automatically available
  4. You can use tools like search_components to verify the connection

For troubleshooting connection issues, see the MCP Protocol Guide.

Docker Deployment

This project can be deployed using Docker. For detailed instructions, see Docker Deployment Guide.

Quick Start with Docker

# Pull the image from GitHub Container Registry
docker pull ghcr.io/agentience/react-design-systems-mcp:latest

# Run the container
docker run -d -p 3005:3005 --name react-design-systems-mcp ghcr.io/agentience/react-design-systems-mcp:latest

Using Docker Compose

# Clone the repository
git clone https://github.com/agentience/react-design-systems-mcp.git
cd react-design-systems-mcp

# Start with Docker Compose
docker-compose up -d

For information on building and publishing the Docker image to GitHub Container Registry, see Docker Publishing Guide.

FastMCP Implementation

This project uses the FastMCP framework for a more structured and type-safe approach to building MCP servers. For detailed information about the FastMCP implementation and development setup, see DEVELOPMENT.md.

Available Tools and Resources

MCP Tools

Component Information

  • search_components - Search for components with advanced filtering
  • get_component_details - Get detailed component information
  • get_component_properties - Get component properties and their specifications
  • get_component_events - Get component events and event handling information
  • get_component_functions - Get component functions and method APIs
  • get_component_examples - Get component examples with optional filtering by example ID

Usage Guidelines

  • get_component_usage - Get usage guidelines for a specific component with optional section filtering
  • search_usage_guidelines - Search across component usage guidelines with query, section, and component filters

Code Generation

  • generate_component_code - Generate code for components with customization
  • generate_pattern_code - Generate code for common UI patterns
  • validate_component_props - Validate component properties and configurations

Patterns and Search

  • search_patterns - Search through design patterns and architectural guidance
  • search_properties - Search for component properties across all components
  • search_events - Search for component events with filtering options
  • search_functions - Search for component functions and methods

Utility Tools

  • compare_components - Compare multiple components and their capabilities
  • generate_layout_code - Generate multi-component layouts
  • get_frontend_setup - Get setup instructions for frontend-code mode
  • get_link_resource - Resolve internal links from usage.md files to appropriate backend resources

MCP Resources

Component Usage Guidelines

  • cloudscape://usage/{componentId} - Direct access to component usage guidelines in markdown format

Example Usage

# Search for button-related components
search_components({"query": "button", "category": "actions"})

# Get detailed information about a specific component
get_component_details({"componentId": "button"})

# Access usage guidelines directly
Resource: cloudscape://usage/button

# Search across usage guidelines
search_usage_guidelines({"query": "primary button", "section": "Features"})

# Generate component code
generate_component_code({"componentId": "button", "variant": "primary"})

Documentation

System Prompts

Roadmap

React Design Systems currently supports the AWS Cloudscape Design System, but we plan to expand support to other popular React design systems in the future:

  • Material UI: Comprehensive support for Google's Material Design implementation for React
  • Chakra UI: Component-focused support for the accessible and customizable Chakra UI library
  • Ant Design: Enterprise-grade UI system for React applications
  • Blueprint: Support for Palantir's UI toolkit for web applications
  • Mantine: Modern React components with excellent dark mode support

If you're interested in contributing support for additional design systems, please check out our Contributing guidelines.

Using as a Dependency

When using this package as a dependency in your project, you can import and use it as follows:

// CommonJS
const { createReactDesignSystemsServer } = require('@agentience/react-design-systems-mcp');

// ES Modules
import { createReactDesignSystemsServer } from '@agentience/react-design-systems-mcp';

// Create and configure the server
const server = createReactDesignSystemsServer({
  // Configuration options
});

// Start the server
server.start();

Contributing

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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

MIT - See LICENSE for more information.## Available Documentation

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选