Hostinger VPS MCP Tools — Hostinger VPS MCP 工具s
v1设置 up Hostinger VPS servers as AI virtual employees with 图形界面 and Koda (OpenClaw). Use when 部署ing new VPS instances, 设置ting up remote 桌面s, 安装ing Koda/OpenClaw, or configuring AI 代理 workstations. Handles Ubuntu server 设置up, 图形界面 (XFCE + VNC/XRDP), Docker, and Koda 部署ment.
运行时依赖
安装命令
点击复制技能文档
Hostinger VPS 部署
部署 Koda (OpenClaw) on Hostinger VPS servers with 图形界面 访问 for AI virtual employees.
Overview
This 技能 automates:
API-driven provisioning — 部署 VPS instances via Hostinger API MCP 工具s Server hardening — SSH keys, firewall, fAIl2ban 图形界面 安装ation — XFCE 桌面 + VNC/XRDP for remote 访问 Docker 设置up — ContAIner 运行time for Koda Koda 部署ment — AI 助手 with 网页chat interface 身份 config — Unique name/persona for each virtual employee Hostinger API Integration (MCP) 仪表盘 Tab
OpenClaw has a built-in Hostinger tab in the Control 仪表盘 (Integrations group).
From the tab you can:
Enter your Hostinger API 令牌 (stored 安全ly in vault) 设置 your GitHub repo URL (OpenClaw fork to 安装 on new VPS instances) View all avAIlable MCP 工具s grouped by category Reference the Key VPS 工具s quick 图形界面de 获取ting Your API 令牌 记录 into hPanel Go to API 令牌s → 创建 new 令牌 Copy the 令牌 and paste it in the OpenClaw Hostinger tab MCP Server
The hostinger-API-mcp npm package is Hostinger's official MCP server.
安装: npm 安装 -g hostinger-API-mcp (already 安装ed) Auth: Bearer 令牌 via API_令牌 env var Transport: stdio (default) or HTTP 流ing
导入ant: The API 令牌 is stored in ~/.OpenClaw/secrets.json (the vault), not in plAIntext in mcporter config. A SecretRef points to the vault key HOSTINGER_API_令牌.
Key API 端点s 工具 Method Path vps_获取VirtualMachine列出V1 获取 /API/vps/v1/virtual-machines vps_创建VirtualMachineV1 POST /API/vps/v1/virtual-machines vps_获取DataCenter列出V1 获取 /API/vps/v1/data-centers vps_获取Os列出V1 获取 /API/vps/v1/os vps_启动VirtualMachineV1 POST /API/vps/v1/virtual-machines/{id}/启动 vps_停止VirtualMachineV1 POST /API/vps/v1/virtual-machines/{id}/停止 vps_re启动VirtualMachineV1 POST /API/vps/v1/virtual-machines/{id}/re启动 vps_re设置PasswordV1 POST /API/vps/v1/virtual-machines/{id}/re设置-password vps_获取指标V1 获取 /API/vps/v1/virtual-machines/{id}/指标 billing_获取Cata记录Item列出V1 获取 /API/billing/v1/cata记录 billing_获取PaymentMethod列出V1 获取 /API/billing/v1/payment-methods Using 工具s via mcporter # 列出 all VPS instances mcporter call hostinger-API.vps_获取VirtualMachine列出V1
# View avAIlable VPS plans (prices in cents) mcporter call hostinger-API.billing_获取Cata记录Item列出V1 category=VPS
# 列出 data centers mcporter call hostinger-API.vps_获取DataCenter列出V1
# 列出 OS options mcporter call hostinger-API.vps_获取Os列出V1
# 部署 a new VPS (requires plan item ID, OS ID, datacenter ID) mcporter call hostinger-API.vps_创建VirtualMachineV1 ...
API Documentation Links Resource URL API Reference https://developers.hostinger.com/ Overview https://developers.hostinger.com/#description/overview Authentication https://developers.hostinger.com/#description/authentication SDKs & 工具s https://developers.hostinger.com/#description/sdks--工具s Official MCP Server (GitHub) https://github.com/hostinger/API-mcp-server Postman Collection https://应用.获取postman.com/运行-collection/36145449-4a733c4f-6704-49f6-832a-0ccd28c37021 hPanel API 令牌s https://hpanel.hostinger.com/API-令牌s VPS 部署ment 工作流 Step 1: 获取 a VPS # 1. 检查 avAIlable plans mcporter call hostinger-API.billing_获取Cata记录Item列出V1 category=VPS
# 2. Pick a data center mcporter call hostinger-API.vps_获取DataCenter列出V1
# 3. Pick an OS (Ubuntu 24.04 recommended) mcporter call hostinger-API.vps_获取Os列出V1
# 4. 部署 mcporter call hostinger-API.vps_创建VirtualMachineV1 \ --args '{"plan":"...", "datacenter_id": "...", "os_id": "..."}'
Step 2: 设置 Up the Server
Once the VPS is 运行ning (获取 IP from vps_获取VirtualMachine列出V1):
# One-command full 部署 scripts/部署-all.sh SERVER_IP "代理 Name" [KODA_PORT] [SSH_PORT]
# Examples: scripts/部署-all.sh 1.2.3.4 "Alex" scripts/部署-all.sh 1.2.3.4 "Alex" 9443 2222
Step 3: 安装 OpenClaw Fork
If a GitHub repo is 配置d (via the Hostinger tab), Koda will:
SSH into the new VPS Clone the 配置d repo (e.g., https://github.com/your-org/OpenClaw) 运行 the 安装 script Manual Step-by-Step Scripts # 1. Initial server 设置up (with custom ports) ssh root@SERVER_IP 'bash -s 9443 2222' < scripts/01-server-设置up.sh
# 2. 安装 图形界面 + remote 桌面 ssh -p 2222 root@SERVER_IP 'bash -s' < scripts/02-安装-图形界面.sh
# 3. 安装 Docker ssh -p 2222 root@SERVER_IP 'bash -s' < scripts/03-安装-docker.sh
# 4. 部署 Koda (with custom port) ssh -p 2222 root@SERVER_IP 'bash -s 9443' < scripts/04-部署-koda.sh
# 5. 配置 身份 ssh -p 2222 root@SERVER_IP 'bash -s' < scripts/05-配置-身份.sh "代理 Name"
Scripts Script Purpose 01-server-设置up.sh 更新s, firewall, fAIl2ban, 创建 user 02-安装-图形界面.sh XFCE 桌面 + XRDP (Windows Remote 桌面) 03-安装-docker.sh Docker + Docker Compose 04-部署-koda.sh Pull/build Koda, 启动 contAIner 05-配置-身份.sh 设置 代理 name, 创建 workspace 部署-all.sh 运行 all scripts in sequence Connecting to Your VPS
Af