MCP server

Manage hostd Public Cloud from an AI agent (Cursor, Claude Code) over the Model Context Protocol.

The hostd MCP server lets an AI agent work with your Public Cloud on your behalf: list projects and OS images, add SSH keys, create and manage VMs, and set PTR records. It uses the same API and the same API key.

Endpoint: https://mcp.hostd.cloud/mcp (Streamable HTTP).

Connect

Create an API key in the portal under Settings → API Keys. A separate key for the agent is a good default: you can delete it at any time without affecting your other integrations.

Cursor — add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "hostd": {
      "url": "https://mcp.hostd.cloud/mcp",
      "headers": { "Authorization": "Bearer <your-api-key>" }
    }
  }
}

Claude Code:

claude mcp add --transport http hostd https://mcp.hostd.cloud/mcp \
  --header "Authorization: Bearer <your-api-key>"

Access

The agent works with your API key, so it has the same access as the key: your role in each project, limited by the project's API access set by its owner (details). Projects with no API access are hidden from the agent; in read-only projects it can only read.

Example

Create a VM in project x, install Docker on it, hostname test.x.com.

The agent:

  1. Finds the project and a suitable OS image.
  2. Reads your public SSH key from your computer and adds it to hostd if it is missing.
  3. Shows you a draft (size, network, hourly price) and creates the VM only after you approve it.
  4. Waits until the VM is running and gets its public IP.
  5. Connects over SSH from your computer and installs the software.

SSH runs in the agent's own terminal with your key — hostd never receives your private key. The agent needs terminal access for this step.

If you do not give a password, a random one is generated and saved in the VM notes in the portal. It is not shown in the chat.

Tools

ToolWhat it does
hostd_list_clustersZones and hourly prices
hostd_list_projects, hostd_get_projectProjects and their limits
hostd_get_account_usageAccount CPU / RAM / disk usage vs limits
hostd_list_os_imagesOS images for new VMs
hostd_list_ssh_keys, hostd_create_ssh_keySSH keys on your account
hostd_list_vms, hostd_get_vmVMs, status, current load, IP addresses
hostd_get_vm_metricsCPU, RAM, network, and disk load over an hour, day, week, or month
hostd_create_vmCreate a VM (requires your approval)
hostd_wait_vm_readyWait until a VM is running and return its IPs
hostd_power_vmStart, shut down, stop, reboot, reset
hostd_delete_vmDelete a stopped VM (requires your approval; the agent asks whether to keep the public IPs and backups)
hostd_update_ptrSet the PTR record of a public IP
hostd_list_project_tasksRecent tasks in a project

Limits

The MCP server follows the API limits. It also paces the agent: repeated calls wait briefly instead of failing, and the agent gets the retry time when a limit is reached.

On this page