How to Set Up Web Hosting MCP on Local IDEs

Updated 2 weeks ago

The Hostinger MCP Extension allows you to connect your local IDE to your Hostinger account using an API token. Once configured, your IDE can retrieve hosting data, manage resources across Web Hosting, VPS, Domains, DNS, Billing, and Reach — directly from your development environment. The extension is available on marketplaces and supports popular IDEs like Claude Code, Cursor, JetBrains, and Windsurf.

This guide will walk you through setting up Hostinger MCP server in Cursor IDEs.

The Hostinger Connector is an IDE extension that auto-configures the Hostinger MCP server — no manual JSON editing required.

Available on:

  • Visual Studio Code Marketplace
  • Open VSX (Windsurf, Cursor, Google Antigravity)

How to set up:

  1. Open your IDE’s extension marketplace.
  2. Search for Hostinger Connector and install the extension.
    Hostinger Connector extension page in VS Code with the Install button highlighted
  3. In the extension sidebar, paste your Hostinger API token (generate one at hPanel → Account → API).
    Hostinger Connector extension in VS Code with API token field highlighted
  4. The extension auto-configures the MCP server connection.

What you can do after connecting: Manage domains, deploy sites, control VPS, update DNS records, and handle billing using natural language prompts directly from your IDE’s AI assistant.

For manual MCP configuration without the extension, see the steps below.

⚠️ Before you begin

You will need your Hostinger generated JSON file from hPanel.

Click on your Account Profile, then choose Account Information
Account menu open with Account Information highlighted in the dropdown

Then navigate to API
API settings menu item highlighted in account sidebar

Generate the API key

Hostinger API page prompting to generate an API token

The API token will be used as an environment variable in your IDE configuration. Do not paste it directly into a config file on disk — always pass it via the API_TOKEN environment variable as shown in the steps below. In this tutorial, you will use Cursor
Hostinger MCP Cursor integration with JSON config and copy button highlighted

You can now enable or disable MCPs per product from the sidebar — Web Hosting, VPS, Domains, DNS, Billing, and Reach. This is recommended since most IDEs have a ~100 tool limit for efficient performance, so enabling only the products you need helps stay within that limit.

Method 1: Manual Setup on Your IDE

Step 1: Locate Cursor’s Configuration Directory

Cursor’s MCP configuration file is located at:
  • Mac/Linux~/.cursor/mcp.json or ~/.cursor/config.json
  • WindowsC:UsersYourUsername.cursormcp.json or C:UsersYourUsername.cursorconfig.json

Step 2: Open the Configuration File

You can open the file using several methods.

Option A – Using Cursor’s Command Palette

  1. Press Cmd + Shift + P (Mac) or Ctrl + Shift + P (Windows/Linux)
  2. Type: “Open User Settings (JSON)” or “Preferences: Open Settings (JSON)”
  3. Select it from the dropdown

Option B – Manual Navigation

Mac/Linux:

# Open in Cursor
cursor ~/.cursor/mcp.json

# Or open in a text editor
nano ~/.cursor/mcp.json
code ~/.cursor/mcp.json

Windows:

# Open in Notepad
notepad %USERPROFILE%.cursormcp.json

# Or navigate manually
# Press Win + R, type: %USERPROFILE%.cursor
# Then open mcp.json or config.json

Option C – Using Finder/File Explorer

  • Mac: Press Cmd + Shift + G in Finder, paste: ~/.cursor/
  • Windows: Press Win + R, type: %USERPROFILE%.cursor
  • Look for mcp.json or config.json

Step 3: Create or Edit the Configuration File

If the file doesn’t exist, create a new file named mcp.json in the .cursor directory and paste this configuration

{
"mcpServers": {
"existing-server": {
// existing config
},
"hostinger-mcp": {
"command": "npx",
"args": ["hostinger-api-mcp@latest"],
"env": {
"API_TOKEN": "YOUR_HOSTINGER_API_TOKEN"
}
}
}
}

If the file already exists, add the hostinger-mcp section inside the existing mcpServers object

{
"mcpServers": {
"existing-server": {
"command": "...",
"args": ["..."]
},
"hostinger-mcp": {
"command": "npx",
"args": [
"hostinger-api-mcp@latest"
],
"env": {
"API_TOKEN": "YOUR_HOSTINGER_API_KEY"
}
}
}
}

Step 4: Save and Restart Cursor

  1. Save the file (Cmd + S on Mac or Ctrl + S on Windows/Linux)
  2. Completely quit Cursor:
    • Mac: Cmd + Q or Cursor menu → Quit Cursor
    • Windows: File → Exit (don’t just close the windows)
  3. Restart Cursor

Step 5: Verify the Setup

  1. Open a project in Cursor
  2. Open Cursor’s AI chat (Cmd + L on Mac or Ctrl + L on Windows/Linux)
  3. Try a test command such as:
    • “Can you access my Hostinger account?”
    • “List my Hostinger domains”

If the setup is correct, Cursor will use the Hostinger MCP connection.

Method 2: Using Cursor’s AI Assistant to Configure

Cursor can automatically create or update your MCP file.

Step 1: Open Cursor Composer

  1. Press `Cmd + I` (Mac) or `Ctrl + I` (Windows/Linux) to open Composer
  2. Or press `Cmd + L` (Mac) or `Ctrl + L` (Windows/Linux) for regular chat

Step 2: Paste This Configuration Request

I need to set up the Hostinger MCP server in Cursor. Please help me:

1. Create or open the file at ~/.cursor/mcp.json (Mac/Linux) or %USERPROFILE%.cursormcp.json (Windows)

2. Add this configuration to the file:

{

"mcpServers": {

"hostinger-mcp": {

"command": "npx",

"args": [

"hostinger-api-mcp@latest"

],

"env": {

"API_TOKEN": "YOUR_HOSTINGER_API_TOKEN"

}

}

}

}

If the file already has mcpServers configured, just add the hostinger-mcp entry to the existing mcpServers object.

Please create/update the file and let me know when it's done.

Step 3: Review and Apply

  1. Cursor will show you what it’s going to do
  2. Review the changes
  3. Approve and let Cursor create/update the file

Step 4: Restart Cursor

Completely quit and restart Cursor for changes to take effect.

Once Cursor restarts, your Hostinger MCP integration is ready to use. If you run into any issues, feel free to contact our Support team — we’re always here to help you get the most out of your hosting tools.