MCP server for Hostinger API
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Model Context Protocol (MCP) server for Hostinger API.
If you don't want to install or run anything locally, connect directly to Hostinger's hosted MCP server:
This opens a browser window to authorize via OAuth. Once approved, all tools below are available in your session.
Add https://mcp.hostinger.com as a remote Streamable HTTP MCP server in your client's configuration and complete the OAuth prompt when it appears. Refer to your client's docs for how it exposes "add remote MCP server" / "custom connector" settings.
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:
To install the MCP server, run one of the following command, depending on your package manager:
To update the MCP server to the latest version, use one of the following commands, depending on your package manager:
This package installs the following MCP server commands:
hostinger-api-mcp โ unified server with every tool (382 total)hostinger-agency-hosting-mcp โ 38 tools for agency-hostinghostinger-billing-mcp โ 9 tools for billinghostinger-dns-mcp โ 8 tools for dnshostinger-domains-mcp โ 40 tools for domainshostinger-ecommerce-mcp โ 29 tools for ecommercehostinger-horizons-mcp โ 2 tools for horizonshostinger-hosting-mcp โ 64 tools for hostinghostinger-mail-mcp โ 38 tools for mailhostinger-reach-mcp โ 52 tools for reachhostinger-vps-mcp โ 64 tools for vpshostinger-wordpress-mcp โ 38 tools for wordpressPick the binary that matches your agent's scope. hostinger-api-mcp remains the backwards-compatible default.
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 the Authorization header. When set, OAuth is bypassed entirely.API_TOKEN: Deprecated alias for HOSTINGER_API_TOKEN. Will be removed in a future version โ prefer HOSTINGER_API_TOKEN.OAUTH_ISSUER: OAuth server base URL (default: https://auth.hostinger.com). Only used when HOSTINGER_API_TOKEN is not set.The server supports two authentication methods:
Set HOSTINGER_API_TOKEN in the environment or .env file. When present it always takes precedence โ no OAuth code runs.
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:
Credentials are stored at:
~/.config/hostinger-mcp/credentials.json (mode 0600)%APPDATA%\hostinger-mcp\credentials.jsonCredentials are shared across all Hostinger MCP binaries (hostinger-api-mcp, hostinger-vps-mcp, etc.).
Manual commands:
HTTP transport note: OAuth sign-in is not supported in --http mode. Set HOSTINGER_API_TOKEN before using --http.
The MCP server supports two transport modes:
The server can use standard input / output (stdio) transport (default). This provides local streaming:
The server can use HTTP streaming transport. This provides bidirectional streaming over HTTP:
This server implements the Model Context Protocol (MCP) and can be used with any MCP-compatible consumer.
Example of connecting to this server using HTTP streaming transport:
This MCP server provides the following tools:
hostinger-agency-hosting-mcpDeploy a node-static Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone โ always confirm with the user before proceeding. Use this for Agency Plan websites of type node-static (a Node.js-built static site that requires a build step or a plain simple static site). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the build-assets process which builds the site and deploys the result to public_html. This operation is synchronous: the build and deployment complete before the tool returns, so the website is live as soon as the tool finishes successfully โ there is no separate asynchronous build to wait for or poll. Upload credentials are generated and used internally โ do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. For plain PHP applications that should be extracted as-is, use agencyHosting_deployPhpApplication instead. The website UID is automatically resolved from the domain.
customcustomDeploy a PHP (or other non-build) Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone โ always confirm with the user before proceeding. Use this for Agency Plan websites where the archive contents should be extracted and served as-is with no build step (e.g., PHP applications). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the import-archive process which overwrites the website contents with the archive contents. This operation is synchronous: the archive is extracted and deployed before the tool returns, so the website is live as soon as the tool finishes successfully โ there is no separate asynchronous build to wait for or poll. Upload credentials are generated and used internally โ do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. For node-static websites that require a build step, use agencyHosting_deployNodeStaticWebsite instead. The website UID is automatically resolved from the domain.
customcustomLists the datacenters available for provisioning a new website on the given Agency Plan hosting order.
Each datacenter includes a pinger_url you can ping from the client to measure round-trip
latency; comparing the results across datacenters lets you pick the nearest one (lowest
ping) before choosing its code as the datacenter_code when creating a website setup.
GET/api/agency-hosting/v1/orders/{order_id}/datacentersNo reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hostinger-api-mcp)<a href="https://allmcps.com/mcp/hostinger-api-mcp"><img src="https://allmcps.com/api/badge/hostinger-api-mcp?style=directory" alt="Hostinger API MCP on AllMCPs" /></a>