/hostinger:hostinger-connectfrom hostinger
Signs into Hostinger and adds the Hostinger MCP server to Claude Code, Codex, Cursor, or VS Code. Only handles connection setup, not site building or deployment.
Ships in hostinger. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a coding agent. The user wants to connect you to their Hostinger account, so you can manage their websites, domains, email, VPS and online stores for them.
This skill only sets up the connection: it signs in, adds the Hostinger MCP server and says when it's ready. Don't build, deploy or change anything on their account here.
detail: it can hold sign-in process output. Don't improvise a different setup.Work out which tool you are running in and where, before you run any command:
Every local command runs from the home folder, never the user's project: the project is often a
cloned repository or template, and a .npmrc, node_modules/.bin or version manager file in it
would run its author's code with the user's Hostinger sign-in. Use cd "$HOME" && … in a shell, and
in Windows PowerShell run each cd "$HOME" && <command> below as Push-Location $HOME; <command>; Pop-Location. Keep every path in double quotes, since the home folder can contain spaces.
Look for a hostinger MCP server in every place your tool keeps one:
cd "$HOME" && claude mcp get hostinger (shows its scope and command), and the same
from the project folder for a project or local entry.[mcp_servers.hostinger] in config.toml in $CODEX_HOME (default ~/.codex) and in the
project's .codex/config.toml.mcpServers.hostinger in ~/.cursor/mcp.json and in the project's .cursor/mcp.json.servers.hostinger in the user mcp.json (macOS
~/Library/Application Support/Code/User/mcp.json, Linux ~/.config/Code/User/mcp.json, Windows
%APPDATA%\Code\User\mcp.json) and in the project's .vscode/mcp.json.A hostinger entry is set up only when it does one of these:
/bin/sh with the one argument
<home>/.hostinger/mcp/launch.sh, or on Windows an absolute node.exe path with the one argument
<home>\.hostinger\mcp\launch.mjs, and sets no environment variables (env), which could make
Node load other code;https://mcp.hostinger.com.Then:
npx with @hostinger/mcp, a bare
node or hostinger-api-mcp, which start the server from the project folder, where npx runs the
project's own code): call none of the old entry's tools in this session. When you run remote, go
to Remote server. Otherwise continue with step 3.An old entry may hold the user's own settings or token, so ask before you remove it, in one sentence naming where it is and saying it runs code from the project folder.
local scope: once the user agrees, remove it yourself, changing no
other server. If they say no, change nothing and send Something went wrong.project scope, .codex/config.toml, .cursor/mcp.json,
.vscode/mcp.json): don't edit it, since it is often shared with a team. Ask the user to remove
the entry themselves and wait for their answer, then look again. An entry there wins over the
user-level one, so while it remains, add one sentence to the final message naming the file and
saying the entry must be removed before Hostinger is safe to use.Register the new entry at user level, so it works in every project, and never in a project file: the launcher path exists only on this machine. When a set-up user-level entry is already there, don't register again: send Restart needed.
cd "$HOME" && node -v
Push-Location $HOME; node -v; Pop-Location
If Node.js is missing or older than version 20, go to Remote server.
The sign-in and the launcher come from the Hostinger Headless skill in the published @hostinger/mcp
npm package. Install them into your home folder, pinned to one release, and only when that release's
copy is missing. The install unpacks into a temporary folder and moves it into place once complete, so
an interrupted run never leaves a half-installed folder behind. Never use a headless/ folder from
the project or anywhere else.
# macOS/Linux
( cd "$HOME" && V=$(npm view @hostinger/mcp version) && D="$HOME/.hostinger/skills/$V" && C="$D/headless/connect" \
&& ready() { [ -f "$C/bootstrap.mjs" ] && [ -f "$C/launch.mjs" ] && [ -f "$C/launch.sh" ]; } \
&& { ready || { mkdir -p "$HOME/.hostinger/skills" && T=$(mktemp -d "$HOME/.hostinger/skills/.install-XXXXXX") && trap 'rm -rf "$T"' EXIT \
&& npm pack "@hostinger/mcp@$V" --silent --pack-destination "$T" >/dev/null \
&& tar -xzf "$T/hostinger-mcp-$V.tgz" -C "$T" --strip-components=2 package/skills/headless \
&& { ready || { mkdir -p "$D" && rm -rf "$D/headless" && mv "$T/headless" "$D/headless"; }; }; }; } \
&& ready && echo "$C/bootstrap.mjs" )
# Windows PowerShell
Push-Location $HOME
$V = npm view @hostinger/mcp version; if ($LASTEXITCODE) { throw "npm view failed" }
$D = Join-Path $HOME ".hostinger\skills\$V"; $C = "$D\headless\connect"
function Ready { (Test-Path "$C\bootstrap.mjs") -and (Test-Path "$C\launch.mjs") -and (Test-Path "$C\launch.sh") }
if (-not (Ready)) {
$T = Join-Path $HOME ".hostinger\skills\.install-$([guid]::NewGuid())"; New-Item -ItemType Directory -Force $T | Out-Null
try {
npm pack "@hostinger/mcp@$V" --silent --pack-destination $T | Out-Null; if ($LASTEXITCODE) { throw "npm pack failed" }
tar -xzf "$T\hostinger-mcp-$V.tgz" -C $T --strip-components=2 package/skills/headless; if ($LASTEXITCODE) { throw "tar failed" }
if (-not (Ready)) {
New-Item -ItemType Directory -Force $D | Out-Null
if (Test-Path "$D\headless") { Remove-Item -Recurse -Force "$D\headless" }
Move-Item "$T\headless" "$D\headless"
}
} finally { Remove-Item -Recurse -Force $T }
}
if (-not (Ready)) { throw "install failed" }
Pop-Location; "$C\bootstrap.mjs"
The printed path is <bootstrap>. Run it from the home folder, in the background, and read its
output as it comes:
cd "$HOME" && node "<bootstrap>"
Push-Location $HOME; node "<bootstrap>"; Pop-Location
It copies the launcher to ~/.hostinger/mcp/, checks that the Hostinger MCP server starts through
it, and signs the user in with a browser flow when they aren't signed in yet. It prints one JSON
event per line:
| Event | What to do |
|---|---|
launcher (command, args) | Keep command as <command> and args[0] as <launcher> for step 5. |
mcp_ok | The server starts. Keep waiting. |
awaiting_user (verificationUri) | Send the sign-in message below right away, with the URL, while the bootstrap keeps running. |
logged_in | Signed in. If you sent the sign-in message, send ✅ **Signed in.** Finishing setup... |
success | Done. Continue with step 5. |
launcher_failed, mcp_unreachable, login_failed | Stop and send Something went wrong. |
Check on it every few seconds, for up to 5 minutes after the sign-in message. If it hasn't finished by then, stop it and send Something went wrong.
## 🔐 Sign in to Hostinger
A browser window should have opened. Approve access there to connect me to your account.
**[Sign in to Hostinger](<verificationUri>)**
Waiting for you to sign in...
The sign-in is saved on this computer and the Hostinger MCP server reuses it, so the user won't need to sign in again.
Register exactly <command> and <launcher> from the launcher event, never npx and never a
bare node: the tool starts the server in the user's project, and the launcher moves to the home
folder before it starts the latest @hostinger/mcp. Replace both placeholders with the real values.
In JSON, double every backslash of a Windows path (C:\\Program Files\\nodejs\\node.exe).
Register at user level, after removing old entries as Replacing an entry says.
cd "$HOME" && claude mcp add hostinger --scope user -- "<command>" "<launcher>"
Remove an old entry with claude mcp remove hostinger --scope <scope> (user, project or
local), run from the project folder for project or local.
cd "$HOME" && codex mcp add hostinger -- "<command>" "<launcher>"
Remove an old entry with cd "$HOME" && codex mcp remove hostinger.
Set mcpServers.hostinger in ~/.cursor/mcp.json, keeping everything else in the file.
{ "mcpServers": { "hostinger": { "command": "<command>", "args": ["<launcher>"] } } }
cd "$HOME" && code --add-mcp '{"name":"hostinger","command":"<command>","args":["<launcher>"]}'
On Windows, or when the user mcp.json still has an old hostinger entry, set servers.hostinger
in the user mcp.json instead, keeping everything else in the file:
{ "servers": { "hostinger": { "type": "stdio", "command": "<command>", "args": ["<launcher>"] } } }
You registered in step 5: the tools in this session, if any, are still the old ones, so call
none of them. Send Restart needed. VS Code is the one exception: when step 2 found no entry and
no Hostinger tools were in this session before, and hostinger tools appear right after
registering, count with them as below.
Step 2 found every entry set up:
HOSTINGER_API_TOKEN isn't set, sign in again with
cd "$HOME" && node "$HOME/.hostinger/mcp/launch.mjs" --login in the background. Send the sign-in
message from step 4 with the URL it prints after Opening browser for sign-in:, and once it exits
successfully send Restart needed. Otherwise send Something went wrong, naming
HOSTINGER_API_TOKEN as the rejected credential when it is set.## 🎉 You're connected to Hostinger
✅ Signed in
✅ Hostinger tools ready
Found **<n> websites** and **<n> domains**.
### Try asking me
- "Show my websites and which plan each one is on"
- "Deploy this project to my Hostinger hosting"
- "Check why my website is slow"
## 🎉 Hostinger is set up
✅ Signed in
✅ Hostinger tools added to <tool name>
### ⚠️ One last step
**<restart line>**
### Then try asking me
- "Show my websites and which plan each one is on"
- "Deploy this project to my Hostinger hosting"
- "Check why my website is slow"
Restart line for each tool:
Type /exit, then run claude --continue to come back to this chat.Close Codex and open it again.Restart Cursor.Run "Developer: Reload Window" from the Command Palette.Use this when Node.js 20 or newer is missing, or when the user's browser is on another machine. The remote server needs nothing installed, and the tool opens the Hostinger sign-in itself.
Register it at user level, after removing old entries as Replacing an entry says:
cd "$HOME" && claude mcp add --transport http hostinger --scope user https://mcp.hostinger.comcd "$HOME" && codex mcp add hostinger --url https://mcp.hostinger.com{ "mcpServers": { "hostinger": { "url": "https://mcp.hostinger.com" } } } in
~/.cursor/mcp.json, keeping everything else in the filecd "$HOME" && code --add-mcp '{"name":"hostinger","type":"http","url":"https://mcp.hostinger.com"}', or on Windows
set servers.hostinger to { "type": "http", "url": "https://mcp.hostinger.com" } in the user mcp.jsonThen send the message below. The sign-in line for Codex is Then run codex mcp login hostinger in a terminal and approve the Hostinger sign-in.; for the other tools it is The first time you ask me to do something with your account, a Hostinger sign-in will open. Approve it and you're set.
## ✅ Hostinger added to <tool name>
### ⚠️ One last step
**<restart line>**
<sign-in line>
### Then try asking me
- "Show my websites and which plan each one is on"
- "Deploy this project to my Hostinger hosting"
- "Check why my website is slow"
Don't run any command or edit any config file: you don't know this tool's format. Send:
## Add Hostinger to <tool name>
1. Open the MCP server settings in <tool name>.
2. Add a remote (HTTP) MCP server named `hostinger` with this URL:
**https://mcp.hostinger.com**
3. Restart <tool name> if it asks you to.
The first time you ask me to do something with your account, a Hostinger sign-in will open.
Approve it and you're set.
## ⚠️ Couldn't connect to Hostinger
<One plain sentence: what failed.>
**<One thing the user can do, e.g. "Say 'try again' and I'll send a new sign-in link.">**
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hostinger/claude-plugin --plugin hostinger14 skills in this plugin
/audit-hostingAudit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website, SSL problems, broken or vulnerable WordPress installs, failed Node.js builds and vulnerable npm packages, databases and Agency Plan orders near their limits, and hosting plans about to lapse. Read-only; produces a prioritised to-do list and names the skill that fixes each item. Triggers: what do I have on Hostinger, audit my hosting, check all my websites, what needs attention, health check my sites, are any of my sites broken, which of my sites are insecure./audit-vpsAudit every Hostinger VPS (KVM plans) on the account and report what needs attention: server state and failed actions, CPU, memory, disk and monthly traffic use, firewall missing or not synced, SSH keys, Monarx malware counts, backup age, Docker Manager projects that are not healthy, old OpenVZ servers, and VPS plans about to lapse. Read-only; produces a prioritised to-do list and names the skill or hPanel page that fixes each item. Triggers: what VPS do I have, audit my servers, check all my VPS, which servers need attention, health check my VPS, are my servers secure, is my VPS backed up, when does my VPS expire./connect-domainConnect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to the site, point DNS at Hostinger without breaking existing email or verification records, install SSL, turn on the HTTPS redirect, and verify it resolves. Handles domains registered at Hostinger or elsewhere, moving a site off its free *.hostingersite.com subdomain, subdomains and aliases. Triggers: connect my domain, point my domain to my site, use my own domain, move off the free subdomain, add a subdomain, park a domain, add a domain alias, my domain is not working.Other plugins' skills for the same job