Skip to main content
Glama
hostinger

hostinger-api-mcp

Official

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUGNoEnable debug logging (true/false)false
API_TOKENYesYour API token, which will be sent in the Authorization header

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
hosting_importWordpressWebsiteA

Import a WordPress website from an archive file to a hosting server. This tool uploads a website archive (zip, tar, tar.gz, etc.) and a database dump (.sql file) to deploy a complete WordPress website. The archive will be extracted on the server automatically. Note: This process may take a while for larger sites. After upload completion, files are being extracted and the site will be available in a few minutes. The username will be automatically resolved from the domain.

hosting_deployWordpressPluginB

Deploy a WordPress plugin from a directory to a hosting server. This tool uploads all plugin files and triggers plugin deployment.

hosting_deployWordpressThemeB

Deploy a WordPress theme from a directory to a hosting server. This tool uploads all theme files and triggers theme deployment. The uploaded theme can optionally be activated after deployment.

hosting_deployJsApplicationA

Deploy a JavaScript application from an archive file to a hosting server. IMPORTANT: the archive must ONLY contain application source files, not the build output, skip node_modules directory; also exclude all files matched by .gitignore if the ignore file exists. The build process will be triggered automatically on the server after the archive is uploaded. After deployment, use the hosting_listJsDeployments tool to check deployment status and track build progress.

hosting_deployStaticWebsiteA

Deploy a static website from an archive file to a hosting server. IMPORTANT: This tool only works for static websites with no build process. The archive must contain pre-built static files (HTML, CSS, JavaScript, images, etc.) ready to be served. If the website has a package.json file or requires a build command, use hosting_deployJsApplication instead. The archive will be extracted and deployed directly without any build steps. The username will be automatically resolved from the domain.

hosting_listJsDeploymentsA

List javascript application deployments for checking their status. Use this tool when customer asks for the status of the deployment. This tool retrieves a paginated list of Node.js application deployments for a domain with optional filtering by deployment states.

hosting_showJsDeploymentLogsA

Retrieve logs for a specified JavaScript application deployment for debugging purposes in case of failure.

billing_getCatalogItemListV1A

Retrieve catalog items available for order.

Prices in catalog items is displayed as cents (without floating point), e.g: float 17.99 is displayed as integer 1799.

Use this endpoint to view available services and pricing before placing orders.

billing_setDefaultPaymentMethodV1A

Set the default payment method for your account.

Use this endpoint to configure the primary payment method for future orders.

billing_deletePaymentMethodV1B

Delete a payment method from your account.

Use this endpoint to remove unused payment methods from user accounts.

billing_getPaymentMethodListV1A

Retrieve available payment methods that can be used for placing new orders.

If you want to add new payment method, please use hPanel.

Use this endpoint to view available payment options before creating orders.

billing_getSubscriptionListV1A

Retrieve a list of all subscriptions associated with your account.

Use this endpoint to monitor active services and billing status.

billing_disableAutoRenewalV1C

Disable auto-renewal for a subscription.

Use this endpoint when disable auto-renewal for a subscription.

billing_enableAutoRenewalV1C

Enable auto-renewal for a subscription.

Use this endpoint when enable auto-renewal for a subscription.

DNS_getDNSSnapshotV1A

Retrieve particular DNS snapshot with contents of DNS zone records.

Use this endpoint to view historical DNS configurations for domains.

DNS_getDNSSnapshotListV1A

Retrieve DNS snapshots for a domain.

Use this endpoint to view available DNS backup points for restoration.

DNS_restoreDNSSnapshotV1A

Restore DNS zone to the selected snapshot.

Use this endpoint to revert domain DNS to a previous configuration.

DNS_getDNSRecordsV1B

Retrieve DNS zone records for a specific domain.

Use this endpoint to view current DNS configuration for domain management.

DNS_updateDNSRecordsV1A

Update DNS records for the selected domain.

Using overwrite = true will replace existing records with the provided ones. Otherwise existing records will be updated and new records will be added.

Use this endpoint to modify domain DNS configuration.

DNS_deleteDNSRecordsV1C

Delete DNS records for the selected domain.

To filter which records to delete, add the name of the record and type to the filter. Multiple filters can be provided with single request.

If you have multiple records with the same name and type, and you want to delete only part of them, refer to the Update zone records endpoint.

Use this endpoint to remove specific DNS records from domains.

DNS_resetDNSRecordsV1B

Reset DNS zone to the default records.

Use this endpoint to restore domain DNS to original configuration.

DNS_validateDNSRecordsV1A

Validate DNS records prior to update for the selected domain.

If the validation is successful, the response will contain 200 Success code. If there is validation error, the response will fail with 422 Validation error code.

Use this endpoint to verify DNS record validity before applying changes.

v2_getDomainVerificationsDIRECTA

Retrieve a list of pending and completed domain verifications.

domains_checkDomainAvailabilityV1A

Check availability of domain names across multiple TLDs.

Multiple TLDs can be checked at once. If you want alternative domains with response, provide only one TLD and set with_alternatives to true. TLDs should be provided without leading dot (e.g. com, net, org).

Endpoint has rate limit of 10 requests per minute.

Use this endpoint to verify domain availability before purchase.

domains_getDomainForwardingV1A

Retrieve domain forwarding data.

Use this endpoint to view current redirect configuration for domains.

domains_deleteDomainForwardingV1A

Delete domain forwarding data.

Use this endpoint to remove redirect configuration from domains.

domains_createDomainForwardingV1A

Create domain forwarding configuration.

Use this endpoint to set up domain redirects to other URLs.

domains_enableDomainLockV1A

Enable domain lock for the domain.

When domain lock is enabled, the domain cannot be transferred to another registrar without first disabling the lock.

Use this endpoint to secure domains against unauthorized transfers.

domains_disableDomainLockV1A

Disable domain lock for the domain.

Domain lock needs to be disabled before transferring the domain to another registrar.

Use this endpoint to prepare domains for transfer to other registrars.

domains_getDomainDetailsV1A

Retrieve detailed information for specified domain.

Use this endpoint to view comprehensive domain configuration and status.

domains_getDomainListV1A

Retrieve all domains associated with your account.

Use this endpoint to view user's domain portfolio.

domains_purchaseNewDomainV1B

Purchase and register a new domain name.

If registration fails, login to hPanel and check domain registration status.

If no payment method is provided, your default payment method will be used automatically.

If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account.

Some TLDs require additional_details to be provided and these will be validated before completing purchase.

Use this endpoint to register new domains for users.

domains_enablePrivacyProtectionV1A

Enable privacy protection for the domain.

When privacy protection is enabled, domain owner's personal information is hidden from public WHOIS database.

Use this endpoint to protect domain owner's personal information from public view.

domains_disablePrivacyProtectionV1A

Disable privacy protection for the domain.

When privacy protection is disabled, domain owner's personal information is visible in public WHOIS database.

Use this endpoint to make domain owner's information publicly visible.

domains_updateDomainNameserversV1A

Set nameservers for a specified domain.

Be aware, that improper nameserver configuration can lead to the domain being unresolvable or unavailable.

Use this endpoint to configure custom DNS hosting for domains.

domains_getWHOISProfileV1B

Retrieve a WHOIS contact profile.

Use this endpoint to view domain registration contact information.

domains_deleteWHOISProfileV1A

Delete WHOIS contact profile.

Use this endpoint to remove unused contact profiles from account.

domains_getWHOISProfileListV1B

Retrieve WHOIS contact profiles.

Use this endpoint to view available contact profiles for domain registration.

domains_createWHOISProfileV1B

Create WHOIS contact profile.

Use this endpoint to add new contact information for domain registration.

domains_getWHOISProfileUsageV1A

Retrieve domain list where provided WHOIS contact profile is used.

Use this endpoint to view which domains use specific contact profiles.

hosting_listAvailableDatacentersV1B

Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.

hosting_generateAFreeSubdomainV1A

Generate a unique free subdomain that can be used for hosting services without purchasing custom domains. Free subdomains allow you to start using hosting services immediately and you can always connect a custom domain to your site later.

hosting_verifyDomainOwnershipV1A

Verify ownership of a single domain and return the verification status.

Use this endpoint to check if a domain is accessible for you before using it for new websites. If the domain is accessible, the response will have is_accessible: true. If not, add the given TXT record to your domain's DNS records and try verifying again. Keep in mind that it may take up to 10 minutes for new TXT DNS records to propagate.

Skip this verification when using Hostinger's free subdomains (*.hostingersite.com).

hosting_listOrdersV1A

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

This endpoint returns orders of your hosting accounts as well as orders of other client hosting accounts that have shared access with you.

Use the available query parameters to filter results by order statuses or specific order IDs for more targeted results.

hosting_listWebsitesV1A

Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.

This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you.

Use the available query parameters to filter results by username, order ID, enabled status, or domain name for more targeted results.

hosting_createWebsiteV1A

Create a new website for the authenticated client.

Provide the domain name and associated order ID to create a new website. The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter.

Subsequent websites will be hosted on the same datacenter automatically.

Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.

reach_deleteAContactV1A

Delete a contact with the specified UUID.

This endpoint permanently removes a contact from the email marketing system.

reach_listContactGroupsV1A

Get a list of all contact groups.

This endpoint returns a list of contact groups that can be used to organize contacts.

reach_listContactsV1A

Get a list of contacts, optionally filtered by group and subscription status.

This endpoint returns a paginated list of contacts with their basic information. You can filter contacts by group UUID and subscription status.

reach_createANewContactV1A

Create a new contact in the email marketing system.

This endpoint allows you to create a new contact with basic information like name, email, and surname.

If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.

reach_listSegmentsV1B

Get a list of all contact segments.

This endpoint returns a list of contact segments that can be used to organize contacts.

reach_createANewContactSegmentV1B

Create a new contact segment.

This endpoint allows creating a new contact segment that can be used to organize contacts. The segment can be configured with specific criteria like email, name, subscription status, etc.

reach_listSegmentContactsV1B

Retrieve contacts associated with a specific segment.

This endpoint allows you to fetch and filter contacts that belong to a particular segment, identified by its UUID.

reach_getSegmentDetailsV1A

Get details of a specific segment.

This endpoint retrieves information about a single segment identified by UUID. Segments are used to organize and group contacts based on specific criteria.

reach_createNewContactsV1B

Create a new contact in the email marketing system.

This endpoint allows you to create a new contact with basic information like name, email, and surname.

If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.

reach_listProfilesV1A

This endpoint returns all profiles available to the client, including their basic information.

VPS_getDataCenterListV1A

Retrieve all available data centers.

Use this endpoint to view location options before deploying VPS instances.

VPS_getProjectContainersV1A

Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine.

This endpoint returns detailed information about each container including their current status, port mappings, and runtime configuration.

Use this to monitor the health and state of all services within your Docker Compose project.

VPS_getProjectContentsV1A

Retrieves the complete project information including the docker-compose.yml file contents, project metadata, and current deployment status.

This endpoint provides the full configuration and state details of a specific Docker Compose project.

Use this to inspect project settings, review the compose file, or check the overall project health.

VPS_deleteProjectV1A

Completely removes a Docker Compose project from the virtual machine, stopping all containers and cleaning up associated resources including networks, volumes, and images.

This operation is irreversible and will delete all project data.

Use this when you want to permanently remove a project and free up system resources.

VPS_getProjectListV1A

Retrieves a list of all Docker Compose projects currently deployed on the virtual machine.

This endpoint returns basic information about each project including name, status, file path and list of containers with details about their names, image, status, health and ports. Container stats are omitted in this endpoint. If you need to get detailed information about container with stats included, use the Get project containers endpoint.

Use this to get an overview of all Docker projects on your VPS instance.

VPS_createNewProjectV1A

Deploy new project from docker-compose.yaml contents or download contents from URL.

URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.

If project with the same name already exists, existing project will be replaced.

VPS_getProjectLogsV1A

Retrieves aggregated log entries from all services within a Docker Compose project.

This endpoint returns recent log output from each container, organized by service name with timestamps. The response contains the last 300 log entries across all services.

Use this for debugging, monitoring application behavior, and troubleshooting issues across your entire project stack.

VPS_restartProjectV1A

Restarts all services in a Docker Compose project by stopping and starting containers in the correct dependency order.

This operation preserves data volumes and network configurations while refreshing the running containers.

Use this to apply configuration changes or recover from service failures.

VPS_startProjectV1A

Starts all services in a Docker Compose project that are currently stopped.

This operation brings up containers in the correct dependency order as defined in the compose file.

Use this to resume a project that was previously stopped or to start services after a system reboot.

VPS_stopProjectV1A

Stops all running services in a Docker Compose project while preserving container configurations and data volumes.

This operation gracefully shuts down containers in reverse dependency order.

Use this to temporarily halt a project without removing data or configurations.

VPS_updateProjectV1A

Updates a Docker Compose project by pulling the latest image versions and recreating containers with new configurations.

This operation preserves data volumes while applying changes from the compose file.

Use this to deploy application updates, apply configuration changes, or refresh container images to their latest versions.

VPS_activateFirewallV1B

Activate a firewall for a specified virtual machine.

Only one firewall can be active for a virtual machine at a time.

Use this endpoint to apply firewall rules to VPS instances.

VPS_deactivateFirewallV1A

Deactivate a firewall for a specified virtual machine.

Use this endpoint to remove firewall protection from VPS instances.

VPS_getFirewallDetailsV1A

Retrieve firewall by its ID and rules associated with it.

Use this endpoint to view specific firewall configuration and rules.

VPS_deleteFirewallV1A

Delete a specified firewall.

Any virtual machine that has this firewall activated will automatically have it deactivated.

Use this endpoint to remove unused firewall configurations.

VPS_getFirewallListV1A

Retrieve all available firewalls.

Use this endpoint to view existing firewall configurations.

VPS_createNewFirewallV1C

Create a new firewall.

Use this endpoint to set up new firewall configurations for VPS security.

VPS_updateFirewallRuleV1B

Update a specific firewall rule from a specified firewall.

Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.

Use this endpoint to modify existing firewall rules.

VPS_deleteFirewallRuleV1A

Delete a specific firewall rule from a specified firewall.

Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.

Use this endpoint to remove specific firewall rules.

VPS_createFirewallRuleV1A

Create new firewall rule for a specified firewall.

By default, the firewall drops all incoming traffic, which means you must add accept rules for all ports you want to use.

Any virtual machine that has this firewall activated will lose sync with the firewall and will have to be synced again manually.

Use this endpoint to add new security rules to firewalls.

VPS_syncFirewallV1A

Sync a firewall for a specified virtual machine.

Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated.

Use this endpoint to apply updated firewall rules to VPS instances.

VPS_getPostInstallScriptV1A

Retrieve post-install script by its ID.

Use this endpoint to view specific automation script details.

VPS_updatePostInstallScriptV1B

Update a specific post-install script.

Use this endpoint to modify existing automation scripts.

VPS_deletePostInstallScriptV1A

Delete a post-install script from your account.

Use this endpoint to remove unused automation scripts.

VPS_getPostInstallScriptsV1B

Retrieve post-install scripts associated with your account.

Use this endpoint to view available automation scripts for VPS deployment.

VPS_createPostInstallScriptV1A

Add a new post-install script to your account, which can then be used after virtual machine installation.

The script contents will be saved to the file /post_install with executable attribute set and will be executed once virtual machine is installed. The output of the script will be redirected to /post_install.log. Maximum script size is 48KB.

Use this endpoint to create automation scripts for VPS setup tasks.

VPS_attachPublicKeyV1A

Attach existing public keys from your account to a specified virtual machine.

Multiple keys can be attached to a single virtual machine.

Use this endpoint to enable SSH key authentication for VPS instances.

VPS_deletePublicKeyV1A

Delete a public key from your account.

Deleting public key from account does not remove it from virtual machine

Use this endpoint to remove unused SSH keys from account.

VPS_getPublicKeysV1A

Retrieve public keys associated with your account.

Use this endpoint to view available SSH keys for VPS authentication.

VPS_createPublicKeyV1A

Add a new public key to your account.

Use this endpoint to register SSH keys for VPS authentication.

VPS_getTemplateDetailsV1A

Retrieve detailed information about a specific OS template for virtual machines.

Use this endpoint to view specific template specifications before deployment.

VPS_getTemplatesV1A

Retrieve available OS templates for virtual machines.

Use this endpoint to view operating system options before creating or recreating VPS instances.

VPS_getActionDetailsV1A

Retrieve detailed information about a specific action performed on a specified virtual machine.

Use this endpoint to monitor specific VPS operation status and details.

VPS_getActionsV1A

Retrieve actions performed on a specified virtual machine.

Actions are operations or events that have been executed on the virtual machine, such as starting, stopping, or modifying the machine. This endpoint allows you to view the history of these actions, providing details about each action, such as the action name, timestamp, and status.

Use this endpoint to view VPS operation history and troubleshoot issues.

VPS_getAttachedPublicKeysV1A

Retrieve public keys attached to a specified virtual machine.

Use this endpoint to view SSH keys configured for specific VPS instances.

VPS_getBackupsV1A

Retrieve backups for a specified virtual machine.

Use this endpoint to view available backup points for VPS data recovery.

VPS_restoreBackupV1A

Restore a backup for a specified virtual machine.

The system will then initiate the restore process, which may take some time depending on the size of the backup.

All data on the virtual machine will be overwritten with the data from the backup.

Use this endpoint to recover VPS data from backup points.

VPS_setHostnameV1A

Set hostname for a specified virtual machine.

Changing hostname does not update PTR record automatically. If you want your virtual machine to be reachable by a hostname, you need to point your domain A/AAAA records to virtual machine IP as well.

Use this endpoint to configure custom hostnames for VPS instances.

VPS_resetHostnameV1A

Reset hostname and PTR record of a specified virtual machine to default value.

Use this endpoint to restore default hostname configuration for VPS instances.

VPS_getVirtualMachineDetailsV1A

Retrieve detailed information about a specified virtual machine.

Use this endpoint to view comprehensive VPS configuration and status.

VPS_getVirtualMachinesV1A

Retrieve all available virtual machines.

Use this endpoint to view available VPS instances.

VPS_purchaseNewVirtualMachineV1B

Purchase and setup a new virtual machine.

If virtual machine setup fails for any reason, login to hPanel and complete the setup manually.

If no payment method is provided, your default payment method will be used automatically.

Use this endpoint to create new VPS instances.

VPS_getScanMetricsV1B

Retrieve scan metrics for the Monarx malware scanner installed on a specified virtual machine.

The scan metrics provide detailed information about malware scans performed by Monarx, including number of scans, detected threats, and other relevant statistics. This information is useful for monitoring security status of the virtual machine and assessing effectiveness of the malware scanner.

Use this endpoint to monitor VPS security scan results and threat detection.

VPS_installMonarxV1B

Install the Monarx malware scanner on a specified virtual machine.

Monarx is a security tool designed to detect and prevent malware infections on virtual machines. By installing Monarx, users can enhance the security of their virtual machines, ensuring that they are protected against malicious software.

Use this endpoint to enable malware protection on VPS instances.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hostinger/api-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server