Serverman (Server Manager) MCP server

Server that manages Claude's configuration for other MCP servers.
Back to servers
Setup instructions
Provider
Benhao Tang
Release date
Jan 19, 2025
Language
Python
Package
Stats
2.7K downloads
11 stars

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.

Installation

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.

Basic Usage

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

Managing Servers

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>

Version Control

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>

Preset Management

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>

Multiple Client Support

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

Companion MCP Server

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:

  • "What MCP servers do I have?"
  • "Disable server X and Y for me."

This provides an intuitive way to manage your MCP servers through conversation.

How to install this MCP server

For Claude Code

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.

For Cursor

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.

Adding an MCP server to Cursor globally

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"
            ]
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.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

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later