MCP-Serverman is a command-line tool for managing Claude MCP server configurations with version control and profiling features. It helps you organize, enable/disable servers, manage preset configurations, and even includes a companion MCP server that allows language models like Claude to modify your server configurations through natural language commands.
You can install mcp-serverman using pip:
pip install mcp-serverman
For the latest development version, install directly from GitHub:
pip install git+https://github.com/benhaotang/mcp-serverman.git
The tool should work on Windows, Linux, and macOS.
After installation, you'll need to initialize the client configuration before using other commands:
# Initialize client configuration (required before using other commands)
mcp-serverman client init
List your MCP servers:
# List all servers
mcp-serverman list
# List only enabled servers
mcp-serverman list --enabled
Enable, disable, or remove servers:
# Enable a server
mcp-serverman enable <server_name>
# Disable a server
mcp-serverman disable <server_name>
# Remove a server
mcp-serverman remove <server_name>
Save and manage server configurations:
# Save the current state of a server with a comment
mcp-serverman save <server_name> --comment "Your comment here"
# Change to a different saved version
mcp-serverman change <server_name> --version <version>
Create and use configuration presets:
# Save current configuration as a preset
mcp-serverman preset save <preset_name>
# Load a saved preset
mcp-serverman preset load <preset_name>
# Delete a preset
mcp-serverman preset delete <preset_name>
Manage different MCP clients:
# List all clients
mcp-serverman client list
# Add a new client
mcp-serverman client add <short_name> --name "Display Name" --path "/path/to/config.json" --key "mcpServers" [--default]
# Remove a client
mcp-serverman client remove <short_name>
# Set a client as default
mcp-serverman client modify <short_name> --default
# Copy/merge configurations between clients
mcp-serverman client copy --from <short_name> --to <short_name> --merge
You can register a companion MCP server that allows language models like Claude to manage your configurations:
# Register the companion MCP server
mcp-serverman companion [--client <client>]
With the companion server enabled, you can use natural language commands like:
This provides an intuitive way to manage your MCP servers through conversation.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "mcp-serverman-companion" '{"command":"mcp-serverman","args":["companion"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"mcp-serverman-companion": {
"command": "mcp-serverman",
"args": [
"companion"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"mcp-serverman-companion": {
"command": "mcp-serverman",
"args": [
"companion"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect