Register a new agent account and get an API key.
No authentication needed. The returned API key grants read+write access
to all BorealHost API endpoints. Store it securely — it cannot be
retrieved again.
The key is automatically activated for this session — all subsequent
tool calls will use it. N
set_api_key
Set your BorealHost API key for this session.
Call this if you already have an API key (from a previous registration,
checkout completion, or the BorealHost panel). All subsequent tool calls
will use this key for authentication.
No need to call this after register() — the key is set automatically.
whoami
Check the current API key's account info, scopes, and site count.
Requires: BOREALHOST_API_KEY env var (read scope).
Returns:
{"user": {"id": "uuid", "email": "...", "date_joined": "iso8601"},
"api_key": {"id": "uuid", "name": "...", "prefix": "bh_...",
"scopes": ["read",
request_api_key
Request an API key for a site you are running on (challenge-response).
This starts a two-step verification flow:
1. A claim token is written to your container at ~/.borealhost/.claim_token
(mode 600, owner admin — only readable if you're on the container)
2. Read that file and call claim_api_key
claim_api_key
Claim an API key using a claim token from the container.
After calling request_api_key(), read the claim token from
~/.borealhost/.claim_token on your container and pass it here.
The token is single-use — once claimed, it cannot be used again.
The API key is automatically activated for this MCP se
list_plans
List available hosting plans with pricing and resources.
No authentication needed.
Args:
track: Filter by plan track. Valid values: "single_site", "agency".
Leave empty to list all tracks.
include_deprecated: Include deprecated plans (default: false)
Returns:
[{"slug": "sit
create_checkout
Start a new checkout session to purchase a hosting plan.
No authentication needed. After creating, call update_checkout to set
buyer info, then complete_checkout to pay.
Args:
sku: Plan SKU in format bh_{plan_slug}_{monthly|annual}.
Examples: "bh_site_starter_monthly", "bh_site_pro_an
update_checkout
Set buyer email and desired site slug on a checkout session.
The checkout must be in "not_ready" status. Setting requested_slug
transitions status to "ready" (required before completing).
Args:
checkout_id: Checkout session ID from create_checkout
buyer_email: Optional email — if omitted,
complete_checkout
Complete checkout with payment and start site provisioning.
The checkout must be in "ready" status.
Two payment methods:
- "stripe_checkout" (default): Returns a short, chat-safe payment URL.
**Present `payment_url` to the human — NOT `stripe_checkout_url`.**
The raw Stripe URL has a required
get_checkout_status
Poll a checkout session for status updates.
Call this after complete_checkout to track payment and provisioning.
Polling strategy:
- First 60 seconds: every 5 seconds
- After 60 seconds: every 15 seconds
- Stop after 10 minutes if not completed
Checkout statuses (in order):
- "not_ready": Missing
get_site_status
Get detailed status of a hosted site including resources, domains, and modules.
Requires: API key with read scope.
Args:
slug: Site identifier (the slug chosen during checkout)
Returns:
{"slug": "my-site", "plan": "site_starter", "status": "active",
"domains": ["my-site.borealhost.ai
manage_dns
Create or delete DNS records for a site.
Requires: API key with write scope.
Args:
slug: Site identifier
action: "create" or "delete"
record_type: "A", "AAAA", "CNAME", "MX", "TXT", or "SRV"
subdomain: Subdomain part (e.g. "www", "mail"). Leave empty for
the apex/roo
install_app
Install an app template on a VPS/Cloud site.
Starts a background installation. Poll get_app_status() for progress.
Requires: API key with write scope. VPS or Cloud plan only.
Args:
slug: Site identifier
template: App template slug. Available: django, laravel, nextjs, nodejs,
get_app_status
Get app installation status and log.
Poll this after install_app() to track progress.
Requires: API key with read scope.
Args:
slug: Site identifier
app_id: App ID from install_app() response
Returns:
{"id": "uuid", "app_name": "myapp", "status": "running"|"installing"|"failed",
list_apps
List installed apps on a site.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"apps": [{"id": "uuid", "app_name": "myapp", "template_slug": "django",
"status": "running", "domain": "myapp.mysite.borealhost.ai"}]}
list_snapshots
List all snapshots and scheduled snapshots for a site.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"snapshots": [{"id": "uuid", "name": "snap-...", "status": "completed",
"storage_type": "local"|"b2", "size_bytes": 1234, "size_display": "1.2 Mo",
"cr
create_snapshot
Create a local container snapshot (async).
Runs in background — returns immediately with status "creating".
Poll list_snapshots() to check when status becomes "completed" or "failed".
Available for VPS, dedicated, and cloud plans (any plan with max_snapshots > 0).
Local snapshots are stored on the
create_b2_snapshot
Create a B2 cloud-backed snapshot (zero local disk, async).
Streams container data directly to Backblaze B2 via restic.
No local disk impact — billed separately at cost+5%.
Runs in background — returns immediately with status "creating".
Poll list_snapshots() to check when status becomes "completed
delete_snapshot
Delete a snapshot (local or B2).
Requires: API key with write scope.
Args:
slug: Site identifier
snapshot_id: UUID of the snapshot to delete
Returns:
{"success": true, "message": "Snapshot deleted"}
Errors:
NOT_FOUND: Snapshot not found
rollback_snapshot
Rollback a site to a previous snapshot.
WARNING: This is destructive. The current state of the container will be
replaced with the snapshot contents.
Requires: API key with admin scope.
Args:
slug: Site identifier
snapshot_id: UUID of the snapshot to rollback to
Returns:
{"success":
get_snapshot_usage
Get snapshot disk usage and quota info for a site.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"disk_quota_gb": 200, "max_snapshots": 5, "snapshot_count": 2,
"local_snapshot_bytes": 1234, "b2_snapshot_bytes": 5678,
"can_create": true}
schedule_snapshot
Schedule a snapshot for future execution.
Requires: API key with write scope. Max 3 pending schedules per site.
Args:
slug: Site identifier
scheduled_at: ISO 8601 datetime (must be in the future)
description: Optional description (max 200 chars)
Returns:
{"id": "uuid", "scheduled_
cancel_scheduled_snapshot
Cancel a scheduled snapshot.
Requires: API key with write scope.
Args:
slug: Site identifier
schedule_id: UUID of the scheduled snapshot to cancel
Returns:
{"success": true, "message": "Scheduled snapshot cancelled"}
Errors:
NOT_FOUND: Schedule not found or already executed
list_backups
List all backups for a site (automatic and manual).
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
[{"id": "uuid", "backup_type": "auto"|"manual", "status": "completed",
"size_bytes": 1234, "size_display": "1.2 Mo",
"timestamp": "iso8601", "notes": "..."
create_backup
Create a manual backup (runs asynchronously).
The backup starts in the background. Poll list_backups() to check status.
Requires: API key with write scope.
Args:
slug: Site identifier
Returns:
{"id": "uuid", "status": "pending",
"message": "Backup started. Poll list_backups() to che
restore_backup
Restore a site from a backup.
WARNING: This is destructive. The current state of the site will be
replaced. Runs asynchronously — may take several minutes.
Requires: API key with admin scope.
Args:
slug: Site identifier
backup_id: UUID of the backup to restore from
Returns:
{"success
get_metrics
Get traffic and performance metrics for a site.
Requires: API key with read scope.
Args:
slug: Site identifier
days: Number of days of history (1–90, default: 7)
Returns:
{"requests": [...], "bandwidth": [...], "errors": [...],
"period": {"start": "iso8601", "end": "iso8601"}}
E
scale
Change a site's hosting plan (upgrade or downgrade).
Requires: API key with admin scope. Best practice: create a snapshot
before downgrading.
Args:
slug: Site identifier
new_plan: Target plan slug (e.g. "site_pro", "site_managed").
Call list_plans() to see available plans.
R
decommission
Delete a site and schedule resource cleanup (7-day grace period).
WARNING: This is destructive. The site will be inaccessible immediately
but data is retained for 7 days before permanent deletion.
Best practice: create a snapshot before decommissioning.
Requires: API key with admin scope.
Args:
update_account
Update account profile fields (email, language, name).
Requires: API key with write scope.
Only provided (non-empty) fields are updated.
Args:
email: New email address
language: Language preference — "fr" (French) or "en" (English)
first_name: First name
last_name: Last name
Retur
delete_account
Permanently anonymize the account. Cancels subscriptions, deactivates keys.
WARNING: This is irreversible. The account will be soft-deleted and all
personal data anonymized. All sites will be decommissioned.
Requires: API key with admin scope.
Returns:
{"success": true, "message": "Account an
list_subscriptions
List all subscriptions with plan details, pricing, status, and site slug.
Requires: API key with read scope.
Returns:
[{"id": "uuid", "plan_slug": "site_starter", "plan_name": "Starter",
"status": "active", "billing_period": "monthly",
"price": {"amount": 500, "currency": "cad"},
get_billing_portal
Get a Stripe billing portal URL for managing payment methods and invoices.
Returns a URL (not a redirect) that the human can open in a browser.
Requires: API key with read scope.
Args:
flow: Optional. Set to "payment_method_update" to go directly
to the payment method update page.
rotate_key
Atomically rotate an API key. Old key is immediately invalidated.
Creates a new key with the same name, scopes, and rate limits.
The new key is returned once — store it immediately.
Requires: API key with write scope.
Args:
key_id: UUID of the API key to rotate (get from whoami())
Returns:
create_api_key
Create a new API key with specified scopes.
Cannot create keys with higher scopes than the current key.
Site-scoped keys restrict access to a single site.
Requires: API key with write scope.
Args:
name: Human-readable name for the key (1-100 chars)
scopes: Comma-separated scopes. Options:
list_api_keys
List all API keys for the account.
Shows key metadata (name, prefix, scopes, last used) but never the
full key value.
Requires: API key with read scope.
Returns:
[{"id": "uuid", "name": "My Key", "prefix": "bh_a2...",
"scopes": ["read", "write"], "is_active": true,
"created_at": "
revoke_api_key
Revoke (deactivate) an API key. The key stops working immediately.
Requires: API key with write scope.
Args:
key_id: UUID of the key to revoke (from list_api_keys or whoami)
Returns:
{"success": true, "message": "API key revoked"}
Errors:
NOT_FOUND: Key not found or already revoked
get_ssh_info
Get SSH connection info for a VPS/dedicated site.
Only available for VPS/dedicated plans (not shared hosting).
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"host": "184.107.x.x", "port": 22, "username": "admin",
"ssh_command": "ssh admin@184.107.x.x"}
Er
add_ssh_key
Inject your SSH public key into a site's container for direct SSH access.
The key is appended to /home/admin/.ssh/authorized_keys.
Only available for VPS/dedicated plans.
Requires: API key with write scope.
Args:
slug: Site identifier
public_key: SSH public key string. Supported types:
list_files
List files and directories in a site's container.
Path scoping depends on the plan:
- Shared plans: rooted at wp-content/ (WordPress content directory)
- VPS/dedicated plans: full filesystem access
Requires: API key with read scope.
Args:
slug: Site identifier
path: Relative path to list
read_file
Read the contents of a file from a site's container.
Max file size: 512KB. Binary files are rejected — use the site's
file manager or SSH for binary files.
Requires: API key with read scope.
Args:
slug: Site identifier
path: Relative path to the file
Returns:
{"path": "wp-config.php"
write_file
Write or overwrite a text file in a site's container.
Creates parent directories if they don't exist.
Requires: API key with write scope.
Args:
slug: Site identifier
path: Relative path to the file
content: File content as a UTF-8 string
Returns:
{"success": true, "path": "...",
upload_file
Upload a base64-encoded file to a site's container.
Use this for binary files (images, archives, fonts, etc.).
For text files, prefer write_file().
Requires: API key with write scope.
Args:
slug: Site identifier
path: Relative path including filename (e.g. "images/logo.png")
content_b
delete_file
Delete a file or directory from a site's container.
Directories are deleted recursively. Protected system paths
(e.g. /etc, /usr) cannot be deleted.
Requires: API key with write scope.
Args:
slug: Site identifier
path: Relative path to delete
Returns:
{"success": true, "path": "...",
create_directory
Create a directory in a site's container.
Creates parent directories if they don't exist.
Requires: API key with write scope.
Args:
slug: Site identifier
path: Relative path of the directory to create
Returns:
{"success": true, "path": "uploads/2024", "message": "Directory created"}
list_plugins
List installed WordPress plugins with status.
Requires: API key with read scope. WordPress sites only.
Args:
slug: Site identifier
Returns:
{"plugins": [{"name": "akismet", "status": "active", "version": "5.3",
"update_available": false}, ...]}
list_themes
List installed WordPress themes with status.
Requires: API key with read scope. WordPress sites only.
Args:
slug: Site identifier
Returns:
{"themes": [{"name": "twentytwentyfour", "status": "active",
"version": "1.0", "update_available": false}, ...]}
manage_plugin
Install, activate, deactivate, or delete a WordPress plugin.
Requires: API key with write scope.
Args:
slug: Site identifier
action: "install", "activate", "deactivate", or "delete"
plugin: Plugin slug (e.g. "akismet", "jetpack", "woocommerce")
Returns:
{"action": "install", "plug
manage_theme
Install, activate, or delete a WordPress theme.
Requires: API key with write scope.
Args:
slug: Site identifier
action: "install", "activate", or "delete"
theme: Theme slug (e.g. "twentytwentyfour", "astra")
Returns:
{"action": "install", "theme": "astra", "result": {...}}
wp_check_updates
Check for available WordPress core, plugin, and theme updates.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"core": {"current": "6.5", "update": "6.6"},
"plugins": [{"name": "...", "current": "1.0", "new": "1.1"}],
"themes": [...]}
wp_update_all
Update WordPress core, all plugins, and all themes.
Runs all updates in sequence. May take up to 2 minutes.
Requires: API key with write scope.
Args:
slug: Site identifier
Returns:
{"core": {...}, "plugins": [...], "themes": [...]}
list_cron
List cron jobs on a site.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"jobs": [{"line": 1, "schedule": "*/5 * * * *",
"command": "/usr/bin/php /var/www/html/wp-cron.php"}, ...]}
add_cron
Add a cron job to a site.
Requires: API key with write scope.
Args:
slug: Site identifier
schedule: Cron schedule (e.g. "*/5 * * * *", "0 2 * * *")
command: Command to execute
Returns:
{"added": true, "result": {...}}
delete_cron
Delete a cron job by line number.
Get line numbers from list_cron().
Requires: API key with write scope.
Args:
slug: Site identifier
line_number: Line number of the cron entry to delete
Returns:
{"deleted": true}
ssl_info
Get SSL certificate information for a site.
Returns certificate details, expiry date, and issuer.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"issuer": "Let's Encrypt", "domain": "example.com",
"expires_at": "iso8601", "days_remaining": 60,
"force_h
ssl_renew
Force SSL certificate renewal via certbot.
Requires: API key with write scope.
Args:
slug: Site identifier
Returns:
{"renewed": true, "expires_at": "iso8601"}
list_php_versions
List available PHP versions and the currently active one.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"versions": [{"version": "8.1", "active": false},
{"version": "8.2", "active": false},
{"version": "8.3", "active": true}]}
switch_php
Switch the active PHP version for a site.
Requires: API key with write scope.
Args:
slug: Site identifier
version: Target PHP version (e.g. "8.3", "8.2", "8.1")
Returns:
{"version": "8.3", "result": {...}}
cache_status
Get cache status (Redis, WP object cache, hit rates).
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"redis_running": true, "object_cache_enabled": true,
"hit_rate": 0.95, "memory_used_mb": 12}
cache_flush
Flush all caches (Redis + WP object cache).
Requires: API key with write scope.
Args:
slug: Site identifier
Returns:
{"flushed": true}
cache_toggle
Enable or disable the WordPress object cache.
Requires: API key with write scope.
Args:
slug: Site identifier
enable: true to enable, false to disable
Returns:
{"enabled": true}
get_database_info
Get WordPress database information (size, tables, row counts).
Requires: API key with read scope. WordPress sites only.
Args:
slug: Site identifier
Returns:
{"database": "wp_mysite", "size_mb": 45.2,
"tables": 12, "total_rows": 15432}
optimize_database
Optimize WordPress database tables (reduces bloat).
Requires: API key with write scope.
Args:
slug: Site identifier
Returns:
{"optimized": true, "tables_optimized": 12}
database_search_replace
Search and replace in WordPress database (e.g. URL migration).
Handles serialized data safely. Use dry_run=true first to preview changes.
Requires: API key with write scope.
Args:
slug: Site identifier
old: String to search for (e.g. "http://old-domain.com")
new: Replacement string (e
list_databases
List all databases on a site's container.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"databases": ["wordpress", "app_db", ...]}
list_tables
List tables in a database.
Requires: API key with read scope.
Args:
slug: Site identifier
database: Database name
Returns:
{"tables": [{"name": "wp_posts", "rows": 1234, "size_mb": 5.2}, ...]}
execute_query
Execute a SQL query on a site's database.
Supports SELECT, INSERT, UPDATE, DELETE, and DDL statements.
Results are limited to 1000 rows for SELECT queries.
Requires: API key with write scope.
Args:
slug: Site identifier
database: Database name
query: SQL query string
Returns:
{"c
get_stack_info
Get detailed system stack information (OS, PHP, DB, web server versions).
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"os": "Debian 12", "kernel": "6.1.0",
"php": "8.3.4", "mysql": "10.11.6-MariaDB",
"nginx": "1.24.0", "wordpress": "6.5"}
get_resource_snapshot
Get current resource usage (CPU, memory, disk, load average).
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"cpu_percent": 12.5, "memory_mb": 384, "memory_total_mb": 512,
"disk_used_gb": 3.2, "disk_total_gb": 10,
"load_1m": 0.5, "load_5m": 0.3, "load_1
cloudflare_proxy_status
Get Cloudflare proxy (CDN) status for a site.
Shows whether traffic is routed through Cloudflare's CDN (orange cloud)
or goes direct to origin (grey cloud / DNS-only).
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"domain": "my-site.borealhost.ai", "has_record"
cloudflare_set_proxy
Enable or disable Cloudflare CDN proxy for a site.
When enabled (orange cloud): traffic goes through Cloudflare's CDN,
gets caching, DDoS protection, and SSL termination at the edge.
When disabled (grey cloud): traffic goes directly to origin server.
Requires: API key with write scope.
Args:
cloudflare_purge_cache
Purge Cloudflare CDN cache for a site.
Without urls: purges all cached content for the site's subdomain.
With urls: purges only the specified URLs (max 30 per call).
Requires: API key with write scope.
Args:
slug: Site identifier
urls: Optional list of specific URLs to purge
(e.
list_ftp_accounts
List SFTP accounts on a site.
Also returns the host and port to connect to. Do not use the site's domain
for SFTP: it is Cloudflare-proxied and only carries HTTP(S).
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"accounts": [{"username": "sftpuser", "home": "/w
create_ftp_account
Create an SFTP account on a site.
The account is chrooted to /var/www and lands in home_dir. Password must be
at least 8 characters. Username must be lowercase alphanumeric.
Requires: API key with write scope.
Args:
slug: Site identifier
username: SFTP username (lowercase, max 32 chars)
remove_ftp_account
Remove an SFTP account from a site.
Requires: API key with write scope.
Args:
slug: Site identifier
username: SFTP username to remove
Returns:
{"removed": true, "username": "sftpuser"}
list_alert_rules
List user-configurable alert rules for a site.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
[{"id": "uuid", "metric": "disk", "operator": "gt",
"threshold": 90, "severity": "warning", "enabled": true,
"cooldown_minutes": 30, "notify_email": true}]
create_alert_rule
Create an alert rule to monitor CPU, memory, or disk usage.
When the metric crosses the threshold, a notification is sent via
email and/or webhook. Max 10 rules per site.
Requires: API key with write scope.
Args:
slug: Site identifier
metric: "cpu", "memory", or "disk" (percentage-based)
delete_alert_rule
Delete an alert rule.
Requires: API key with write scope.
Args:
slug: Site identifier
rule_id: UUID of the alert rule to delete
Returns:
{"deleted": true, "id": "uuid"}
run_malware_scan
Run a ClamAV malware scan on a site's container.
Scans the web root (or specified path) for malware, viruses, and trojans.
ClamAV is installed automatically if not present. Excludes node_modules,
vendor, .git, and cache directories.
May take up to 5 minutes for large sites.
Requires: API key with
list_firewall_rules
List IP allow/deny firewall rules for a site.
Rules are implemented as Nginx allow/deny directives per container.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"rules": [{"ip": "1.2.3.4", "action": "deny"},
{"ip": "10.0.0.0/8", "action": "allow"}]}
add_firewall_rule
Add an IP firewall rule (allow or deny) and reload Nginx.
Supports IPv4, IPv6, and CIDR notation. Max 100 rules per site.
If a rule already exists for the IP, the action is updated.
Requires: API key with write scope.
Args:
slug: Site identifier
ip: IP address or CIDR (e.g. "1.2.3.4", "10
remove_firewall_rule
Remove an IP firewall rule and reload Nginx.
Requires: API key with write scope.
Args:
slug: Site identifier
ip: IP address or CIDR to remove (must match exactly)
Returns:
{"removed": true, "ip": "1.2.3.4"}
get_logs
Retrieve container logs (error, access, or PHP).
Requires: API key with read scope.
Args:
slug: Site identifier
log_type: "error" (Nginx/Apache errors), "access" (HTTP request log),
or "php" (PHP-FPM errors, WordPress sites only)
lines: Number of lines to retrieve (1–500,
list_domains
List all domains owned by the authenticated user.
Requires: API key with read scope.
Returns:
[{"domain": "example.com", "status": "active",
"expires_at": "iso8601", "auto_renew": true,
"linked_site": "my-site"}]
search_domain
Check domain availability and get pricing.
Requires: API key with read scope.
Args:
domain: Full domain name (e.g. "example.com", "mybiz.ca")
Returns:
{"domain": "example.com", "available": true,
"price": {"amount": 15.99, "currency": "CAD", "period": "1 year"},
"premium": false
register_domain
Register a new domain with WHOIS contact info and Stripe billing.
The domain cost is charged to the user's active subscription.
Free domain if plan includes free_domain_annual + annual billing + first domain.
Requires: API key with write scope.
Args:
domain: Full domain name (e.g. "example.ca
domain_detail
Get full domain details including DNS and infrastructure status.
Requires: API key with read scope.
Args:
domain_name: Full domain name (e.g. "example.com")
Returns:
{"domain": "example.com", "status": "active",
"expires_at": "iso8601", "auto_renew": true,
"nameservers": ["ns1.b
list_subdomains
List subdomain DNS records for a domain you own.
Requires: API key with read scope.
Args:
domain_name: Registrable domain (e.g. "example.com")
Returns:
[{"fqdn": "blog.example.com", "subdomain": "blog",
"record_type": "A", "value": "1.2.3.4", "is_auto": true}, ...]
Errors:
NOT_
add_subdomain
Create and route a subdomain of a site-linked domain.
Creates the DNS A record (if absent) pointing at the site's server,
then configures the nginx vhost and SSL certificate on that server.
The domain must already be linked to a site (see link_domain).
Idempotent: if the DNS record already exists
link_domain
Link a domain to a hosted site.
Attaches the domain to the specified site and triggers automatic
DNS configuration and SSL provisioning.
Requires: API key with write scope.
Args:
domain_name: Full domain name (e.g. "example.com")
site_slug: Site identifier to link the domain to
Returns:
set_domain_usage
Set what a registered domain points at — a site, someone else's
nameservers, our DNS with no site, or a redirect to another URL.
Use this to park a domain, hand it to an external host, or forward it.
Switching modes tears down the previous one (a forwarded domain that
becomes a site domain loses it
domain_settings
Update domain settings (auto-renew, WHOIS privacy, registrar lock).
Only provided (non-None) fields are updated.
Requires: API key with write scope.
Args:
domain_name: Full domain name (e.g. "example.com")
auto_renew: Enable/disable automatic renewal
whois_privacy: Enable/disable WHOI
list_domain_dns
List all DNS records for a domain.
Returns DNS records at the domain level (independent of site-level
manage_dns). Use this for domains that may not be linked to a site.
Requires: API key with read scope.
Args:
domain_name: Full domain name (e.g. "example.com")
Returns:
[{"id": "record-i
add_domain_dns
Add a DNS record to a domain.
Requires: API key with write scope.
Args:
domain_name: Full domain name (e.g. "example.com")
record_type: "A", "AAAA", "CNAME", "MX", "TXT", or "SRV"
value: Record value (e.g. "1.2.3.4" for A, "mail.example.com" for MX)
subdomain: Subdomain part (e.g.
delete_domain_dns
Delete a DNS record from a domain.
Requires: API key with write scope.
Args:
domain_name: Full domain name (e.g. "example.com")
record_id: ID of the DNS record to delete (from list_domain_dns)
Returns:
{"success": true, "message": "DNS record deleted"}
Errors:
NOT_FOUND: Domain o
list_modules
List AI modules and their enabled/disabled state for a site.
Also returns the list of modules available for the site's plan.
Requires: API key with read scope.
Args:
slug: Site identifier
Returns:
{"modules": {"chatbot": true, "seo": false, "translation": false,
"content": false}, "
toggle_module
Enable or disable an AI module on a site.
The module must be in the plan's available module list.
Requires: API key with write scope.
Args:
slug: Site identifier
module_name: Module to toggle. Available modules:
"chatbot" (AI chat widget), "seo" (SEO optimization),
list_compute_types
List on-demand compute instance types with hourly CAD prices.
On-demand instances are real cloud VMs in Canada (Montreal region),
billed per minute (1-hour minimum) post-paid onto your existing
BorealHost subscription. Use them for short-lived extra compute
(builds, batch jobs, experiments).
Requi
list_compute_images
List OS images available for on-demand compute instances.
Requires: API key with read scope.
Returns:
{"images": [{"id": "UBUNTU_24_04_64BIT", "name": "Ubuntu 24.04 LTS (x86_64)",
"family": "linux", "flavour": "ubuntu"}, ...]}
launch_compute_instance
Launch an on-demand hourly compute instance (Canada, CAD).
Billing starts at launch (per minute, 1-hour minimum) and runs until
terminate_compute_instance — stopping does NOT stop the charge. Every
instance has a hard TTL
(max_lifetime_hours, default 72h) after which it is auto-terminated.
Usage is
list_compute_instances
List your on-demand compute instances with month-to-date spend.
Requires: API key with read scope.
Returns:
{"instances": [...], "month_to_date_spend_cad": 12.34,
"monthly_spend_cap_cad": 500.0}
get_compute_instance
Get live details for a compute instance (state, public IP, accrued cost).
State is synced from the cloud provider on each call. SSH as root once
state is "running" and public_ip is set.
Requires: API key with read scope.
Args:
instance_id: Instance UUID from launch_compute_instance / list
Re
start_compute_instance
Start a stopped compute instance.
Requires: API key with write scope.
stop_compute_instance
Stop a compute instance. WARNING: hourly billing continues while stopped.
Use terminate_compute_instance to stop the charges permanently.
Requires: API key with write scope.
reboot_compute_instance
Reboot a running compute instance.
Requires: API key with write scope.
terminate_compute_instance
Permanently terminate a compute instance — this stops hourly billing.
The instance and its disk are destroyed and cannot be recovered. Copy any
results off the instance before terminating.
Requires: API key with write scope.
Returns:
Final instance dict with state "terminated" and total accru
list_compute_volumes
List your compute volumes — machines that survive instance termination.
A volume is a whole machine (packages, drivers, services, users, data)
stored in Canada. Detaching destroys the instance but keeps the machine;
attaching restores it onto a fresh instance, optionally of a DIFFERENT
type. That i
get_compute_volume
Get a volume's live state, its instance, and its monthly storage cost.
Requires: API key with read scope.
Returns:
Volume dict plus "monthly_storage_cad". After attach, poll this until
instance.state is "running" — then allow a few more minutes for the
restore to finish and the machine
create_compute_volume
Create a persistent machine and boot its first instance.
Start here, then set the machine up however you like (install packages,
drivers, models). Everything you do becomes part of the volume the first
time you detach or snapshot it.
While attached you pay hourly compute; while detached you pay on
adopt_compute_instance
Turn an instance you are ALREADY running into a persistent volume.
Use this when you launched something, set it up, and then decided you want
to keep it. Nothing reboots and no data moves — the machine you have
becomes the volume, and you can detach it afterwards to stop paying for
compute while ke
detach_compute_volume
Queue: snapshot the machine, verify it, then destroy the instance.
This is how you stop paying for compute while keeping your work.
ASYNCHRONOUS. Returns immediately with state "detaching" — it does NOT mean
the detach finished. The capture takes minutes (roughly 1 min per 10 GB plus
verification)
attach_compute_volume
Restore a detached volume onto a fresh instance — optionally a new type.
Pass a different instance_type to move the same machine to different
hardware: this is the closest thing to changing instance type that the
provider allows, since it has no resize API at all.
The restore runs at first boot an
snapshot_compute_volume
Queue a checkpoint snapshot without detaching — before a risky change.
ASYNCHRONOUS. Returns immediately with state "snapshotting"; poll
get_compute_volume until it is back to "attached" (done) or "error".
Named systemd units are stopped for the capture so the snapshot is
application-consistent (a
delete_compute_volume
Permanently delete a volume and everything stored in it.
Irreversible: the instance is released AND the stored data is purged from
object storage, so billing genuinely stops. Refuses while an instance is
live unless force=True, so a running machine's only copy cannot be
destroyed by reflex.
Requir
container_action
Start, stop, or restart a site's container.
Only for plans with a dedicated container (VPS / split-VPS / dedicated).
Shared-hosting sites share a container and cannot restart it. The
response reports the observed container state after the action.
Requires: API key with write scope.
Args:
slug
list_support_tickets
List the account's support tickets.
Requires: API key with read scope.
Args:
status: Optional filter (e.g. "open", "closed")
Returns:
[{"id", "subject", "status", "category", "created_at", ...}, ...]
get_support_ticket
Get a support ticket with its full message thread.
Requires: API key with read scope.
Args:
ticket_id: Ticket UUID from list_support_tickets
Returns:
{"id", "subject", "status", "messages": [...]}
create_support_ticket
Open a support ticket with the BorealHost team.
Use this to escalate platform-side problems you cannot fix with the
available tools (billing issues, infrastructure faults, API bugs).
A human answers every ticket — poll get_support_ticket for updates.
Requires: API key with write scope.
Args:
reply_support_ticket
Add a message to an existing support ticket.
Requires: API key with write scope.
Args:
ticket_id: Ticket UUID
message: Reply text
Returns:
{"id", "status", ...}
get_backup_retention
Get the backup retention policy for a VPS site.
Requires: API key with read scope.
Returns:
{"site", "retention": {"keep_daily", "keep_weekly", "keep_monthly"}}
set_backup_retention
Set the backup retention policy for a VPS site.
Storage is billed on real stored bytes, so deeper history costs the
customer, not the platform. Values are clamped to platform bounds; the
response reports what was actually stored. Pass -1 to leave a knob
unchanged, or reset=true to restore defaults.
delete_backup
Permanently delete a single backup (metadata + stored snapshot).
Irreversible. Requires: API key with admin scope.
Returns:
{"site", "backup_id", "deleted": true}
list_redirects
List HTTP redirect rules for a site.
Requires: API key with read scope.
Returns:
[{"id", "source_path", "target_url", "redirect_type"}, ...]
add_redirect
Add an HTTP redirect rule to a site.
Requires: API key with write scope.
Args:
slug: Site identifier
source_path: Path to redirect, must start with "/" (e.g. "/old-page")
target_url: Destination URL
redirect_type: 301 (permanent, default) or 302 (temporary)
Returns:
{"id", "so
delete_redirect
Delete a redirect rule by source path or id.
Requires: API key with write scope.
Returns:
{"site", "deleted": true}
set_force_https
Enable or disable the HTTP→HTTPS redirect for a site.
Requires: API key with write scope.
Returns:
{"site", "force_https": true|false, "message"}
list_db_users
List database users for a site.
Requires: API key with read scope.
Returns:
{"engine", "users": [{"user", "host", ...}, ...]}
manage_db_user
Manage a database user on a site.
Actions: "create" (user+password), "drop" (user),
"set_password" (user+password), "grants" (list a user's grants),
"grant" / "revoke" (user+database, optional privileges e.g. "ALL"
or "SELECT,INSERT").
Requires: API key with write scope.
Returns:
{"engine", "
transfer_out_domain
Prepare a domain to transfer to another registrar.
Unlocks the domain and emails the EPP/auth code to the registrant
contact on file (BorealHost never sees the code). The domain keeps
working here until the transfer completes.
Requires: API key with write scope.
Returns:
{"domain", "unlocked"
enable_wildcard
Route *.domain (every subdomain) to the domain's linked site.
Creates a wildcard DNS record and issues a wildcard certificate via
ACME DNS-01. SLOW — DNS propagation is part of the challenge, expect
2-5 minutes. Requires the domain to be linked to a site and its DNS
hosted by BorealHost.
Requires:
upload_ssl_cert
Install your own SSL certificate for a site's domain.
The certificate must be a PEM fullchain (leaf + intermediates) and the
key unencrypted PEM. Validated (parse, key match, domain coverage,
expiry) before nginx is touched; nginx config is tested before reload.
Requires: API key with write scope.
get_email_status
Email addon status and mailboxes for a site.
Requires: API key with read scope.
Returns:
{"configured": bool, "domain", "mailboxes", "mailbox_list": [...]}
setup_email
Enable business email (hosted mailboxes + webmail) on a domain.
Creates the hosted-email domain, sets up outbound authentication
(DKIM/SPF), and auto-configures MX/SPF DNS when the zone is hosted by
BorealHost. Mailboxes are billed per-mailbox on the site subscription.
Requires: API key with write
create_mailbox
Create a mailbox on the site's email domain.
Password is generated when omitted and returned ONCE — store it.
Each mailbox adds to the subscription's email billing.
Requires: API key with write scope.
Args:
slug: Site identifier
local_part: Part before the @ (e.g. "info")
display_name
delete_mailbox
Delete a mailbox (its mail is destroyed).
Requires: API key with write scope.
Returns:
{"email", "deleted": true}
reset_mailbox_password
Reset a mailbox password (generated when omitted, returned ONCE).
Requires: API key with write scope.
Returns:
{"email", "password", "message"}
get_webmail_url
One-time webmail single-sign-on URL for a mailbox.
Requires: API key with write scope.
Returns:
{"email", "url"}
list_webhooks
List webhook endpoints registered on the account.
Requires: API key with read scope.
Returns:
[{"id", "url", "events", "is_active", "last_status",
"failure_count"}, ...]
create_webhook
Register a webhook endpoint for platform events.
Events (backup failures, security notices, hosting incidents, billing)
are POSTed as JSON, signed with X-BH-Signature (HMAC-SHA256 of the raw
body). The signing secret is returned ONCE. Categories: billing,
security, hosting, decommission, general —
delete_webhook
Remove a webhook endpoint.
Requires: API key with write scope.
Returns:
{"id", "deleted": true}
test_webhook
Send a test event to a webhook endpoint (async).
Poll list_webhooks afterwards for last_status.
Requires: API key with write scope.
Returns:
{"id", "message"}
get_smtp_relay
List SMTP relay credentials for a site, with domain-auth status.
Requires: API key with read scope.
Returns:
{"relays": [{"relay_id", "domain", "status",
"domain_authenticated"}, ...]}
enable_smtp_relay
Enable an SMTP relay for a site's outbound transactional mail.
Provisions a mail-send-only credential on the platform relay and
configures SPF/DKIM DNS when the domain zone is hosted here. The SMTP
password is returned ONCE. Use TLS on port 587, username "apikey".
Requires: API key with write scop
revoke_smtp_relay
Revoke an SMTP relay credential (immediate at the relay).
Requires: API key with write scope.
Returns:
{"relay_id", "revoked": true}
Endpoint
https://borealhost.ai/mcp/ Category: Web & Scraping · Last checked: 2026-08-15T08:44:09Z
Monitor your own MCP server
Get alerted the moment yours goes down, a tool schema drifts, or an upstream silently breaks.
What this means. This server responded to the MCP handshake and listed its tools without authentication. The schema fingerprint lets us flag if tool signatures silently change (schema drift) between checks.