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:
- Finds the project and a suitable OS image.
- Reads your public SSH key from your computer and adds it to hostd if it is missing.
- Shows you a draft (size, network, hourly price) and creates the VM only after you approve it.
- Waits until the VM is running and gets its public IP.
- 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
| Tool | What it does |
|---|---|
hostd_list_clusters | Zones and hourly prices |
hostd_list_projects, hostd_get_project | Projects and their limits |
hostd_get_account_usage | Account CPU / RAM / disk usage vs limits |
hostd_list_os_images | OS images for new VMs |
hostd_list_ssh_keys, hostd_create_ssh_key | SSH keys on your account |
hostd_list_vms, hostd_get_vm | VMs, status, current load, IP addresses |
hostd_get_vm_metrics | CPU, RAM, network, and disk load over an hour, day, week, or month |
hostd_create_vm | Create a VM (requires your approval) |
hostd_wait_vm_ready | Wait until a VM is running and return its IPs |
hostd_power_vm | Start, shut down, stop, reboot, reset |
hostd_delete_vm | Delete a stopped VM (requires your approval; the agent asks whether to keep the public IPs and backups) |
hostd_update_ptr | Set the PTR record of a public IP |
hostd_list_project_tasks | Recent 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.