MCP Magic UI 服务器

MCP Magic UI 服务器

用于访问和搜索 Magic UI 组件的 MCP(模型上下文协议)服务器。

快速入门

安装

  1. 克隆仓库: git clone https://github.com/idcdev/mcp-magic-ui.git cd mcp-magic-ui
  2. 安装依赖: npm install
  3. 构建项目: npm run build

配置

为避免 GitHub API 速率限制,创建 .env 文件并添加 GitHub Token:

GITHUB_TOKEN=your_github_token_here

使用

  • 启动服务:
    • 默认(stdio 模式):npm start
    • HTTP 模式:TRANSPORT_TYPE=http npm start
  • 连接客户端: npx @modelcontextprotocol/inspector mcp-magic-ui 或 npx @modelcontextprotocol/inspector http://localhost:3000

更多工具与功能请参考 README。