dreamhost-mcp-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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 build3. 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.jsClaude 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 smokeThis 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 |
| yes | Your API key |
| no | Set to |
| no | Per-request timeout, default |
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=1removes 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
Authorizationheader toapi.dreamhost.comand 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 |
| Account ID, key name and the permissions the key holds |
| Status of an asynchronous DNS change or server operation |
DNS (dns:read, dns:write)
Tool | What it does |
| Records in a zone, filterable by name, type and value |
| Add 1 to 38 records in one all-or-nothing request |
| Change one record in place (type cannot change) |
| 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 |
| Sites with type, hosting plan, server, user and PHP version |
| Full details of one site |
| HTTP access log, filterable by status class |
| Error log, filterable by severity |
| Visitors and page views over 1, 7 or 30 days |
| Bot traffic over 1 or 7 days |
| Traffic by browser |
| Traffic by device type |
| Traffic by country and region |
| Most-viewed pages |
| 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 |
| Lighthouse scores, trends and history for desktop or mobile |
| Past reports, newest first |
| One full report: scores, core metrics, findings |
| Whether a scan can start now |
| Start a scan |
| 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 |
| Servers with type, IP, location and resources |
| Details of one server |
| CPU, memory and disk usage, latest or over 1, 7 or 14 days |
| Restart a Managed VPS, VPS or Dedicated server (10 per hour) |
| Power cycle a Dedicated server (5 per hour) |
| Reload Apache or NGINX on a Managed VPS or Dedicated server (30 per hour) |
| SFTP, shell and FTP users |
| Details of one user |
Announcement lists (announcement-lists:read, announcement-lists:write)
Tool | What it does |
| Lists and their subscriber counts |
| Subscribers of one list |
| Send someone a confirmation invitation |
| Remove a subscriber |
| 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 changeThe 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 accountKeeping 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 testThe 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…
This server cannot be deployed
Maintenance
Related MCP Connectors
29 DNS, SEO, SSL, security, WHOIS & mail tools for AI agents. Pay per call (x402) or card API key.
41 WHOIS, DNS, IP, threat intelligence, email, and bulk tools for AI agents via WhoisXML API.
A domain's DNS records and RDAP registration per call for AI agents. Paid per domain, no run.
Check domain availability and prices, and look up any domain's public records. Read-only.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage Namecheap domains, DNS, contacts, registrar locks, and view SSL certificates and pricing through safe read and configuration tools.16116 npmMIT
- AlicenseCqualityBmaintenanceEnables 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.7343 PyPI3MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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.1MIT
- AlicenseBqualityBmaintenanceEnables AI agents to autonomously govern cloud hosting infrastructure and billing workflows, including provisioning, invoices, wallet credits, support tickets, and catalog management through 35 tools with JSON:API response hydration.35MIT