loading…
Search for a command to run...
loading…
Enables middleware management, information checking, backups, and node-level operations for the MegaCloud API.
Enables middleware management, information checking, backups, and node-level operations for the MegaCloud API.
MCP Server for the MegaCloud API, enabling middleware management, information checking, and more.
Below is the list of your MCP tools converted into the requested format:
list_available_hosts
list_middleware_types
list_middleware_instances
restart_middleware
middleware_instance_name (string): Middleware Instance Namestop_middleware
middleware_instance_name (string): Middleware Instance Namestart_middleware
middleware_instance_name (string): Middleware Instance Namedelete_middleware
middleware_instance_name (string): Middleware Instance Nameget_middleware_info
middleware_instance_name (string): Middleware Instance Nameget_middleware_status
middleware_instance_name (string): Middleware Instance Namebackup_middleware
middleware_instance_name (string): Middleware Instance Namelist_middleware_instance_nodes
middleware_instance_name (string): Middleware Instance Nameremove_middleware_instance_nodes
name (string): Name of the middleware instance node_names (array[string]): Node Names to removecreate_single_redis_middleware
host_name (string): Host Name (required) max_memory_in_gb (integer, default 4): Max Memory In GB name (string | null, default null): Instance Name (optional)create_redis_cluster_middleware
name (string | null, default null): Cluster Name (optional) max_memory_in_gb (integer, default 4): Max Memory In GB per node master_host_names (array[string]): Master Host Names (required) replica_host_names (array[string]): Replica Host Names (required)add_redis_nodes
name (string): Name of the Redis instance (required) master_host_names (array[string] | null, default null): New Master Hosts (optional) replica_host_names (array[string] | null, default null): New Replica Hosts (optional)Log in to the MegaCloud console, open your browser’s Network tab while loading any API call, and extract the Authorization: Bearer <token> header value.
Clone the repo:
git clone https://github.com/megaease/megacloud-mcp.git
Then run
pip install "mcp[cli]"
Remember to install mcp command globally for all users.
Install the Cline for VS Code extension.
Set MegaCloud MCP server with following config:
{
"mcpServers": {
"megacloud-mcp": {
"type": "stdio",
"command": "mcp",
"args": [
"run",
"<your-repo-dir>/megacloud-mcp/megacloud_mcp/__main__.py"
],
"env": {
"MEGACLOUD_AUTHTOKEN": "<your-auth-token>"
}
}
}
}
{
"mcp": {
"servers": {
"test-megacloud-mcp": {
"type": "stdio",
"command": "mcp",
"args": [
"run",
"<your-repo-dir>/megacloud-mcp/megacloud_mcp/__main__.py"
],
"env": {
"MEGACLOUD_AUTHTOKEN": "<your-auth-token>"
}
}
}
}
}
Build the image:
docker build -t megaease/megacloud-mcp .
Settings:
{
"megacloud-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"MEGACLOUD_AUTHTOKEN",
"megaease/megacloud-mcp"
],
"env": {
"MEGACLOUD_AUTHTOKEN": "<your-auth-token>"
}
}
}
Выполни в терминале:
claude mcp add megacloud-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.