Thapa Technical — Dev Blog
Claude Code Hostinger MCP Developer Tools CLI Setup

Connecting Claude Code to Hostinger
in 3 Minutes: Fast Manual Setup.

Want Claude Code to read your live Hostinger account, list domains, manage DNS records, and check VPS servers directly from your editor? Here is the fast, step-by-step manual configuration guide.

🚀
💡 Special Reader Offer

Don't have hosting yet? Start your project today!

To follow this tutorial and connect Claude Code to your hosting account, you will need a Hostinger account. Grab our community-exclusive deal to get the best price:

🔗 Exclusive Buy Link: hostinger.com/in/thapa7
🎟️ Coupon Code:
THAPA7 (Extra 10% OFF!)

What is Hostinger MCP?

Hostinger has launched an MCP (Model Context Protocol) server. This is the bridge that lets AI assistants like Claude Code actually *do* things in your account — like reading live domains, updating DNS records, or inspecting VPS resources — instead of just talking about it.

While graphical IDEs like VS Code and Cursor enjoy a simple one-click OAuth install process, Claude Code is entirely terminal-based. This means we need to connect it the manual way: copy a small JSON config, paste it into one file, and save. It is incredibly quick, taking less than three minutes to get fully connected. Let's do it!

Prerequisites

Before jumping into the setup, make sure your local environment is configured with these key dependencies:

Required

Node.js 20 or Higher

Hostinger's MCP server runs locally on your machine using Node.js. You'll need version 20+ to run the connection. Verify your current version via command line.

Required

Claude Code CLI

Anthropic's command-line agent must be installed globally. Note that CLI environments require a manual config, unlike the one-click OAuth flow in GUI editors.

bash — Check Node version
node -v

Step-by-Step Connection Setup

Follow these simple steps to configure your local Claude Code terminal environment:

1
Step 1

Navigate to API Page in hPanel

Log in to your Hostinger hPanel, and in the sidebar under Dev tools, click on API. At the top of this page, you will see tabs for various IDE integrations (VS Code, Cursor, Antigravity, etc.).

Click the Claude Code tab. Then, select your current operating system (Mac, Windows, or Linux) so the system provides the correct configuration paths for your environment.

2
Step 2

Select Only the Tools You Need

Under "Select MCP tools", you will see six checkboxes/product toggles:

  • Websites
  • Domains and DNS
  • Subscriptions and payments
  • Email Marketing
  • VPS hosting
  • Ecommerce
The #1 Tip: Most AI models and IDEs cap out around 100 tools per workspace session. Hostinger's full MCP suite exposes way more than 100 tools if you toggle everything on, which can slow down responses or cause tool-loading errors. Enable only the products you actually plan to use (e.g., Websites and Domains). You can always come back and toggle more later.
3
Step 3

Generate API Token & Copy the Config

Generate your Hostinger API token directly on the page. When generated, Hostinger will automatically inject the token value into the JSON config snippet shown under Step 3, replacing the your-token-here placeholder.

Locate your global Claude configuration file. The file path depends on your operating system:

  • Windows: %USERPROFILE%\.claude.json
  • Mac / Linux: ~/.claude.json

Copy the generated JSON block from Hostinger and paste it into this file. If you already have existing MCP servers set up, merge the new hostinger-hosting object inside the mcpServers dictionary:

json — ~/.claude.json
{
  "mcpServers": {
    "hostinger-hosting": {
      "command": "npx.cmd",
      "args": ["--package=hostinger-api-mcp@latest", "hostinger-hosting-mcp"],
      "env": {
        "HOSTINGER_API_TOKEN": "YOUR_ACTUAL_HOSTINGER_API_TOKEN_HERE"
      }
    }
  }
}

*Note: For macOS and Linux, the command will be npx instead of npx.cmd.

4
Step 4

Restart Claude Code and Verify

Restart your Claude Code CLI terminal session so it parses the new configuration parameters. Once restarted, run a quick prompt to verify the connection:

Prompt
"List my Hostinger domains"

If you enabled VPS hosting tools, you can also query:

Prompt
"Show me the status of my VPS and its current resource usage"

If the terminal prints your live account details, the connection is fully working!

Alternative: One-Line CLI Registration

If you would rather avoid opening and merging text files manually, you can instruct Claude Code to register Hostinger MCP in a single terminal line command:

bash
claude mcp add hostinger -e HOSTINGER_API_TOKEN=YOUR_KEY -- npx -y hostinger-api-mcp@latest

This registers the MCP configuration server directly and produces the exact same setup. Make sure to swap YOUR_KEY with your real Hostinger API token.

Conclusion

Integrating Hostinger MCP into Claude Code removes the need to log into hPanel for simple adjustments. You can now manage hosting settings, review DNS structures, and run deployments in plain English.

In our next guide, we will look at how to deploy a full-stack Node.js application to a VPS without running a single manual terminal script. Stay tuned!

Discussion

Leave a Reply
Ready to Learn Backend?
Build Enterprise Apps

Master Express, MongoDB, PostgreSQL, Stripe integration, and deployment workflows in our live online classes.

Explore Courses
Also check: /courses/full-stack-ai-bootcamp.php — Full Stack Bootcamp