Skip to main content
Glama

dreamhost-mcp-server

An MCP server that lets an AI assistant work with your DreamHost account through the official DreamHost API v1: DNS records, websites, logs, traffic, performance scans, servers, server users and announcement lists.

It covers all 36 operations in DreamHost's published API as of November 2026, one tool each.

What it can and can't do

DreamHost retired its old cmd=-style API in November 2026 and replaced it with a new REST API. The new one is cleaner, but it is young, and this server can only do what it offers.

Area

Read

Change

DNS

List records in a zone

Create, update and delete records (all types except MX)

Websites

List sites, hosting details, PHP version

Not available in the API

Website logs

Access and error logs, last 7 days

n/a

Website traffic

Visitors, bots, browsers, devices, locations, pages, IPs

n/a

Website performance

Lighthouse scores, history, full reports

Start a scan

Servers

List servers, details, CPU/memory/disk history

Restart, power cycle, reload web server

Server users

List SFTP/shell users

Not available in the API

Announcement lists

Lists and subscribers

Invite or remove subscribers, send an announcement

Not in DreamHost's API today: registering or transferring domains, creating websites, email mailboxes, MySQL databases, SSL certificates and billing. DreamHost lists domains, email and billing as "coming soon". When they arrive, see Keeping up with the API.

Related MCP server: beget-mcp

Setup

1. Create an API key

Go to https://panel.dreamhost.com/?tree=api.dashboard and create a key. Only the account owner can.

  • Keys from the old API do not work. If your key predates November 2026, you need a new one.

  • The key is shown once. Copy it somewhere safe.

  • Each area (DNS, Servers, Websites, ...) is set to No Access, Read-Only or Full Access. Grant only what you want the assistant to be able to do; you can change it later and it takes effect at once.

2. Build

Requires Node.js 20.3 or later.

git clone https://github.com/lifelike-and-believable/dh-mcp.git
cd dh-mcp
npm install
npm run build

3. Connect it to your assistant

Claude Code

claude mcp add --env DREAMHOST_API_KEY=your-key dreamhost -- node /absolute/path/to/dh-mcp/dist/index.js

Claude Desktop (claude_desktop_config.json), and most other MCP clients:

{
  "mcpServers": {
    "dreamhost": {
      "command": "node",
      "args": ["/absolute/path/to/dh-mcp/dist/index.js"],
      "env": {
        "DREAMHOST_API_KEY": "your-key"
      }
    }
  }
}

4. Check it works

DREAMHOST_API_KEY=your-key npm run smoke

This talks to your real account, in read-only mode, and tries one listing for each permission the key holds. It changes nothing.

Configuration

Variable

Required

Meaning

DREAMHOST_API_KEY

yes

Your API key

DREAMHOST_READ_ONLY

no

Set to 1 to hide every tool that changes anything

DREAMHOST_TIMEOUT_MS

no

Per-request timeout, default 30000

Behind an HTTP proxy, Node does not pick up HTTPS_PROXY by itself: also set NODE_USE_ENV_PROXY=1 (Node 22.21 or later) in the server's environment.

Safety

This server can change live DNS, restart servers and email your subscribers. A few things keep that in hand:

  • The API key's permissions are the real boundary. A read-only key cannot change anything no matter what the assistant is asked to do. Start there.

  • Read-only mode. DREAMHOST_READ_ONLY=1 removes all 10 changing tools from the server, leaving 26.

  • Destructive tools are labelled. Tools that delete, overwrite, interrupt a service or send email carry MCP's destructive hint, so clients that ask for confirmation will ask. Their descriptions say what is interrupted or sent.

  • DNS changes need the exact existing record. Update and delete identify a record by name, type and exact value, so a stale or guessed value changes nothing. Records DreamHost manages itself are protected by the API.

  • No blind retries. A failed write is retried only when DreamHost can de-duplicate it (via an idempotency key). Everything else fails once and says to check the current state first.

  • Accepted means accepted. Once DreamHost has accepted a restart, a DNS change or a scan, a later hiccup checking on it is reported as "accepted, status unknown, do not resend", never as a failure that invites a second attempt.

  • The key stays out of sight. It is sent only in the Authorization header to api.dreamhost.com and is stripped from any error text.

Tools

Every tool that returns data takes response_format: markdown (default, a readable summary) or json (complete data). Lists take limit and offset.

Account

Tool

What it does

dreamhost_get_api_identity

Account ID, key name and the permissions the key holds

dreamhost_get_task

Status of an asynchronous DNS change or server operation

DNS (dns:read, dns:write)

Tool

What it does

dreamhost_list_dns_records

Records in a zone, filterable by name, type and value

dreamhost_create_dns_records

Add 1 to 38 records in one all-or-nothing request

dreamhost_update_dns_record

Change one record in place (type cannot change)

dreamhost_delete_dns_record

Delete one record

Supported types for writing: A, AAAA, CNAME, ALIAS, TXT, NS, PTR, CAA, SRV, NAPTR. MX records can be listed but not written yet. There is no TTL setting in the API. DNS changes are asynchronous; the tools wait up to 20 seconds (wait_seconds) for DreamHost to apply them and otherwise hand back a task ID.

Websites (websites:read, website-logs:read, website-traffic:read)

Tool

What it does

dreamhost_list_websites

Sites with type, hosting plan, server, user and PHP version

dreamhost_get_website

Full details of one site

dreamhost_get_website_access_logs

HTTP access log, filterable by status class

dreamhost_get_website_error_logs

Error log, filterable by severity

dreamhost_get_website_visitor_traffic

Visitors and page views over 1, 7 or 30 days

dreamhost_get_website_bot_traffic

Bot traffic over 1 or 7 days

dreamhost_get_website_browser_metrics

Traffic by browser

dreamhost_get_website_device_metrics

Traffic by device type

dreamhost_get_website_location_metrics

Traffic by country and region

dreamhost_get_website_page_metrics

Most-viewed pages

dreamhost_get_website_ip_statistics

Busiest client IP addresses

Logs go back 7 days and return at most the 200 most recent matching entries; with no range given, the log tools use the last 24 hours. Visitor totals are sums of per-interval unique counts, so they overstate distinct people over a longer period. Logs and traffic are available for fully hosted sites, not sites on a VPS. Access logs and IP statistics contain visitor IP addresses.

Website performance (website-performance:read, website-performance:write)

Tool

What it does

dreamhost_get_website_performance

Lighthouse scores, trends and history for desktop or mobile

dreamhost_list_website_performance_reports

Past reports, newest first

dreamhost_get_website_performance_report

One full report: scores, core metrics, findings

dreamhost_get_website_performance_scan_availability

Whether a scan can start now

dreamhost_start_website_performance_scan

Start a scan

dreamhost_get_website_performance_scan_status

Progress of a running scan

Manual scans are limited to one per website per hour and five per account per hour, shared with scans started from the panel.

Servers (servers:read, servers:write, server-users:read)

Tool

What it does

dreamhost_list_servers

Servers with type, IP, location and resources

dreamhost_get_server

Details of one server

dreamhost_get_server_metrics

CPU, memory and disk usage, latest or over 1, 7 or 14 days

dreamhost_restart_server

Restart a Managed VPS, VPS or Dedicated server (10 per hour)

dreamhost_power_cycle_server

Power cycle a Dedicated server (5 per hour)

dreamhost_reload_server_http

Reload Apache or NGINX on a Managed VPS or Dedicated server (30 per hour)

dreamhost_list_server_users

SFTP, shell and FTP users

dreamhost_get_server_user

Details of one user

Announcement lists (announcement-lists:read, announcement-lists:write)

Tool

What it does

dreamhost_list_announcement_lists

Lists and their subscriber counts

dreamhost_list_announcement_list_subscribers

Subscribers of one list

dreamhost_invite_announcement_list_subscriber

Send someone a confirmation invitation

dreamhost_remove_announcement_list_subscriber

Remove a subscriber

dreamhost_post_announcement

Send a text or HTML announcement to the whole list, now or scheduled

Rate limits

DreamHost limits requests per account, shared by all your keys: 500 GETs per minute, 300 POSTs or PUTs per hour, 100 DELETEs per hour, plus the per-operation limits noted above. When a limit is hit the tool reports how long to wait.

Development

npm test         # end-to-end tests against a mock DreamHost API
npm run build    # compile to dist/
npm run dev      # run from source, restarting on change

The tests never touch a real account. They start the server, connect a real MCP client to it, and point it at a mock API whose routes and responses are generated from DreamHost's own OpenAPI spec (spec/dreamhost-v1.openapi.json). One test fails if any operation in the spec has no tool.

src/
  index.ts       stdio entry point
  server.ts      builds the MCP server and registers every tool
  api.ts         HTTP client: auth, retries, error messages, task polling
  registry.ts    tool registration, annotations, read-only mode
  format.ts      Markdown/JSON rendering, pagination, size cap
  tools/         one file per area of the API
test/
  mock-api.ts    spec-driven mock DreamHost API
  server.test.ts
scripts/
  smoke.ts       read-only check against a real account

Keeping up with the API

DreamHost's API is new and growing. To pick up changes:

curl -o spec/dreamhost-v1.openapi.json "https://developers.dreamhost.com/spec/external/json?version=v1"
npm test

The coverage test will name any new operation that has no tool yet.

License

MIT. Not affiliated with or endorsed by DreamHost. The OpenAPI document in spec/ is DreamHost's, included for testing.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      B
      maintenance
      Enables AI agents to manage Beget hosting services through 73 tools covering the full Beget REST API, including sites, domains, DNS records, MySQL databases, FTP accounts, cron jobs, backups, mail and account statistics. It allows provisioning, configuration and rollback operations via natural language.
      73
      43 PyPI
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to query and manage a web hosting billing platform through its External API — clients, tickets, invoices, domains, orders, products, and system data. It defaults to read-only with per-domain opt-in for writes, two-step confirmation for billing and destructive actions, and automatic redaction of secrets, card data, and PII.
      1
      MIT