Skip to main content

Hostinger API MCP server

Running your own Hostinger API MCP server

Updated yesterday

The Hostinger MCP server enables seamless integration of Hostinger’s API with AI tools that support the Model Context Protocol (MCP) — such as Claude, Cursor, or other AI coding assistants. This server exposes Hostinger API endpoints as callable tools, allowing AI models to fetch live data or perform real-time actions on hosting infrastructure.

In other words, you can now "vibe sysadmin" your services on Hostinger.

Key capabilities

  • API Integration: Connects directly to Hostinger’s Developer API

  • AI Tool Compatibility: Built for environments supporting MCP, like Claude or Cursor

  • Automated Operations: Enables AI to manage services and more

Installation guide

1. Install Node.js

Before installing the MCP server, make sure Node.js 20+ is installed. You can do this via Node Version Manager (nvm):

# Install nvm (if not already installed)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

# Reload shell
source ~/.bashrc

# Install Node.js 20
nvm install 20

# Set it as default
nvm use 20

2. Install the MCP server CLI

After Node.js is ready, install the MCP server globally:

# 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

AI integration setup

Tools like Claude and Cursor don’t require manually running the MCP server. This article provides instructions on how to provide Claude with the following configuration:

{
"mcpServers": {
"hostinger-api": {
"command": "hostinger-api-mcp",
"env": {
"DEBUG": "false",
"APITOKEN": "YOUR API TOKEN"
}
}
}
}
  • APITOKEN: Your access token for authenticating with Hostinger’s API. Obtain it via hpanel.hostinger.com

  • DEBUG: Optional, set to "true" if you want verbose logs for debugging.

Additional resources

The Hostinger MCP Server is a simple yet powerful bridge that connects AI interfaces to real-world hosting actions. Exposing Hostinger API endpoints as tools empowers AI tools to go beyond chat — enabling direct, intelligent, and automated management of hosting environments.

Did this answer your question?