使用Smithery CLI工具的安装和使用流程如下:
- system requirements:首先确保系统已安装Node.js(版本14或以上)
- 安装CLI:在终端运行命令
npm install -g @smithery/cli
- Verify Installation: Run
smithery --version
Check Version - 浏览服务器:访问Smithery官网,按功能或平台筛选合适的MCP服务器
- 安装服务器示例:如需安装GitHub MCP服务器,运行命令
smithery install --server=github.com/smithery-ai/mcp-github --token=$MY_GITHUB_PAT
- Start the server:本地安装完成后,运行
smithery start
Starting services
对于安全考虑,建议将所有敏感信息(如API令牌)存储在环境变量中而非直接写入命令。
This answer comes from the articleSmithery: an MCP server registration platform that connects AI with toolsThe