MCP服务器安装工具

MCP Installer是一个用于查找、配置和安装Model Context Protocol (MCP)服务器的工具,支持Cursor和Claude客户端。

  • by bbangjooo
  • TypeScript
  • 本地部署
  • 5 星标
  • 更新于
在 GitHub 查看 bbangjooo/mcp-installer

使用说明

MCP安装程序

引言

MCP安装程序提供以下工具

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

入门指南

先决条件

  • Node.js(v14.0.0或更高版本)
  • npm或纱线
  • 史密斯_ API_键(https://smithery.ai/)

安装

您可以使用以下命令安装MCP安装程序:

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服务器安装成功。"

备注:根据客户端类型,配置文件将在以下位置创建:

  • 光标:

    • 窗户: %APPDATA%\Cursor\mcp.json
    • macOS: ~/.cursor/mcp.json
    • Linux: ~/.config/Cursor/mcp.json
  • 克劳德:

    • 窗户: %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上运行”。