使用说明
MCP经理
一个统一的 MCP (Model Context Protocol) 服务器管理工具,支持多种 AI 编程助手工具。
一个通用的CLI工具,用于跨多个AI编码助手管理模型上下文协议(MCP)服务器。
✨ 特性
- 🔍 智能搜索:支持中文/英文的自然语言搜索
- 🎯 多目标支持:光标、克劳德代码、克劳德桌面、Cline、风帆、Trae
- 📦 简易安装:服务器配置的交互式向导
- 🔧 灵活的范围:本地、项目或全局配置
- 🚀 内置注册表:预配置的流行MCP服务器
- 💻 跨平台:适用于macOS、Windows和Linux
📥 安装
npm install -g mcp-manager
或者直接与npx一起使用:
npx mcp-manager install github
🚀 用法
搜索MCP服务器
使用自然语言搜索服务器(支持中文和英文):
# Search with natural language
mcp search "我想控制git项目"
mcp search "database management"
# Use short alias
mcp s "git"
# Search and install to specific target
mcp search "filesystem" --target cursor
# Search and install to specific scope
mcp search "git" --scope project
搜索命令将:
- 根据您的查询查找匹配的服务器
- 显示按相关性排序的结果
- 让您交互式地选择和安装服务器
支持的目标应用程序
使用 mcp targets 列出所有支持的应用程序:
mcp targets
支持的目标:
- 光标:光标IDE
- 克劳德密码:克劳德代码CLI
- 克劳德桌面:克劳德桌面应用程序
- 克莱恩:Cline(VS代码扩展)
- 帆板运动:Windsurf IDE
- 带来:带来IDE
安装MCP服务器
使用安装到特定应用程序 -t/--target:
# Install GitHub MCP server to Cursor
mcp install github --target cursor
# Install to Claude Desktop
mcp install github --target claude-desktop
# Install to Windsurf
mcp install github --target windsurf
# Install to Cline (VS Code extension)
mcp install github --target cline
无目标安装(使用默认的基于作用域的路径):
mcp install github
mcp install github --scope project
mcp install github --scope global
提供自定义配置:
mcp install github --target cursor --config '{"url":"https://api.githubcopilot.com/mcp/","apiKey":"your-token"}'
列出已安装的服务器
列出特定应用程序的服务器:
mcp list --target cursor
mcp list --target claude-desktop
列出所有作用域中的所有服务器:
mcp list
mcp list --scope local
mcp list --scope project
mcp list --scope global
删除服务器
从特定应用程序中删除:
mcp remove github --target cursor
mcp remove github --target windsurf
从基于范围的配置中删除:
mcp remove github
mcp remove github --scope project
管理配置
显示配置:
# Show for specific target
mcp config show --target cursor
# Show for scope
mcp config show --scope global
重置配置:
# Reset for specific target
mcp config reset --target cursor
# Reset for scope
mcp config reset --scope project
📦 可用服务器
- GitHub:用于存储库管理的官方GitHub MCP服务器
- 文件系统:本地文件系统访问
- 版本控制系统:Git存储库操作
- Postgres:PostgreSQL数据库访问
- 勇敢:Brave Search API集成
- 记忆:持久记忆/知识图
🎯 目标配置路径
该工具会自动检测并使用每个目标的正确配置路径:
| 目标 | 路径(macOS/Linux) | 路径(Windows) |
|---|---|---|
| 光标 | ~/.cursor/mcp.json |
~/.cursor/mcp.json |
| 克劳德代码 | ~/.claude.json |
~/.claude.json |
| 克劳德桌面 | ~/Library/Application Support/Claude/claude_desktop_config.json |
%APPDATA%/Claude/claude_desktop_config.json |
| 克莱恩 | ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json |
%APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json |
| 风帆冲浪 | ~/.codeium/windsurf/mcp_config.json |
~/.codeium/windsurf/mcp_config.json |
| 带来 | ~/.trae/mcp_config.json |
~/.trae/mcp_config.json |
📖 配置范围(无--target)
- 本地:项目特定,存储在
.mcp/config.json(私人给你) - 项目:与团队共享,存储在
.mcp.json在项目根 - 全球的:用户范围,存储在
~/.mcp/config.json
🛠️ 发展
构建项目:
npm run build
在开发模式下运行:
npm run dev install github --target cursor
运行测试:
npm test
📝 例子
# Search for servers using natural language
mcp search "我想控制git项目"
mcp s "database"
# Install GitHub server to Cursor
mcp install github --target cursor
# Install filesystem server to Claude Desktop
mcp install filesystem --target claude-desktop
# List all servers in Windsurf
mcp list --target windsurf
# Remove a server from Cline
mcp remove github --target cline
# Show configuration for Claude Code
mcp config show --target claude-code
🤝 贡献
欢迎投稿!请随时提交拉取请求。
📄 许可证
麻省理工学院
