MCP.so
登录

Claude MCP Config Switcher

@BLTGV

基本信息

分类

AI 与智能体

传输方式

stdio

作者

BLTGV

关于 Claude MCP Config Switcher

Script to easily switch between Claude MCP server configurations on macOS.

#claude-mcp#config-switcher#macos-tool

Claude MCP Config Switcher 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

Claude MCP Config Switcher 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Claude MCP Config Switcher?

A command-line tool for macOS that quickly switches between different mcpServers configurations for the Claude desktop application. It lets you define multiple named profiles (e.g., “default”, “staging”, “dev”) and swap the active MCP server block in Claude’s config file without manual editing, then automatically restarts Claude to apply the changes.

How to use Claude MCP Config Switcher?

Install via the quick install command (curl -fsSL … | sh -s -- --install) or manually by running the setup.sh --install script. After installation, create .json profile files in ~/.config/claude/ containing an mcpServers key. Use the command claude-mcp-switch <profile> (or claude-mcp-switch to default to “default”) to switch, claude-mcp-switch -l to list available profiles, and claude-mcp-switch last to revert to the previous configuration.

Key features of Claude MCP Config Switcher

  • macOS command-line tool for switching Claude MCP configurations.
  • Creates named configuration profiles from JSON files.
  • Automatically restarts Claude to apply changes.
  • Preserves non-mcpServers keys in Claude config.
  • Backs up previous configuration for easy rollback.
  • Lists available and currently loaded profiles.

Use cases of Claude MCP Config Switcher

  • Quickly switch between work and personal MCP server setups.
  • Toggle development, staging, and production MCP endpoints without manual editing.
  • Roll back to a previous configuration after testing new settings.

常见问题

1

Does it work on Windows or Linux?

No. The script relies on macOS-specific paths (`~/Library/Application Support/Claude/`) and commands (`killall`, `open`), so it will not work on Windows or Linux.

2

What dependencies are required?

The `jq` utility must be installed. It can be installed via `brew install jq`.

3

Where are configuration profiles stored?

Profiles are stored as `.json` files in the `~/.config/claude/` directory. Each file must contain an `mcpServers` key.

4

What does the script modify in Claude’s config file?

The script only reads and writes the `mcpServers` key. Other keys in the target Claude config file are preserved, and other keys in source profile files are ignored.

5

How do I revert to the previous configuration?

Use the command `claude-mcp-switch last`. The script saves a backup of the previous `mcpServers` block into `~/.config/claude/last.json`.

评论

AI 与智能体 分类下的更多 MCP 服务器