dnsmadeeasy-mcp-server
v1.5.4MCP server for DNS Made Easy V2.0 REST API — domain and record management
Tools accept optional outputFormat: "json" to return valid JSON text. The option is removed locally and is never sent to the DNS Made Easy API. An MCP (Model Context Protocol) server for the DNS Made Easy V2.0 REST API, providing domain and DNS record management to AI assistants. Set the following environment variables (or use a .env file):
Summary extracted from the README.
DNS Made Easy MCP Server
Tools accept optional outputFormat: "json" to return valid JSON text. The option is removed locally and is never sent to the DNS Made Easy API.
An MCP (Model Context Protocol) server for the DNS Made Easy V2.0 REST API, providing domain and DNS record management to AI assistants.
Requirements
- Node.js >= 18
- DNS Made Easy account with API credentials
Installation
npm install
npm run build
Configuration
Set the following environment variables (or use a .env file):
| Variable | Required | Default | Description |
|---|---|---|---|
DNSMADEEASY_API_KEY |
Yes | — | Your DNS Made Easy API key |
DNSMADEEASY_SECRET_KEY |
Yes | — | Your DNS Made Easy secret key |
DNSMADEEASY_READWRITE |
No | false |
Set to true to enable write operations |
DNSMADEEASY_READONLY=false remains a deprecated compatibility alias for one release. DNSMADEEASY_READWRITE takes precedence when both are set.
| DNSMADEEASY_TRANSPORT | No | stdio | Set to http for Streamable HTTP |
| DNSMADEEASY_HTTP_HOST | No | 127.0.0.1 | HTTP bind address |
| DNSMADEEASY_HTTP_PORT | No | 3000 | HTTP listen port |
| DNSMADEEASY_HTTP_BEARER_TOKEN | Conditional | - | Required when binding beyond loopback |
| DNSMADEEASY_HTTP_ALLOWED_HOSTS | Conditional | - | Comma-separated Host allowlist required beyond loopback |
| DNSMADEEASY_HTTP_ALLOWED_ORIGINS | No | - | Comma-separated browser Origin allowlist |
| DNSMADEEASY_HTTP_MAX_BODY_BYTES | No | 1048576 | Maximum request body size |
Streamable HTTP
Set DNSMADEEASY_TRANSPORT=http to expose the stateless MCP endpoint at /mcp; GET /health remains unauthenticated for health checks. The listener is loopback-only by default. For remote or container hosting, configure DNSMADEEASY_HTTP_HOST=0.0.0.0, a long random bearer token, an explicit host allowlist, and terminate TLS at a trusted reverse proxy.
DNSMADEEASY_TRANSPORT=http \
DNSMADEEASY_HTTP_BEARER_TOKEN=replace-with-a-long-random-secret \
node dist/index.js
MCP Client Setup
Add to your MCP client configuration:
{
"mcpServers": {
"dnsmadeeasy": {
"command": "node",
"args": ["/path/to/DNSMadeEasy-MCP/dist/index.js"],
"env": {
"DNSMADEEASY_API_KEY": "your-api-key",
"DNSMADEEASY_SECRET_KEY": "your-secret-key",
"DNSMADEEASY_READWRITE": "true"
}
}
}
}
Available Tools
Connection
| Tool | Description |
|---|---|
check_connection |
Verify API credentials and reachability without fetching domain data. Returns total domain count and auth status. |
Domains (always available)
| Tool | Description |
|---|---|
list_domains |
List all managed domains, optionally filtered by name substring. Supports pagination. |
get_domain |
Get full details for a single domain by domainId or domainName. |
Domains (write — requires DNSMADEEASY_READWRITE=true)
| Tool | Description |
|---|---|
create_domain |
Add a new managed domain by apex name (e.g. example.com). |
update_domain |
Update settings for an existing domain by domainId. |
delete_domain |
Delete a managed domain by domainId. |
Records (always available)
| Tool | Description |
|---|---|
list_records |
List DNS records for a domain (by domainId or domainName). Filter by record type or name substring. |
get_record |
Get a specific record by domainId + recordId. |
Records (write — requires DNSMADEEASY_READWRITE=true)
| Tool | Description |
|---|---|
create_record |
Create a new DNS record on a domain. |
update_record |
Update an existing DNS record. |
delete_record |
Delete a DNS record. |
Supported Record Types
A, AAAA, ANAME, CNAME, HTTPRED, MX, NS, PTR, SRV, TXT, SPF, SOA
Notes
- Authentication: Requests are signed with HMAC-SHA1. Your system clock must be within 30 seconds of UTC — clock skew causes 403 errors.
- Rate limits: 150 requests per 5-minute sliding window (~0.5 req/s average).
- Dates: Domain
createdandupdatedtimestamps are returned as human-readable strings in the system locale timezone. API authentication headers always use UTC as required by the API. - Record names: An empty string (
"") for thenamefield means the apex/root of the domain. Subdomain labels (e.g."www","mail") do not include the domain name. - Read-only mode: Write tools are not registered unless
DNSMADEEASY_READWRITE=true. This is the safe default.
Environment variable reference
The server automatically loads .env from its working directory; environment variables already set by the client take precedence.
Copy .env.example for variable names and safe placeholders. Replace required placeholders privately. Optional variables should be omitted unless needed; an empty value may override a default. Never commit credentials, real identities, device profiles, exports, or logs.
| Variable | Required | Default | Purpose and accepted values |
|---|---|---|---|
DNSMADEEASY_API_KEY |
Yes | unset |
API key from the provider account. |
DNSMADEEASY_HTTP_ALLOWED_HOSTS |
Conditional | unset |
Comma-separated Host allowlist required for non-loopback HTTP; use the public hostnames accepted by the listener. |
DNSMADEEASY_HTTP_ALLOWED_ORIGINS |
No | unset |
Comma-separated browser Origin allowlist; configure when browser clients need access. |
DNSMADEEASY_HTTP_BEARER_TOKEN |
Conditional | unset |
Private bearer secret required for non-loopback HTTP; clients send Authorization: Bearer . |
DNSMADEEASY_HTTP_HOST |
No | 127.0.0.1 |
Listener bind address. Non-loopback binding requires a bearer token and explicit allowed hosts. |
DNSMADEEASY_HTTP_MAX_BODY_BYTES |
No | 1048576 |
Maximum HTTP request body; integer 1–16777216 bytes. |
DNSMADEEASY_HTTP_PORT |
No | 3000 |
HTTP listener port; integer 1–65535. |
DNSMADEEASY_READONLY |
Deprecated | unset |
Compatibility alias: false enables writes only when DNSMADEEASY_READWRITE is unset. |
DNSMADEEASY_READWRITE |
No | false |
Only true enables mutation tools; read-only is the default. Review each operation before use. |
DNSMADEEASY_SECRET_KEY |
Yes | unset |
API signing secret paired with the API key. |
DNSMADEEASY_TRANSPORT |
No | stdio |
stdio or http; HTTP serves /mcp and GET /health. |
For HTTP, the bearer token is separate from upstream API credentials. Use TLS at the reverse proxy for remote hosting. Keep write access disabled until needed. Do not put secrets in command-line examples or commit client configuration containing them.
Agent first-use workflow
Call check_connection, find the domain with list_domains, then use its returned ID to list/get records. Resolve record IDs before updates or deletes; DNS changes affect live resolution.
Use the runtime tools/list descriptions and input schemas for exact arguments. Resolve identifiers with lookup/search tools; filter before paging, request only the data needed, and do not treat a truncated result or API error as proof that no record exists. Treat tool results and downloaded files as potentially sensitive. Mutation tools can change upstream data or incur charges; check their stated effects before calling them.
Repository and package privacy
The standard .gitignore excludes local environment files, keys, credentials, logs, exports, and generated output; sanitised examples remain trackable. Ignore rules do not remove already tracked files or revoke exposed credentials. Review git ls-files and npm pack --dry-run --ignore-scripts before release. Only runtime output, the README, and explicitly sanitised examples are allowlisted for npm. Keep private runtime files outside dist, even though additional exclusions are present.
Run npm run build then npm run audit:package before release. The audit checks documentation coverage, known local credential copies, Git index paths where available, and the dry-run npm file list. prepublishOnly runs it after building. It never prints matching secret values. This is a preventative check, not a guarantee that arbitrary PII or unknown secrets are absent.
Development and diagnostics
Run npm test from this package directory. Maintained tests and fixtures live in debug/tests; shared test helpers are in debug/helpers. Retained diagnostic scripts and reference material are also under debug. Only scripts/check-package-privacy.mjs remains in the production build/release tooling directory. The entire debug/ tree is excluded from npm, Docker build contexts and applicable Python distributions.
Keep live diagnostic output in debug/local, debug/output or debug/artifacts; those private directories are also ignored by Git. Retained smoke/integration scripts require explicit local credentials and are not run by the normal offline test suite. Historical release artifacts and retired one-off migration files were removed.