Skip to content
MCP Servers
Skill

/secure-vps

Harden a Hostinger VPS (KVM plans) to a baseline: a Hostinger firewall group that only opens the ports in use, SSH keys alongside or instead of password login, the Monarx malware scanner, and a check of the backup status and of the ports reachable from outside. Reads first,

From plugin
api-mcp-server
17325 skills

Claude Code

$ npx -y skills add hostinger/api-mcp-server --skill secure-vps --agent claude-code

SKILL.md

secure-vps.SKILL.md
name: secure-vps
description: "Harden a Hostinger VPS (KVM plans) to a baseline: a Hostinger firewall group that only opens the ports in use, SSH keys alongside or instead of password login, the Monarx malware scanner, and a check of the backup status and of the ports reachable from outside. Reads first, proposes each change with what it closes or removes, applies it only after the user agrees, and never locks the user out. Triggers: secure my VPS, lock down my server, harden my VPS, is my VPS safe, close open ports, set up a firewall on my server, disable password login, enable malware scanning, scan my server for malware, are my VPS backups on."

Secure a VPS

Baseline hardening for one server. Read and report first; each change is proposed with what it closes or removes and made only after the user agrees. The rule that matters most: never lock the user, or the agent, out of SSH. An account-wide review is `audit-vps`; a server that is already broken is `troubleshoot-vps`.

Calling the operations

  • Read the `inputSchema` that `search` returns before the first call of each operation. If a name below is rejected as unknown, `search` for what the step does (e.g. "firewall rule").
  • Only the public operations that `search` returns can be called. The backup schedule, the Monarx file list and the SSH and firewall resets live in hPanel; say where when a step needs them.
  • Batch reads with `multi-execute`; values pass between steps as `$steps.<i>.<path>`. A batch stops at its first failure.
  • `Too Many Attempts` is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. `[VPS:9999] Request failed` (HTTP 500) is usually temporary: retry a read once later. Never resend a change that failed with 500 straight away: it may have gone through, so check the outcome with the matching read or `vps_actions_list` first, and tell the user what you found.
  • A VPS runs one action at a time. Most changes return an action: poll `vps_actions_get`, waiting longer between checks, until `state` is `success` or `error`. Firewall sync and delete answer `Request accepted` instead; check the result with the matching read operation.
  • Confirm with the user before each of these, listing exactly what changes: `vps_firewall_activate` (closes every port without an accept rule), `vps_firewall_replace-all-rules-in-group`, `vps_firewall_delete-rule`, `vps_firewall_update-rule`, `vps_firewall_deactivate`, `vps_firewall_delete`, `vps_ssh-keys_remove-virtual-machine`, turning off password login, `vps_monarx_install` (locks the VPS for up to an hour), `vps_monarx_uninstall`, and `vps_snapshots_create` (replaces the snapshot).
  • SSH keys: `vps_ssh-keys_*`; the `vps_public-keys_*` operations are deprecated. Firewall sync: `vps_firewall_sync-to-all-assigned-v-ms`; `vps_firewall_sync` is deprecated.

1. Find the server

`vps_virtual-machines_list`; keep `id`, `ipv4[0].address`, `state` (must be `running`), `template.name` and `firewall_group_id`. `.hostinger/vps.json` in the project names the server from an earlier deploy.

2. Read the current state (read-only)

One batch:

  • `vps_firewall_get` with `firewall_group_id`: rules (`protocol`, `port`, `source`, `source_detail`) and `is_synced`. `vps_firewall_list` and `vps_virtual-machines_list` show which other servers share the group.
  • `vps_ssh-keys_list-virtual-machine`: keys on `root` added through Hostinger. Keys added on the server by hand do not appear, so an empty list does not prove password-only login. The SSH check below shows it.
  • `vps_backups_list`: the newest backup. Backups are weekly by default; on the weekly schedule the first one appears after a full 7-day cycle (on daily, within a day). The API cannot show or change the schedule.
  • `vps_monarx_scan-metrics`, alone or last in the batch: `[VPS:2042] Monarx is not installed` means it is not installed, and the error stops the batch; otherwise it returns the `malicious` and `compromised` counts.

From outside, which ports actually answer:

nc -zv -w 3 IP 21; nc -zv -w 3 IP 22; nc -zv -w 3 IP 25; nc -zv -w 3 IP 80; nc -zv -w 3 IP 443; nc -zv -w 3 IP 3306
nc -zv -w 3 IP 5432; nc -zv -w 3 IP 6379; nc -zv -w 3 IP 8080; nc -zv -w 3 IP 9200; nc -zv -w 3 IP 11211; nc -zv -w 3 IP 27017

Run each port as its own `nc`, with the IP written out: a loop or a shell variable makes Claude Code ask for approval every time, and macOS `nc` stops after the first port when given a list. Run the same commands against `192.0.2.1`, a reserved address with no server, first. Any port that answers there is faked by the local network (a VPN or proxy; 80, 443 and 8080 are common), so judge it with `curl` instead. On macOS add `-G 3` to `nc`; without it a port that drops traffic hangs for over a minute.

Over SSH, what listens and how SSH is set up:

ss -ltnp
sshd -T | grep -Ei '^(permitrootlogin|passwordauthentication|pubkeyauthentication) '
ufw status 2>/dev/null | head -3

3. Report and propose

srv123.hstgr.cloud (203.0.113.10) — Ubuntu 24.04
- No Hostinger firewall group; 22, 80, 443 and 3306 (MySQL) answer from anywhere
- Password login on, 1 SSH key on root
- Monarx: not installed
- Backups: last one 3 days ago (weekly)

Proposed:
1. Firewall group "web-srv123": SSH 22, HTTP 80, HTTPS 443 from any; 3306 closed (only this server's app uses it)
2. Turn off SSH password login (your key works — tested)
3. Install Monarx (free, detects only; the VPS is locked for up to an hour while it installs)

Every port that answers from outside must be either in the proposed rules or named as closing. Ask which services from `ss -ltnp` must stay reachable when it is not obvious. Wait for the user to agree, item by item if they prefer.

4. Hostinger firewall

An active group drops all inbound traffic that no accept rule matches, on IPv4 and IPv6, and needs at least one rule. Each server has at most one active group. It applies before the guest firewall: a Host

Read more
@hostinger
Ships withapi-mcp-server

Model Context Protocol (MCP) server for Hostinger API.

Stars on GitHub

Momentum

stars in total
173
Star history of hostinger/api-mcp-server on GitHub, a chart by star-history.com

Other skills on api-mcp-server.

audit-hosting

audit-hosting

Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…

audit-vps

audit-vps

Audit every Hostinger VPS (KVM plans) on the account and report what needs attention: server state and failed actions, CPU,…

connect-domain

connect-domain

Connect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to…

deploy-to-vps

deploy-to-vps

Deploy an existing project to a Hostinger VPS (KVM plans): sets up SSH key access, applies a Hostinger firewall group, runs…

headless

headless

Orchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a…

More skills from other plugins.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

gitnexus11d49k
@abhigyanpatwari@abhigyanpatwariInstall Skill
fastmcp-client-cli

fastmcp-client-cli

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…

fastmcp9d29k
@prefecthq@prefecthqInstall Skill
n8n-agents

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…

n8n-mcp9d23k
@czlonkowski@czlonkowskiInstall Skill
post-to-xhs

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…

@xpzouying@xpzouyingInstall Skill

Questions about secure-vps.

Which coding agents can use secure-vps?
secure-vps installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.