home / mcp / hostinger api mcp server

Hostinger API MCP Server

Provides an MCP server exposing Hostinger API tools for hosting, domains, DNS, billing, and VPS management.

Installation
Add the following to your MCP client configuration file.

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.

How to use

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.

How to install

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-mcp

Additional setup and runtime notes

If 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 and security

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.

Notes and examples

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.

Available tools

hosting_importWordpressWebsite

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.

hosting_deployWordpressPlugin

Deploys a WordPress plugin from a directory to a hosting server and triggers plugin deployment.

hosting_deployWordpressTheme

Deploys a WordPress theme from a directory to a hosting server and optionally activates it after deployment.

hosting_deployJsApplication

Deploys a JavaScript application from an archive to a hosting server; archive must contain source files only. Builds run on the server after upload.

hosting_deployStaticWebsite

Deploys a pre-built static website archive to a hosting server with no build steps.

hosting_listJsDeployments

Lists JavaScript deployments for a domain with optional state filtering and pagination.

hosting_showJsDeploymentLogs

Retrieves logs for a JavaScript deployment to aid debugging.

billing_getCatalogItemListV1

Retrieves catalog items with pricing, used to preview services before ordering.

billing_createServiceOrderV1

Creates a new service order with payment, items, and optional coupons.

billing_setDefaultPaymentMethodV1

Sets the default payment method for the account.

billing_deletePaymentMethodV1

Deletes a payment method from the account.

billing_getPaymentMethodListV1

Lists available payment methods for placing new orders.

billing_cancelSubscriptionV1

Cancels a subscription and stops future billing.

billing_getSubscriptionListV1

Retrieves a list of all subscriptions for the account.

billing_disableAutoRenewalV1

Disables auto-renewal for a subscription.

billing_enableAutoRenewalV1

Enables auto-renewal for a subscription.

DNS_getDNSSnapshotV1

Retrieves a specific DNS snapshot and its zone records.

DNS_getDNSSnapshotListV1

Lists DNS snapshots for a domain.

DNS_restoreDNSSnapshotV1

Restores a DNS zone from a selected snapshot.

DNS_getDNSRecordsV1

Retrieves DNS zone records for a domain.

DNS_updateDNSRecordsV1

Updates DNS records for a domain; can overwrite or merge changes.

DNS_deleteDNSRecordsV1

Deletes specific DNS records for a domain.

DNS_resetDNSRecordsV1

Resets DNS zone to default records.

DNS_validateDNSRecordsV1

Validates DNS records before applying updates.

v2_getDomainVerificationsDIRECT

Retrieves a list of pending and completed domain verifications.

domains_checkDomainAvailabilityV1

Checks availability of domain names across multiple TLDs.

domains_getDomainForwardingV1

Retrieves domain forwarding configuration.

domains_deleteDomainForwardingV1

Deletes domain forwarding data.

domains_createDomainForwardingV1

Creates domain forwarding configuration.

domains_enableDomainLockV1

Enables domain lock to prevent transfers.

domains_disableDomainLockV1

Disables domain lock to allow transfers.

domains_getDomainDetailsV1

Retrieves detailed information for a domain.

domains_getDomainListV1

Lists all domains in the account portfolio.

domains_purchaseNewDomainV1

Purchases and registers a new domain.

domains_enablePrivacyProtectionV1

Enables WHOIS privacy protection for a domain.

domains_disablePrivacyProtectionV1

Disables WHOIS privacy protection for a domain.

domains_updateDomainNameserversV1

Sets nameservers for a domain.

domains_getWHOISProfileV1

Retrieves a WHOIS contact profile.

domains_deleteWHOISProfileV1

Deletes a WHOIS contact profile.

domains_getWHOISProfileListV1

Lists WHOIS contact profiles.

domains_createWHOISProfileV1

Creates a new WHOIS contact profile.

domains_getWHOISProfileUsageV1

Shows domains using a specific WHOIS profile.

hosting_listAvailableDatacentersV1

Lists available datacenters for hosting plans.

hosting_generateAFreeSubdomainV1

Generates a unique free subdomain for hosting services.

hosting_verifyDomainOwnershipV1

Verifies ownership of a domain before hosting setup.

hosting_listOrdersV1

Retrieves a paginated list of orders accessible to the authenticated client.

hosting_listWebsitesV1

Lists websites available to the authenticated client.

hosting_createWebsiteV1

Creates a new website for the authenticated client.

reach_deleteAContactV1

Deletes a contact by UUID from the email marketing system.

reach_listContactGroupsV1

Lists all contact groups for organizing contacts.

reach_listContactsV1

Lists contacts with optional filters like group and subscription status.

reach_createANewContactV1

Creates a new contact and subscribes them to email communications.

reach_listSegmentsV1

Lists all contact segmentation segments.

reach_createANewContactSegmentV1

Creates a new contact segment with criteria and logic.

reach_listSegmentContactsV1

Retrieves contacts belonging to a specific segment.

reach_getSegmentDetailsV1

Gets details for a specific segment.

VPS_getDataCenterListV1

Lists all available data centers for VPS deployments.

VPS_getProjectContainersV1

Retrieves containers for a Docker Compose project on a VM.

VPS_getProjectContentsV1

Retrieves full project details including docker-compose contents and status.

VPS_deleteProjectV1

Deletes a Docker Compose project from a VM.

VPS_getProjectListV1

Lists all Docker Compose projects on a VM.

VPS_createNewProjectV1

Deploys a new Docker Compose project on a VM from a compose source.

VPS_getProjectLogsV1

Retrieves aggregated logs for a Docker Compose project.

VPS_restartProjectV1

Restarts all services in a Docker Compose project.

VPS_startProjectV1

Starts all services in a Docker Compose project.

VPS_stopProjectV1

Stops all services in a Docker Compose project.

VPS_updateProjectV1

Updates a Docker Compose project by pulling images and recreating containers.

VPS_activateFirewallV1

Activates a firewall on a VM.

VPS_deactivateFirewallV1

Deactivates a firewall on a VM.

VPS_getFirewallDetailsV1

Retrieves firewall details by ID.

VPS_deleteFirewallV1

Deletes a firewall configuration.

VPS_getFirewallListV1

Lists all firewalls.

VPS_createNewFirewallV1

Creates a new firewall configuration.

VPS_updateFirewallRuleV1

Updates a specific firewall rule.

VPS_deleteFirewallRuleV1

Deletes a specific firewall rule.

VPS_createFirewallRuleV1

Creates a new firewall rule.

VPS_syncFirewallV1

Synchronizes firewall rules with the associated VM.

VPS_getPostInstallScriptV1

Retrieves a post-install automation script.

VPS_updatePostInstallScriptV1

Updates a post-install script.

VPS_deletePostInstallScriptV1

Deletes a post-install script.

VPS_getPostInstallScriptsV1

Lists post-install automation scripts.

VPS_createPostInstallScriptV1

Adds a new post-install script.

VPS_attachPublicKeyV1

Attaches existing public keys to a VM.

VPS_deletePublicKeyV1

Deletes a public key from the account.

VPS_getPublicKeysV1

Lists public keys available for VPS authentication.

VPS_createPublicKeyV1

Adds a new public key to the account.

VPS_getTemplateDetailsV1

Retrieves OS template details for VMs.

VPS_getTemplatesV1

Lists available OS templates for VMs.

VPS_getActionDetailsV1

Retrieves details about a specific action on a VM.

VPS_getActionsV1

Lists actions performed on a VM.

VPS_getAttachedPublicKeysV1

Lists SSH keys attached to a VM.

VPS_getBackupsV1

Lists backups for a VM.

VPS_restoreBackupV1

Restores a VM from a backup.

VPS_setHostnameV1

Sets the hostname for a VM.

VPS_resetHostnameV1

Resets VM hostname to default.

VPS_getVirtualMachineDetailsV1

Retrieves detailed information about a VM.

VPS_getVirtualMachinesV1

Lists all virtual machines.

VPS_purchaseNewVirtualMachineV1

Purchases and sets up a new VM.

VPS_getScanMetricsV1

Retrieves malware scan metrics for a VM using Monarx.

VPS_installMonarxV1

Installs the Monarx malware scanner on a VM.

VPS_uninstallMonarxV1

Uninstalls the Monarx malware scanner from a VM.

VPS_getMetricsV1

Retrieves historical performance metrics for a VM.

VPS_setNameserversV1

Sets nameservers for a VM.

VPS_createPTRRecordV1

Creates or updates a PTR record for a VM.

VPS_deletePTRRecordV1

Deletes a PTR record from a VM.

VPS_setPanelPasswordV1

Sets the control panel password for a VM.

VPS_startRecoveryModeV1

Initiates recovery mode on a VM.

VPS_stopRecoveryModeV1

Stops recovery mode on a VM.

VPS_recreateVirtualMachineV1

Recreates a VM with fresh OS installation.

VPS_restartVirtualMachineV1

Restarts a VM.

VPS_setRootPasswordV1

Sets the root password for a VM.

VPS_setupPurchasedVirtualMachineV1

Sets up a purchased VM with initial configuration.

VPS_getSnapshotV1

Retrieves VM snapshot information.

VPS_createSnapshotV1

Creates a snapshot of the VM.

VPS_deleteSnapshotV1

Deletes a VM snapshot.

VPS_restoreSnapshotV1

Restores VM from a snapshot.

VPS_startVirtualMachineV1

Starts a VM.

VPS_stopVirtualMachineV1

Stops a VM.