Skip to main content
Glama

shadcn-ui MCP Server

by ymadd

shadcn-ui MCP 服务器

用于 shadcn/ui 组件引用的 MCP 服务器

这是一个基于 TypeScript 的 MCP 服务器,提供 shadcn/ui 组件的参考信息。它实现了一个模型上下文协议 (MCP) 服务器,帮助 AI 助手访问 shadcn/ui 组件的文档和示例。

特征

工具

  • list_shadcn_components - 获取所有可用 shadcn/ui 组件的列表

  • get_component_details - 获取特定组件的详细信息

  • get_component_examples - 获取特定组件的使用示例

  • search_components - 按关键字搜索组件

功能

该服务器从以下位置抓取并缓存信息:

它提供的结构化数据包括:

  • 组件描述

  • 安装说明

  • 使用示例

  • 道具和变体

  • 代码示例

发展

安装依赖项:

npm install

构建服务器:

npm run build

对于使用自动重建的开发:

npm run watch

安装

Claude桌面配置

要与 Claude Desktop 一起使用,请添加服务器配置:

在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json

选项 1:使用本地构建

{ "mcpServers": { "shadcn-ui-server": { "command": "/path/to/shadcn-ui-server/build/index.js" } } }

选项 2:使用 npx 命令

{ "mcpServers": { "shadcn-ui-server": { "command": "npx", "args": ["-y", "shadcn-ui-mcp-server"] } } }

风帆冲浪配置

将其添加到您的./codeium/windsurf/model_config.json

{ "mcpServers": { "shadcn-ui-server": { "command": "npx", "args": ["-y", "shadcn-ui-mcp-server"] } } }

游标配置

将其添加到您的.cursor/mcp.json中:

{ "mcpServers": { "shadcn-ui-server": { "command": "npx", "args": ["-y", "shadcn-ui-mcp-server"] } } }

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

帮助 AI 助手通过基于 TypeScript 的 MCP 服务器访问 shadcn/ui 组件文档和示例,该服务器提供组件详细信息、使用示例和搜索功能的参考信息。

  1. 特征
    1. 工具
    2. 功能
  2. 发展
    1. 安装
      1. Claude桌面配置
      2. 风帆冲浪配置
      3. 游标配置
      4. 调试

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      An MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context
      Last updated -
      35
      228
      MIT License
    • A
      security
      A
      license
      A
      quality
      A Model Control Protocol server that allows users to discover, install, and manage Shadcn UI components and blocks through natural language interactions in compatible AI tools.
      Last updated -
      6
      782
      12
      MIT License
      • Apple
    • A
      security
      A
      license
      A
      quality
      Provides reference information for shadcn/ui components through a Model Context Protocol server that helps AI assistants access component documentation and examples.
      Last updated -
      4
      401
      MIT License
      • Apple
    • A
      security
      A
      license
      A
      quality
      A mcp server to allow LLMS gain context about shadcn ui component structure,usage and installation
      Last updated -
      7
      1,776
      2,247
      MIT License

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/ymadd/shadcn-ui-mcp-server'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server