MCP Client Configuration Server
MCP 客户端配置服务器
此 MCP 服务器可帮助管理不同 MCP 客户端的配置。它提供从客户端配置文件中检索、列出、添加和删除服务器配置的工具。服务器会根据操作系统(Windows 或 macOS)和指定的客户端自动检测相应的配置文件路径。
安装
# Install from npm
npm install -g @landicefu/mcp-client-configuration-server
# Or use npx to run without installing
npx @landicefu/mcp-client-configuration-serverRelated MCP server: MCP Configuration Editor
配置
要在您的 AI 助手中使用此 MCP 服务器,请将其添加到您的 MCP 设置配置中:
{
"mcpServers": {
"mcp-client-configuration": {
"command": "npx",
"args": ["-y", "@landicefu/mcp-client-configuration-server"],
"env": {},
"disabled": false,
"alwaysAllow": []
}
}
}支持的客户机
Cline :Claude 驱动的编码助手
Roo Code :具有 AI 功能的代码编辑器
WindSurf :人工智能浏览器
Claude app :Claude AI 的桌面应用程序
注意: Cursor 不再受支持,因为它不使用标准配置文件进行 MCP 设置。Cursor 似乎以一种我们无法轻易修改的方式存储其 MCP 配置,这使其与此配置服务器基于文件的方法不兼容。
用法
该服务器特别适用于:
跨多个客户端管理 MCP 服务器:配置一次服务器并将其部署到多个客户端
自动化配置:脚本可以使用此服务器以编程方式管理 MCP 配置
故障排除:轻松检查已配置的服务器及其设置
示例:将服务器配置从 Roo Code 复制到 Claude 应用程序
这是一个简单的提示,您可以使用 AI 助手将 MCP 服务器配置从 Roo Code 复制到 Claude 桌面应用程序:
Please copy the "brave-search" MCP server configuration from Roo Code to my Claude desktop app.人工智能助手将在后台执行以下步骤:
从 Roo 代码获取服务器配置:
// First, get the server configuration from Roo Code
{
"client": "roo_code",
"server_name": "brave-search"
}然后给Claude添加同样的配置:
// Then add it to Claude with the same settings
{
"client": "claude",
"server_name": "brave-search",
"json_config": {
// Configuration retrieved from previous step
},
"allow_override": true
}这使得您可以轻松地在不同的 AI 助手之间同步您的 MCP 服务器配置。
工具
获取配置路径
检索指定客户端的配置文件路径。
参数:
client(必填):客户名称(cline、roo_code、windsurf、claude)
返回:
配置文件的绝对路径
获取配置
检索指定客户端的完整配置。
参数:
client(必填):客户名称(cline、roo_code、windsurf、claude)
返回:
来自客户端配置文件的完整 JSON 配置
列表服务器
列出指定客户端配置中配置的所有服务器名称。
参数:
client(必填):客户名称(cline、roo_code、windsurf、claude)
返回:
服务器名称数组
获取服务器配置
从客户端的配置中检索特定服务器的配置。
参数:
client(必填):客户名称(cline、roo_code、windsurf、claude)server_name(必需):要检索的服务器的名称
返回:
指定服务器的 JSON 配置
添加服务器配置
在客户端的配置文件中添加或更新服务器配置。
参数:
client(必填):客户名称(cline、roo_code、windsurf、claude)server_name(必需):要添加或更新的服务器的名称json_config(必需):JSON 格式的服务器配置
例子:
{
"command": "npx",
"args": ["-y", "@landicefu/android-adb-mcp-server"],
"env": {},
"disabled": false,
"alwaysAllow": []
}返回:
包含更新配置的成功消息
删除服务器配置
从客户端的配置文件中删除服务器配置。
参数:
client(必填):客户名称(cline、roo_code、windsurf、claude)server_name(必需):要删除的服务器的名称
返回:
已删除的配置或未找到服务器的消息
实现细节
服务器根据操作系统(Windows 或 macOS)和指定的客户端检测适当的配置文件路径。
所有配置文件修改后均以美化的JSON格式维护。
当配置文件不存在或无法访问时,提供错误处理。
如果配置文件和目录不存在,服务器会自动创建。
每个客户端的配置路径:
窗户:
Cline:
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.jsonRoo 代码:
%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json风帆:
%APPDATA%\WindSurf\mcp_settings.json克劳德:
%APPDATA%\Claude\claude_desktop_config.json
macOS 系统:
Cline:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonRoo 代码:
~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json风帆:
~/.codeium/windsurf/mcp_config.json克劳德:
~/Library/Application Support/Claude/claude_desktop_config.json
故障排除
常见问题
未找到配置文件
添加新服务器时,如果配置文件不存在,则会自动创建。
对于其他操作,如果配置文件不存在,您将收到一条错误消息。
服务器已存在
添加已存在的服务器时,您需要将
allow_override设置为true才能更新它。例子:
{ "client": "cline", "server_name": "existing-server", "json_config": { /* new config */ }, "allow_override": true }
不受支持的平台
目前仅支持 Windows 和 macOS。
未来版本可能会添加 Linux 支持。
最佳实践
在尝试更新或删除服务器之前,请务必检查服务器是否存在。
在客户端之间使用一致的服务器名称可以简化管理。
考虑使用环境变量来存储服务器配置中的敏感信息。
Available Tools
6 toolsadd_server_configurationC
Add or update a server configuration in a client configuration
Inputs: client (required), server_name (required), json_config (required), allow_override.
get_configurationC
Get the entire configuration for a specific client
Inputs: client (required).
get_configuration_pathC
Get the path to the configuration file for a specific client
Inputs: client (required).
get_server_configurationB
Get the configuration for a specific server from a client configuration
Inputs: client (required), server_name (required).
list_serversC
List all server names configured in a specific client
Inputs: client (required).
remove_server_configurationC
Remove a server configuration from a client configuration
Inputs: client (required), server_name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no ambiguity: adding/updating, getting full config, getting config path, getting server-specific config, listing servers, and removing server config. The descriptions clearly differentiate between operations on the entire configuration versus specific servers.
All tools follow a consistent verb_noun pattern using snake_case throughout. The naming convention is perfectly uniform with clear action prefixes (add, get, list, remove) followed by specific objects (server_configuration, configuration, configuration_path, etc.).
Six tools is well-scoped for a client configuration management server. Each tool earns its place by covering essential CRUD operations for server configurations within client configs, plus utility functions for listing and path retrieval. The count is neither too sparse nor bloated.
The tool set provides complete lifecycle coverage for managing server configurations within client configurations: create/update (add_server_configuration), read (get_configuration, get_server_configuration, list_servers), delete (remove_server_configuration), plus utility (get_configuration_path). No obvious gaps exist for the stated domain.
Maintenance
Related MCP Connectors
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that provides easy setup and configuration for multiple AI development environments including Claude Desktop, VS Code, and Windsurf. Offers automated installation scripts and manual configuration options for seamless integration across different MCP-compatible clients.18MIT
- AlicenseAqualityDmaintenanceEnables safe management of MCP server configuration files for AWS Q Developer and Claude Desktop, including adding, updating, removing servers, automatic backups, and validation.7MIT
- AlicenseAqualityDmaintenanceA robust MCP server with tools to search, install, configure, repair, and uninstall MCP servers, automating setup and maintenance across multiple AI and developer tools.417MIT
- AlicenseNot gradedqualityDmaintenanceAutomatically synchronizes and deduplicates MCP configurations from Claude Code, Codex CLI, Cursor Agent, and custom sources, providing a centralized view and management interface.151 npmMIT
Appeared in Searches
- Open Source MCP Server for Managing and Updating MCP Configurations in VSCode
- A guide to CI/CD (Continuous Integration and Continuous Deployment)
- A server that finds and installs other MCP servers
- Using Windsurf and Claude Tools or Technologies
- Information or connection related to Zed, Roo Code, and Goose