list_domains
List all DNS domains managed in the OnlyDNS account.
limitoffset
io.github.Onlydns由 GitHub 账号 Onlydns 发布v1.0.6更新于 Oct 31, 2026
Model Context Protocol server for OnlyDNS to manage DNS zones, records, DNSSEC, and TSIG keys.
OnlyDNS 官方 MCP 服务器,让助手在 OnlyDNS 账户中列出和创建 DNS 区域、管理解析记录,并处理 DNSSEC 与 TSIG 密钥。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
@onlydns/mcp)Official Model Context Protocol (MCP) server for OnlyDNS enabling AI agents (Claude Desktop, Cursor, Devin, LangChain) to inspect and manage DNS zones, records, 1-click DNSSEC, and TSIG keys directly. Learn more on the AI Agent Infrastructure solution page.
Or run instantly: npx -y @onlydns/mcp
Authentication Environment Variable: ONLYDNS_API_TOKEN (see Configuration).
list_records: Query DNS records with optional filtering by type (A, AAAA, CNAME, MX, TXT, SRV, CAA, etc.) or hostname.add_record: Create new records or append values to existing record sets with automatic domain normalization.update_record: Modify existing DNS records and update TTLs.delete_record: Delete specific record values or entire record sets.set_records: Batch replace full zone record sets.Download onlydns-mcp.mcpb directly from the GitHub Releases page. Compatible desktop clients (such as Claude Desktop) allow one-click installation and configure your ONLYDNS_API_TOKEN through a secure settings dialog.
npx (No installation needed)You can run the server directly using npx:
The server requires an OnlyDNS API Bearer Token.
Add the following to your claude_desktop_config.json:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd to your MCP settings or .cursor/mcp.json:
list_domains(limit?, offset?): Lists all domains in the account.create_domain(domainName): Creates a new DNS zone for a domain.list_records(domainName, type?, name?): Lists DNS records for a domain, with optional filtering.add_record(domainName, name, type, value, ttl?): Adds/appends a DNS record (e.g. A, CNAME, MX, TXT, URL, PROXY).update_record(domainName, name, type, value, ttl?): Replaces values and/or TTL for a record type.delete_record(domainName, name, type, value?): Deletes a record or specific value.set_records(domainName, records): Batch replaces all records for a zone.get_dnssec(domainName): Fetches DNSSEC status and keys (DS, DNSKEY).enable_dnssec(domainName): Enables DNSSEC signing for a zone.disable_dnssec(domainName): Disables DNSSEC signing.list_tsig_keys(): Lists all account TSIG keys.get_tsig_key(keyName): Retrieves TSIG key details.create_tsig_key(algorithm?): Generates a new TSIG key (hmac-sha256, hmac-sha512, etc.).get_domain_tsig(domainName): Retrieves TSIG keys and permissions configured on a domain.configure_domain_tsig(domainName, keyName, allowAxfr, allowDnsUpdate, subdomains?): Configures AXFR, DDNS, and optional subdomain restriction permissions for a domain.remove_domain_tsig(domainName): Removes all TSIG keys from a domain.MIT © 2026 OnlyDNS
来源:README.md,提交 fad03e6
List all DNS domains managed in the OnlyDNS account.
limitoffsetCreate/add a new DNS zone/domain under the OnlyDNS account.
domainName必填List all DNS records for a domain, with optional filtering by record type (A, AAAA, CNAME, MX, TXT, etc.) or hostname.
nametypedomainName必填Add a DNS record to a domain. Accepts relative hostnames (e.g. "testing"), domain-qualified names (e.g. "testing.example.com"), or canonical FQDNs (e.g. "testing.example.com."). If a record with the same name and type already exists, the new value is appended to the record set.
ttlname必填type必填value必填domainName必填Update an existing DNS record set for a given name and type, completely replacing its values and/or TTL. Accepts relative names (e.g. "testing"), domain-qualified names (e.g. "testing.example.com"), or canonical FQDNs (e.g. "testing.example.com.").
ttlname必填type必填value必填domainName必填Delete a DNS record or specific value from a domain. Accepts relative names (e.g. "testing"), domain-qualified names (e.g. "testing.example.com"), or canonical FQDNs (e.g. "testing.example.com.").
name必填type必填valuedomainName必填Completely replace ALL DNS records in a zone with a new list of records. Warning: destructive if omitted records are intended to be preserved.
records必填domainName必填Get DNSSEC configuration status, NSEC3 parameters, and DS / DNSKEY keys for a domain.
domainName必填Enable DNSSEC signing for a domain in OnlyDNS.
domainName必填Disable DNSSEC signing and remove DNSSEC keys for a domain in OnlyDNS.
domainName必填List all TSIG keys configured for the OnlyDNS account.
无需输入参数。
Get details for a specific TSIG key by name.
keyName必填Generate a new TSIG key for secondary DNS transfers (AXFR) or dynamic DNS updates.
algorithmGet TSIG keys and permissions (AXFR transfers, dynamic DNS updates, subdomain restrictions) configured for a domain.
domainName必填Attach and configure TSIG permissions (AXFR transfer / dynamic DNS updates / subdomain restrictions) for a domain.
keyName必填allowAxfr必填domainName必填subdomainsallowDnsUpdate必填Remove all TSIG keys associated with a domain.
domainName必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
npm install -g @onlydns/mcpexport ONLYDNS_API_TOKEN="your_onlydns_api_token"npx -y @onlydns/mcpnpm install -g @onlydns/mcp{ "mcpServers": { "onlydns": { "command": "npx", "args": ["-y", "@onlydns/mcp"], "env": { "ONLYDNS_API_TOKEN": "YOUR_ONLYDNS_BEARER_TOKEN" } } }}{ "mcpServers": { "onlydns": { "command": "npx", "args": ["-y", "@onlydns/mcp"], "env": { "ONLYDNS_API_TOKEN": "YOUR_ONLYDNS_BEARER_TOKEN" } } }}# Clone and install dependenciesgit clone https://github.com/Onlydns/onlydns-mcp.gitcd onlydns-mcpnpm install
# Run unit testsnpm test
# Build TypeScriptnpm run build
# Run locally in developmentnpm run dev