一个强大且灵活的MCP(模型控制协议)服务器,旨在通过增强与Shadcn UI组件的开发体验。该服务器提供了一个坚实的基础,用于构建和管理具有高级工具和功能的UI组件。
<a href="https://glama.ai/mcp/servers/@heilgar/shadcn-ui-mcp-server"> <img width="380" height="200" src="https://gips0.baidu.com/it/u=2700225640,3069051901&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Shadcn UI Server MCP 服务器" /> </a>MCP服务器提供了一组可以通过模型控制协议使用的工具:
list-components: 获取可用的shadcn/ui组件列表get-component-docs: 获取特定组件的文档install-component: 安装shadcn/ui组件list-blocks: 获取可用的shadcn/ui块列表get-block-docs: 获取特定块的文档install-blocks: 安装shadcn/ui块组件管理
块管理
包管理器支持
要与Claude Desktop一起使用,请添加服务器配置:
在MacOS上:~/Library/Application Support/Claude/claude_desktop_config.json
在Windows上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"shadcn-ui-server": {
"command": "npx",
"args": ["@heilgar/shadcn-ui-mcp-server"]
}
}
}
将以下内容添加到你的 ./codeium/windsurf/model_config.json 中:
{
"mcpServers": {
"shadcn-ui-server": {
"command": "npx",
"args": ["@heilgar/shadcn-ui-mcp-server"]
}
}
}
将以下内容添加到你的 .cursor/mcp.json 中:
{
"mcpServers": {
"shadcn-ui-server": {
"command": "npx",
"args": ["@heilgar/shadcn-ui-mcp-server"]
}
}
}
npm install
npm run build
由于MCP服务器通过stdio进行通信,调试可能会很困难。我们推荐使用MCP Inspector进行调试:
npm run inspector
Inspector将提供一个URL,以便在浏览器中访问调试工具,允许你:
该项目使用以下工具和库构建:
MIT许可证 - 欢迎根据自己的目的使用此项目。
欢迎贡献!请随意提交Pull Request。