
hostinger-api-mcp
by hostinger
hostinger-api-mcp
Model Context Protocol (MCP) server for Hostinger API.
Prerequisites
- Node.js version 24 or higher
If you don't have Node.js installed, you can download it from the official website. Alternatively, you can use a package manager like Homebrew (for macOS) or Chocolatey (for Windows) to install Node.js.
We recommend using NVM (Node Version Manager) to install and manage installed Node.js versions. After installing NVM, you can install Node.js with the following command:
nvm install v24
nvm use v24
Installation
To install the MCP server, run one of the following command, depending on your package manager:
# Install globally from npm
npm install -g hostinger-api-mcp
# Or with yarn
yarn global add hostinger-api-mcp
# Or with pnpm
pnpm add -g hostinger-api-mcp
Update
To update the MCP server to the latest version, use one of the following commands, depending on your package manager:
# Update globally from npm
npm update -g hostinger-api-mcp
# Or with yarn
yarn global upgrade hostinger-api-mcp
# Or with pnpm
pnpm update -g hostinger-api-mcp
Binaries
This package installs the following MCP server commands:
hostinger-api-mcp— unified server with every tool (276 total)hostinger-agency-hosting-mcp— 27 tools for agency-hostinghostinger-billing-mcp— 9 tools for billinghostinger-dns-mcp— 8 tools for dnshostinger-domains-mcp— 23 tools for domainshostinger-ecommerce-mcp— 12 tools for ecommercehostinger-horizons-mcp— 2 tools for horizonshostinger-hosting-mcp— 48 tools for hostinghostinger-mail-mcp— 38 tools for mailhostinger-reach-mcp— 12 tools for reachhostinger-vps-mcp— 62 tools for vpshostinger-wordpress-mcp— 35 tools for wordpress
Pick the binary that matches your agent's scope. hostinger-api-mcp remains the backwards-compatible default.
Configuration
The following environment variables can be configured when running the server:
DEBUG: Enable debug logging (true/false) (default: false)HOSTINGER_API_TOKEN: Your API token, which will be sent in theAuthorizationheader. When set, OAuth is bypassed entirely.API_TOKEN: Deprecated alias forHOSTINGER_API_TOKEN. Will be removed in a future version — preferHOSTINGER_API_TOKEN.OAUTH_ISSUER: OAuth server base URL (default:https://auth.hostinger.com). Only used whenHOSTINGER_API_TOKENis not set.
Authentication
The server supports two authentication methods:
API Token (recommended for CI/scripts)
Set HOSTINGER_API_TOKEN in the environment or .env file. When present it always takes precedence — no OAuth code runs.
OAuth 2.0 with PKCE (interactive sign-in)
When HOSTINGER_API_TOKEN is not set and the server runs in stdio mode, OAuth 2.0 with PKCE is used automatically on the first authenticated tool call:
- A dynamic OAuth client is registered with the issuer (RFC 7591) — once per machine.
- A browser window opens to the authorization page.
- After sign-in, the server captures the redirect on a local ephemeral port, exchanges the code for tokens, and stores them.
- Subsequent calls reuse the stored access token; expired tokens are refreshed automatically. If a refresh token is revoked, the browser flow is re-launched.
Credentials are stored at:
- macOS / Linux:
~/.config/hostinger-mcp/credentials.json(mode 0600) - Windows:
%APPDATA%\hostinger-mcp\credentials.json
Credentials are shared across all Hostinger MCP binaries (hostinger-api-mcp, hostinger-vps-mcp, etc.).
Manual commands:
# Run the OAuth sign-in flow immediately (don't wait for the first tool call)
hostinger-api-mcp --login
# Revoke stored credentials
hostinger-api-mcp --logout
HTTP transport note: OAuth sign-in is not supported in --http mode. Set HOSTINGER_API_TOKEN befo
Related servers

n8n
by n8n-io
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

@modelcontextprotocol/server-everything
OfficialMCP server that exercises all the features of the MCP protocol

@modelcontextprotocol/server-filesystem
OfficialMCP server for filesystem access