# hostkey-cloud

> hostkey-cloud is an open-source MCP server for cloud and infrastructure. MCP server giving AI clients access to a Hostkey hosting account for servers, DNS. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, Web
- **Repository:** https://github.com/hostkey-cloud/mcp-server
- **MCP Registry name:** io.github.hostkey-cloud/mcp-server
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-21

## About

Hostkey's MCP server connects AI assistants to a Hostkey account through its InvAPI interface. Once connected, a model can list and inspect servers, check power state, browse the catalog of presets, operating systems and traffic plans, and place orders. Operations cover network ports, reverse DNS, DNS zones and records, VM snapshots, ISO images, S3 buckets, Remote Hands tickets, invoices and API keys.

It runs locally over stdio through npm and is configured in clients such as Cursor and VS Code using an API key. A hosted streamable-HTTP endpoint is also offered for cloud agents, so no local Node install is needed. Write actions require an explicit confirm flag, and ordering defaults to a dry run. Destructive operations such as OS reinstalls, PXE cycles and service cancellations stay disabled unless an environment variable is set.

The server suits developers and operators who manage Hostkey infrastructure and want an assistant to handle routine provisioning, power and DNS tasks with guardrails on changes.

## Features

- **Server management:** Lists servers and reads their details and power status through typed tools.
- **Guided ordering:** Orders servers from the catalog, with dry run as the default until consent is given.
- **DNS control:** Manages PTR records, zones and records, with write access tied to a specific key permission.
- **Confirmation gates:** Every write call needs an explicit confirm flag before anything changes.
- **Destructive action switch:** Reinstalls, PXE cycles and cancellations are blocked unless explicitly enabled.
- **Task polling:** Long-running jobs return a callback key that can be checked until they finish.
- **Billing and storage access:** Reads invoices and contacts and manages S3 buckets and ISO images.

## Good for

- Check power state and details for every server in a Hostkey account
- Order a new VPS from a chosen location with a dry run first
- Update DNS records or reverse DNS for hosted servers
- Reinstall an operating system on a server with destructive actions enabled
- Review invoices and payments from within an AI assistant

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http mcp-server https://mcp.hostkey.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "http",
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.hostkey.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "http",
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.hostkey.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server --url https://mcp.hostkey.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
url = "https://mcp.hostkey.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "httpUrl": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http mcp-server https://mcp.hostkey.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "serverUrl": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "url": "https://mcp.hostkey.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "streamableHttp",
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server": {
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.hostkey.com/mcp
```

Enter a Name (for example "hostkey-cloud"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "http",
      "url": "https://mcp.hostkey.com/mcp"
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 14 tools changes data; 6 names don't say. From the server's own tool labels and tool names; not verified by us.

- `get_servers` (name suggests: reads): Lists servers in the account.
- `get_server` (name suggests: reads): Returns details for one server.
- `get_power_status` (name suggests: reads): Reports the power state of a server.
- `power_on`: Powers a server on.
- `power_off`: Powers a server off.
- `order_server`: Orders a server, defaulting to dry run.
- `reinstall_server`: Reinstalls the operating system on a server.
- `list_presets` (name suggests: reads): Lists server presets from the catalog.
- `list_os` (name suggests: reads): Lists available operating systems.
- `list_traffic_plans` (name suggests: reads): Lists traffic plans.
- `create_reinstall_task` (name suggests: changes): Starts a PXE reinstall task.
- `clear_pxe_config`: Clears the PXE configuration.
- `check_task` (name suggests: reads): Checks the status of a long-running task.
- `call_api_raw`: Calls an InvAPI endpoint directly.

## FAQ

### How do I connect the server?

Install it through npx or add the hosted endpoint to your client, supplying your InvAPI key as HOSTKEY_API_KEY or as a bearer token.

### Does hostkey-cloud place orders automatically?

No. order_server defaults to a dry run, and a real order requires explicit consent.

### Are destructive actions enabled by default?

No. OS reinstalls, PXE operations and service cancellations need HOSTKEY_ALLOW_DESTRUCTIVE set to 1.

### Can I restrict the key's access?

Yes. Per-server API keys limit access to one server, and DNS writes need the pdns/edit permission.

### Is hostkey-cloud free?

Yes. hostkey-cloud is open source, so you can use and self-host it for free.

### How do I add hostkey-cloud to Claude Code?

Run this command in your terminal: claude mcp add --transport http mcp-server https://mcp.hostkey.com/mcp

### What are the best alternatives to hostkey-cloud?

The closest alternatives to hostkey-cloud are MCP Server Ru, awslabs, HepCloud, VPS MCP & Digital Secretary and Hostinger.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP Server Ru](https://ai-powered.com/mcp/mcp-server-ru): MCP Server Ru is an open-source MCP server for cloud and infrastructure.
- [awslabs](https://ai-powered.com/mcp/awslabs): awslabs is an open-source MCP server for cloud and infrastructure.
- [HepCloud](https://ai-powered.com/mcp/hepcloud): HepCloud is an MCP server for cloud and infrastructure.
- [VPS MCP & Digital Secretary](https://ai-powered.com/mcp/vps-mcp-and-digital-secretary): VPS MCP & Digital Secretary is an open-source MCP server for cloud and infrastructure.
- [Hostinger](https://ai-powered.com/mcp/hostinger): Hostinger is a free MCP server for cloud and infrastructure.
- [Komodo MCP Server](https://ai-powered.com/mcp/komodo-mcp-server-2): Komodo MCP Server is an open-source MCP server for cloud and infrastructure.
- [Pi-hole MCP Server](https://ai-powered.com/mcp/pi-hole-mcp-server-2): Pi-hole MCP Server is an open-source MCP server for cloud and infrastructure.
- [Hostsmith](https://ai-powered.com/mcp/hostsmith): Hostsmith is an MCP server for cloud and infrastructure.

---
Source: https://ai-powered.com/mcp/hostkey-cloud
