home / mcp / hostinger api mcp server
Provides an MCP server exposing Hostinger API tools for hosting, domains, DNS, billing, and VPS management.
Configuration
View docs{
"mcpServers": {
"hostinger-api-mcp-server": {
"url": "http://localhost:8100/",
"headers": {
"DEBUG": "false",
"API_TOKEN": "YOUR_API_TOKEN"
}
}
}
}You run a Model Context Protocol (MCP) server for Hostinger API, enabling MCP clients to access a broad set of hosting, domain, DNS, billing, VPS, and reach tools through a standardized transport. This server acts as a bridge between MCP clients and Hostinger services, delivering structured capabilities and consistent tool interfaces for automation and integration.
You connect to the MCP server using an MCP client over HTTP transport or the default standard I/O transport. The server exposes a rich suite of tools that let you manage WordPress deployments, domains, DNS, billing, hosting, reach newsletter contacts, and VPS operations. Use the client to list available tools, then call a tool by name with the required parameters. When you connect over HTTP, you interact with a remote endpoint; when using the local stdio transport, you integrate directly through standard input/output streams.
Prerequisites: you need Node.js version 24 or higher.
Install the MCP server globally with one of the following package managers. Pick the one you use regularly.
# 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-mcpIf you want to run a local HTTP MCP transport server, you can start it in HTTP mode to listen on the default address and port. The default HTTP transport runs on localhost at port 8100.
To run the HTTP MCP server on a specific host and port, you can provide host and port options when starting the server.
Environment variables you can configure when running the server include DEBUG and API_TOKEN. DEBUG enables debug logging, and API_TOKEN is used for Authorization headers in MCP client requests.
Configuration is done via environment variables when you run the server. Two common variables are:
- DEBUG: Enable debug logging (true/false). Default is false.
- API_TOKEN: Your API token, which you pass in the Authorization header to authenticate requests.
Client example: connect to the MCP server over HTTP on the default address, then list and call tools. Use the client’s provided transport to connect and interact with the exposed tools.
Imports a WordPress website from an archive file to a hosting server by uploading an archive and database dump, then extracting the site on the server.
Deploys a WordPress plugin from a directory to a hosting server and triggers plugin deployment.
Deploys a WordPress theme from a directory to a hosting server and optionally activates it after deployment.
Deploys a JavaScript application from an archive to a hosting server; archive must contain source files only. Builds run on the server after upload.
Deploys a pre-built static website archive to a hosting server with no build steps.
Lists JavaScript deployments for a domain with optional state filtering and pagination.
Retrieves logs for a JavaScript deployment to aid debugging.
Retrieves catalog items with pricing, used to preview services before ordering.
Creates a new service order with payment, items, and optional coupons.
Sets the default payment method for the account.
Deletes a payment method from the account.
Lists available payment methods for placing new orders.
Cancels a subscription and stops future billing.
Retrieves a list of all subscriptions for the account.
Disables auto-renewal for a subscription.
Enables auto-renewal for a subscription.
Retrieves a specific DNS snapshot and its zone records.
Lists DNS snapshots for a domain.
Restores a DNS zone from a selected snapshot.
Retrieves DNS zone records for a domain.
Updates DNS records for a domain; can overwrite or merge changes.
Deletes specific DNS records for a domain.
Resets DNS zone to default records.
Validates DNS records before applying updates.
Retrieves a list of pending and completed domain verifications.
Checks availability of domain names across multiple TLDs.
Retrieves domain forwarding configuration.
Deletes domain forwarding data.
Creates domain forwarding configuration.
Enables domain lock to prevent transfers.
Disables domain lock to allow transfers.
Retrieves detailed information for a domain.
Lists all domains in the account portfolio.
Purchases and registers a new domain.
Enables WHOIS privacy protection for a domain.
Disables WHOIS privacy protection for a domain.
Sets nameservers for a domain.
Retrieves a WHOIS contact profile.
Deletes a WHOIS contact profile.
Lists WHOIS contact profiles.
Creates a new WHOIS contact profile.
Shows domains using a specific WHOIS profile.
Lists available datacenters for hosting plans.
Generates a unique free subdomain for hosting services.
Verifies ownership of a domain before hosting setup.
Retrieves a paginated list of orders accessible to the authenticated client.
Lists websites available to the authenticated client.
Creates a new website for the authenticated client.
Deletes a contact by UUID from the email marketing system.
Lists all contact groups for organizing contacts.
Lists contacts with optional filters like group and subscription status.
Creates a new contact and subscribes them to email communications.
Lists all contact segmentation segments.
Creates a new contact segment with criteria and logic.
Retrieves contacts belonging to a specific segment.
Gets details for a specific segment.
Lists all available data centers for VPS deployments.
Retrieves containers for a Docker Compose project on a VM.
Retrieves full project details including docker-compose contents and status.
Deletes a Docker Compose project from a VM.
Lists all Docker Compose projects on a VM.
Deploys a new Docker Compose project on a VM from a compose source.
Retrieves aggregated logs for a Docker Compose project.
Restarts all services in a Docker Compose project.
Starts all services in a Docker Compose project.
Stops all services in a Docker Compose project.
Updates a Docker Compose project by pulling images and recreating containers.
Activates a firewall on a VM.
Deactivates a firewall on a VM.
Retrieves firewall details by ID.
Deletes a firewall configuration.
Lists all firewalls.
Creates a new firewall configuration.
Updates a specific firewall rule.
Deletes a specific firewall rule.
Creates a new firewall rule.
Synchronizes firewall rules with the associated VM.
Retrieves a post-install automation script.
Updates a post-install script.
Deletes a post-install script.
Lists post-install automation scripts.
Adds a new post-install script.
Attaches existing public keys to a VM.
Deletes a public key from the account.
Lists public keys available for VPS authentication.
Adds a new public key to the account.
Retrieves OS template details for VMs.
Lists available OS templates for VMs.
Retrieves details about a specific action on a VM.
Lists actions performed on a VM.
Lists SSH keys attached to a VM.
Lists backups for a VM.
Restores a VM from a backup.
Sets the hostname for a VM.
Resets VM hostname to default.
Retrieves detailed information about a VM.
Lists all virtual machines.
Purchases and sets up a new VM.
Retrieves malware scan metrics for a VM using Monarx.
Installs the Monarx malware scanner on a VM.
Uninstalls the Monarx malware scanner from a VM.
Retrieves historical performance metrics for a VM.
Sets nameservers for a VM.
Creates or updates a PTR record for a VM.
Deletes a PTR record from a VM.
Sets the control panel password for a VM.
Initiates recovery mode on a VM.
Stops recovery mode on a VM.
Recreates a VM with fresh OS installation.
Restarts a VM.
Sets the root password for a VM.
Sets up a purchased VM with initial configuration.
Retrieves VM snapshot information.
Creates a snapshot of the VM.
Deletes a VM snapshot.
Restores VM from a snapshot.
Starts a VM.
Stops a VM.