返回市场
MCP安装程序

MCP安装程序

作者:bbangjooo5 星标更新:2025-04-05

项目介绍

MCP Installer

smithery 徽章

简介

MCP Installer 提供以下工具:

  • find-mcp:从注册表中查找模型上下文协议(MCP)服务器
  • collect-config:收集用于连接到 MCP 服务器的配置信息
  • install-mcp:将 MCP 服务器安装到本地机器上

快速开始

先决条件

安装

你可以使用以下命令安装 MCP Installer:

npm install @bbangjo/mcp-installer
npx @bbangjo/mcp-installer --client <client-type> --key <your-smithery-api-key>

其中:

  • <client-type>:当前支持的客户端类型有 'cursor' 或 'claude'
  • <your-smithery-api-key>:输入你的 Smithery API 密钥

示例:

npx @bbangjo/mcp-installer --client cursor --key your_smithery_api_key_here

安装成功后,你会看到消息“✅ MCP 服务器已成功安装。”

注意:根据客户端类型的不同,配置文件将会创建在以下位置:

  • Cursor:

    • Windows:%APPDATA%\Cursor\mcp.json
    • macOS:~/.cursor/mcp.json
    • Linux:~/.config/Cursor/mcp.json
  • Claude:

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

本地设置

  1. 安装依赖项
npm install
  1. 设置环境变量 在项目根目录下创建一个 .env 文件,并添加以下内容:
SMITHERY_API_KEY=your_api_key_here
  1. 运行服务器:
npm run build
node build/index.js

当服务器成功启动时,它会显示消息“MCP Finder Server 正在 stdio 上运行”。