Overview
What is hostinger-api-mcp?
Model Context Protocol (MCP) server for Hostinger API. It enables MCP-compatible clients (like Claude, Cursor) to interact with Hostinger’s billing, DNS, and domain management endpoints.
How to use hostinger-api-mcp?
Install globally via npm (npm install -g hostinger-api-mcp) or yarn/pnpm. Set the APITOKEN environment variable with your Hostinger API token. Optionally set DEBUG to true for logging. Configure in your MCP client (e.g., Claude) with a JSON entry pointing to the hostinger-api-mcp command. For SSE transport, run the server with --sse --host <host> --port <port> (default port 8100).
Key features of hostinger-api-mcp?
- Billing tools: catalog listing, order creation, payment method management, subscription cancellation.
- DNS tools: zone record CRUD, snapshot management, zone reset and validation.
- Domain tools: availability check, purchase, forwarding, domain lock, portfolio listing.
- Supports both stdio and SSE transport.
- Full MCP compliance for integration with Claude.js and other MCP consumers.
Use cases of hostinger-api-mcp?
- Automate domain registration and DNS record updates from an AI assistant.
- Manage billing subscriptions and payment methods programmatically.
- Check domain availability and purchase domains without logging into hPanel.
- Integrate Hostinger API operations into custom MCP‑based workflows.
FAQ from hostinger-api-mcp
What Node.js version is required?
Node.js version 20 or higher.
How do I set the API token?
Set the APITOKEN environment variable. It is sent in the Authorization header.
How do I update hostinger-api-mcp to the latest version?
Run npm update -g hostinger-api-mcp (or yarn global upgrade / pnpm update -g).
Can I use SSE transport?
Yes. Start the server with --sse --host 127.0.0.1 --port 8100 (or custom host/port).
What tools are available?
The server provides tools for billing (catalog, orders, payment methods, subscriptions), DNS (records, snapshots, zone reset), and domains (availability, purchase, forwarding, lock, portfolio).