Claude-Code-MCP-Manager
by qdhenry·★ 24·综合分 40
用于管理Claude Code的MCP配置的bash脚本工具,支持添加、删除和自动加载功能。
概述
MCP Manager是一个功能全面的bash脚本,简化了为Claude Code管理模型上下文协议(MCP)配置的过程。它提供命令行界面来列出、添加、删除和管理MCP服务器,以及导入/导出功能用于配置共享。该脚本支持npx和环境变量两种类型的MCP服务器,并可以在启动Claude Code时自动加载配置。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要为 Claude Code 管理多个 MCP 服务器,并希望有一种简单的方法在配置之间切换而不需要每次手动设置时,选择此工具。
什么时候不要选它
如果您使用的是不支持 Claude Code MCP 实现的其他 AI 助手,或者您更喜欢基于 GUI 的配置工具,请不要选择此工具。
此 server 暴露的工具
从 README 抽取出 12 个工具initInitialize MCP configuration with sample MCPs
listList all configured MCPs
addAdd a new MCP configuration interactively
add-allAdd all MCPs to Claude configuration without prompts
removeRemove an MCP configuration
showShow details of a specific MCP configuration
exportExport MCP configurations to a file
importImport MCP configurations from a file
setup-autoSet up automatic loading of MCPs when starting Claude Code
helpShow help information for MCP Manager commands
rmRemove an MCP configuration (alias for remove)
lsList all configured MCPs (alias for list)
说明:These are CLI commands for the MCP Manager tool itself, not MCP server tools. The server appears to be a management utility for MCP configurations rather than an MCP server that exposes tools.
可对比工具
安装
安装
- 下载脚本:
curl -O https://raw.githubusercontent.com/qdhenry/Claude-Code-MCP-Manager/main/mcp-manager.sh- 使其可执行:
chmod +x mcp-manager.sh- 移动到PATH中的位置(可选):
sudo mv mcp-manager.sh /usr/local/bin/mcp-manager对于Claude Desktop配置,请确保在您的claude_desktop_config.json中正确配置MCP服务器:
{
"mcpServers": {
"supabase": {
"command": "npx",
"args": ["supabase/mcp-server-supabase@latest", "--access-token", "YOUR_TOKEN_HERE"]
},
"digitalocean": {
"command": "npx",
"args": ["-y", "@digitalocean/mcp"]
}
}
}FAQ
- 如何初始化示例MCPs?
- 运行`./mcp-manager.sh init`可以使用常见的MCP设置初始化,包括Supabase、DigitalOcean等。
- 如何设置MCP的自动加载?
- 运行`./mcp-manager.sh setup-auto`来配置自动加载。这将创建一个shell函数,在启动Claude Code时加载MCP。
Claude-Code-MCP-Manager 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。