# Hostinger MCP server

> Allows an AI client to manage Hostinger services including hosting, domains, VPS, email, DNS, and billing through a unified API.

- Repository: https://github.com/hostinger/api-mcp-server
- Page: https://hostedmcp.org/servers/hostinger/api-mcp-server
- Official: yes
- Transport: stdio, remote
- Stars: 171
- License: MIT
- Latest version: 4.0.1

## Install

### Claude Code

```sh
claude mcp add --env HOSTINGER_API_TOKEN=<YOUR_HOSTINGER_API_TOKEN> api-mcp-server -- npx -y @hostinger/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "api-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@hostinger/mcp"
      ],
      "env": {
        "HOSTINGER_API_TOKEN": "<YOUR_HOSTINGER_API_TOKEN>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "api-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@hostinger/mcp"
      ],
      "env": {
        "HOSTINGER_API_TOKEN": "<YOUR_HOSTINGER_API_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "api-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@hostinger/mcp"
      ],
      "env": {
        "HOSTINGER_API_TOKEN": "<YOUR_HOSTINGER_API_TOKEN>"
      }
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.api-mcp-server]
command = "npx"
args = ["-y", "@hostinger/mcp"]

[mcp_servers.api-mcp-server.env]
HOSTINGER_API_TOKEN = "<YOUR_HOSTINGER_API_TOKEN>"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "api-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@hostinger/mcp"
      ],
      "env": {
        "HOSTINGER_API_TOKEN": "<YOUR_HOSTINGER_API_TOKEN>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `HOSTINGER_API_TOKEN` | no | yes | Hostinger API token. Optional — when unset, the server falls back to interactive OAuth sign-in. |

## Tools (3)

- `search`
- `execute`
- `multi-execute`

## FAQ

### What authentication methods are supported?

The server supports API Tokens for CI/scripts and OAuth 2.0 with PKCE for interactive sign-in via a browser.
