loading…
Search for a command to run...
loading…
Enables AI assistants to manage Cloudways infrastructure, including servers, applications, monitoring, and security via the Cloudways API.
Enables AI assistants to manage Cloudways infrastructure, including servers, applications, monitoring, and security via the Cloudways API.
An MCP (Model Context Protocol) server for seamless integration with the Cloudways API. This server enables AI assistants like Claude to access and manage your Cloudways infrastructure.
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ Claude AI │────│ MCP Server │────│ Cloudways API │
│ │ │ │ │ │
│ • Natural Lang │ │ • Token Mgmt │ │ • REST Endpoints│
│ • Context Aware │ │ • Rate Limiting │ │ • Authentication│
│ • Multi-tenant │ │ • Encryption │ │ • Resource Data │
└─────────────────┘ └─────────────────┘ └─────────────────┘
│
┌─────────────────┐
│ Redis Cache │
│ │
│ • Token Storage │
│ • Rate Limits │
│ • Customer Data │
└─────────────────┘
npx mcp-remoteInstall Node.js and NPM:
# Using Homebrew (recommended)
brew install node
# Verify installation
node --version # Should show v18+
npm --version # Should show npm version
Install and Setup Redis:
# Install Redis using Homebrew
brew install redis
# Start Redis as a background service (auto-restart on boot)
brew services start redis
# Verify Redis is running
redis-cli ping # Should respond with "PONG"
Alternative Redis Setup:
# If you prefer to run Redis manually (not as a service)
/opt/homebrew/opt/redis/bin/redis-server /opt/homebrew/etc/redis.conf
# To stop the Redis service later
brew services stop redis
Clone the repository:
git clone <repository-url>
cd cloudways-mcp
Create Python virtual environment:
python3 -m venv venv
source venv/bin/activate # On macOS/Linux
Install Python dependencies:
pip install -r requirements.txt
Create a .env file in the project root:
# Environment Variables for Cloudways MCP Server
# Encryption key (auto-generated if not set)
ENCRYPTION_KEY=""
# Redis connection URL
REDIS_URL="redis://localhost:6379/0"
# Rate limiting configuration (requests per minute per customer)
RATE_LIMIT_REQUESTS="90"
# Optional: Logging level
LOG_LEVEL="INFO"
# Make sure you're in the virtual environment
source venv/bin/activate
# Start the server
python cw-mcp.py
The server will start on http://127.0.0.1:7000/mcp and you should see:
==================================================
🚀 Cloudways MCP Server
==================================================
INFO: Started server process [XXXX]
INFO: Uvicorn running on http://127.0.0.1:7000 (Press CTRL+C to quit)
Test Redis Connection:
redis-cli ping # Should return "PONG"
Test MCP Server:
# Check if server is running
curl -v "http://127.0.0.1:7000/mcp/"
# Should return a 406 error (expected - means server is working)
Check Server Logs: The server logs will show successful startup and any connection attempts from Claude Desktop.
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%/Claude/claude_desktop_config.json{
"mcpServers": {
"cloudways": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://127.0.0.1:7000/mcp",
"--header",
"x-cloudways-email: ${CLOUDWAYS_EMAIL}",
"--header",
"x-cloudways-api-key: ${CLOUDWAYS_API_KEY}"
],
"env": {
"CLOUDWAYS_EMAIL": "[email protected]",
"CLOUDWAYS_API_KEY": "your-cloudways-api-key"
}
}
}
}
| Tool | Description | Example Usage |
|---|---|---|
list_servers |
Get all servers in your account | "Show me all my servers" |
get_server_details |
Get detailed server information | "Show details for server ID 12345" |
get_ssh_keys |
Get SSH keys for a server | "What SSH keys are on server 12345?" |
| Tool | Description | Example Usage |
|---|---|---|
get_app_details |
Get application details | "Show me app 67890 on server 12345" |
get_app_credentials |
Get app login credentials | "What are the credentials for app 67890?" |
get_app_settings |
Get application settings | "Show settings for my WordPress app" |
get_app_monitoring_summary |
Get app performance metrics | "How much bandwidth is app 67890 using?" |
| Tool | Description | Example Usage |
|---|---|---|
get_server_details |
Server bandwidth and disk usage | "Show server 12345 resource usage" |
get_app_monitoring_summary |
Application metrics | "App performance for the last month" |
get_alerts |
All system alerts | "Show me any critical alerts" |
| Tool | Description | Example Usage |
|---|---|---|
list_projects |
Get all projects | "What projects do I have?" |
list_team_members |
Get team member list | "Who has access to my account?" |
| Tool | Description | Example Usage |
|---|---|---|
get_available_providers |
Cloud providers (AWS, DO, etc.) | "What cloud providers are available?" |
get_available_regions |
Available regions per provider | "Show me AWS regions" |
get_available_server_sizes |
Server size options | "What server sizes can I choose?" |
get_available_apps |
Installable applications | "What apps can I install?" |
get_available_packages |
Available packages & versions | "Show me PHP versions available" |
| Tool | Description | Example Usage |
|---|---|---|
ping |
Test connectivity | "Test my connection" |
customer_info |
Your account information | "Show my account details" |
get_token_status |
Token health and expiry info | "Check my authentication status" |
rate_limit_status |
API usage and limits | "How many API calls have I made?" |
You: "Show me all my Cloudways servers and their status"
Claude: I'll get your server list and check their status...
You: "Which server is using the most bandwidth this month?"
Claude: Looking at your server monitoring data...
You: "Show me the PHP version on server 12345"
Claude: Let me check the server details and package information...
You: "What are the database credentials for my e-commerce app?"
Claude: I'll retrieve the application credentials securely...
You: "Show me all WordPress sites across all my servers"
Claude: Let me scan through your applications to find WordPress installations...
You: "I want to deploy a new Laravel app. What options do I have?"
Claude: Let me show you available server sizes, and regions...
Enable verbose logging:
export LOG_LEVEL=DEBUG
python cw-mcp.py
Problem: zsh: command not found: node
# Solution: Install Node.js
brew install node
# If Homebrew is not installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Problem: npx: command not found
# NPX comes with npm, reinstall Node.js
brew uninstall node
brew install node
Problem: Connection refused when testing Redis
# Check if Redis is running
brew services list | grep redis
# Start Redis if not running
brew services start redis
# If Redis was installed via different method
redis-server /opt/homebrew/etc/redis.conf
Problem: Redis connection timeout
# Check Redis status
redis-cli ping
# If Redis is on different port/host, update .env file
REDIS_URL="redis://localhost:6380/0" # Use correct port
Problem: ModuleNotFoundError when starting server
# Ensure virtual environment is activated
source venv/bin/activate
# Reinstall dependencies
pip install -r requirements.txt
Problem: Port 7000 already in use
# Find process using port 7000
lsof -i :7000
# Kill the process (replace PID with actual process ID)
kill -9 <PID>
# Or use a different port by modifying cw-mcp.py
Problem: Server starts but Claude Desktop can't connect
# Verify server is listening
curl -v "http://127.0.0.1:7000/mcp/"
# Should return 406 error (this is correct!)
# Check Claude Desktop config file has correct URL
Problem: MCP server not recognized by Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.jsonProblem: Authentication errors
Problem: Invalid API key errors
# Test your credentials directly
curl -X POST "https://api.cloudways.com/api/v1/oauth/access_token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "[email protected]&api_key=your-api-key"
Problem: Rate limiting errors
Enable Debug Logging:
# In your .env file
LOG_LEVEL=DEBUG
# Or export temporarily
export LOG_LEVEL=DEBUG
python cw-mcp.py
Check Server Status:
# Process check
ps aux | grep cw-mcp
# Port check
lsof -i :7000
# Connection test
curl -v "http://127.0.0.1:7000/mcp/"
⚠️ Current Limitation: This server currently supports read-only operations only. Write operations (create, update, delete) are planned for future releases to ensure maximum safety and reliability.
Выполни в терминале:
claude mcp add cloudways-mcp-server -- npx Web content fetching and conversion for efficient LLM usage.
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolProvides auto-configuration for setting up an MCP server in Spring Boot applications.
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzНе уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai