此包由 MCPFlow 打包并发布到npm仓库。
一个用于在Claude应用中管理MCP服务器的命令行工具。
直接使用npx运行:
npx @mcpflow.io/mcp-mcpm-cli
或者先安装后使用:
# 安装
npm install @mcpflow.io/mcp-mcpm-cli
# 使用
npx @mcpflow.io/mcp-mcpm-cli
npm install -g @mcpm/cli
Exports the version of the MCPM CLI
参数:
Formats an array of MCP servers with status into a string
参数:
-
servers
: An array of MCP servers with status
Logs a debug message if the log level is set to debug or higher
参数:
-
args
: Additional arguments to log -
message
: The message to log
Logs an info message if the log level is set to info or higher
参数:
-
args
: Additional arguments to log -
message
: The message to log
Logs a warning message if the log level is set to warn or higher
参数:
-
args
: Additional arguments to log -
message
: The message to log
Logs an error message if the log level is set to error or higher
参数:
-
args
: Additional arguments to log -
message
: The message to log
Clears all data
参数:
Gets an instance of the host service by type
参数:
-
type
: The type of the host service
Gets information about a package
参数:
-
name
: The name of the package
Searches for packages in the registry
参数:
-
query
: The search query
Installs a package
参数:
-
name
: The name of the package to install -
params
: The parameters for the package
Adds the MCPM CLI as a MCP server
参数:
Adds a MCP server
参数:
-
name
: The name of the MCP server -
config
: The configuration for the MCP server
Removes a MCP server
参数:
-
name
: The name of the MCP server to remove
Disables a MCP server
参数:
-
name
: The name of the MCP server to disable
Enables a disabled MCP server
参数:
-
name
: The name of the MCP server to enable
Gets all MCP servers with status
参数:
Restarts Claude.app
参数:
Gets a MCP server with status
参数:
-
name
: The name of the MCP server
Gets all enabled MCP servers
参数:
Gets all disabled MCP servers
参数:
Updates the parameters of a MCP server
参数:
-
name
: The name of the MCP server -
params
: The parameters to update
Starts the MCPM MCP server
参数:
- 开发者: MCP-Club
- 版本: 1.0.0
- 许可证: GNU Affero General Public License v3.0
- 原始仓库: MCP-Club/mcpm
A command-line tool for managing MCP servers in Claude App.
- 🚀 Easy Server Management: Add, remove, and manage multiple MCP servers in Claude App with simple commands
- 🔄 Server Status Control: Enable/disable servers and view their status at any time
- 🛠️ Interactive CLI: User-friendly command-line interface with interactive prompts for easy configuration
- 🔌 Self-Integration: Can add MCPM CLI itself as a MCP server with a single command
- 📝 JSON Configuration: Manages servers through Claude's configuration file with proper error handling
- 🔍 Package Discovery: Search and discover MCP packages from the community
- [x] Add Remote MCP Discovery (A MCPHub for search and recommendation)
- [x] Auto Install MCP Servers For you
- [ ] A GUI for MCPM CLI
npm install -g @mcpm/cli
> mcpm help
Usage: mcpm [options] [command]
Options:
-V, --version output the version number
-d, --debug enables verbose logging (default: false)
-h, --help display help for command
Commands:
search [query] Search for MCP packages
install <n> Install a MCP package from the registry
add [options] [name] Manually add a new MCP server to your Claude App
remove [name] Remove a MCP server from your Claude App
disable [name] Disable an MCP server (moves it from Claude to storage)
enable [name] Enable a disabled MCP server (moves it from storage to Claude)
list [options] List all your MCP servers
mcp Start the MCPM MCP server
restart Restart Claude.app
help [command] display help for command
Search for available MCP packages in the registry:
mcpm search # Interactive search mode
mcpm search <query> # Search with a specific query
mcpm search --json # Output results in JSON format
Install a MCP package by its ID:
mcpm install <package-id> # Install a specific package
mcpm i <package-id> # Short alias for install
mcpm install -y <package-id> # Install without confirmation
Remove a MCP server from Claude App:
mcpm remove # Interactive mode
mcpm remove <name> # Remove a specific server
mcpm rm <name> # Short alias for remove
Moves a server from Claude App to storage, making it temporarily unavailable.
mcpm disable # Interactive mode
mcpm disable <name> # Specify server name
Moves a previously disabled server from storage back to Claude App.
mcpm enable # Interactive mode
mcpm enable <name> # Specify server name
mcpm list # Shows all configured MCP servers
mcpm mcp # Start MCPM as a MCP server
For more information, visit our MCP.md.
mcpm add --self # Add MCPM CLI as a MCP server
- Active servers are stored in Claude App's configuration
- Disabled servers are stored in
~/.mcpm/*
GitHub Actions will automatically publish a new version when a new tag is created
git tag v1.4.1
git push origin v1.4.1