deSEC MCP by usefulapi
Read deSEC domains, DNSSEC keys, zone files and RRsets; create or replace one DNS record set.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"desec": {
"url": "https://desec.usefulapi.io/mcp"
}
}
}远程端点
https://desec.usefulapi.io/mcpstreamable-http它能做什么
工具清单
工具(7)
🟢desec_list_domains(owns_qname, cursor)
List the DNS domains (zones) in this deSEC account, newest first, with creation and last-published times and minimum TTL. DNSSEC keys are omitted here (see desec_get_domain). Use owns_qname to find which of your domains is responsible for a DNS name (for example before adding a record for www.dev.example.net). Up to 500 per page. GET /domains/.
输入模式
{
"type": "object",
"properties": {
"owns_qname": {
"description": "Only the domain that is authoritative for this DNS name (the longest matching zone you own).",
"type": "string",
"minLength": 1,
"maxLength": 253
},
"cursor": {
"description": "Opaque cursor from a previous reply's next_cursor. Omit for the first page.",
"type": "string",
"maxLength": 500
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢desec_get_domain(domain)
One domain with its DNSSEC key material: the DNSKEY and the DS records to publish at the registrar for the chain of trust, plus minimum TTL and publication times. GET /domains/{name}/.
输入模式
{
"type": "object",
"properties": {
"domain": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Domain name in this deSEC account, e.g. example.com (see desec_list_domains)."
}
},
"required": [
"domain"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢desec_export_zonefile(domain)
The whole zone as a plain-text BIND-format zonefile (all RRsets except DNSSEC types). Handy as a backup before changing records. Counts as an expensive deSEC operation (300/min). GET /domains/{name}/zonefile/.
输入模式
{
"type": "object",
"properties": {
"domain": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Domain name in this deSEC account, e.g. example.com (see desec_list_domains)."
}
},
"required": [
"domain"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢desec_list_rrsets(domain, type, subname, cursor)
List the DNS records of a domain as RRsets (all records of one name and type, sharing one TTL), newest first. Filter by type and/or subname. Up to 500 per page. GET /domains/{name}/rrsets/.
输入模式
{
"type": "object",
"properties": {
"domain": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Domain name in this deSEC account, e.g. example.com (see desec_list_domains)."
},
"type": {
"description": "Only RRsets of this type, e.g. A, MX, TXT.",
"type": "string",
"pattern": "^[A-Za-z0-9]{1,20}$"
},
"subname": {
"description": "Only RRsets at this subname (\"\" or \"@\" = the zone apex). Omit to include every subname.",
"type": "string",
"maxLength": 178
},
"cursor": {
"description": "Opaque cursor from a previous reply's next_cursor. Omit for the first page.",
"type": "string",
"maxLength": 500
}
},
"required": [
"domain"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢desec_get_rrset(domain, subname, type)
One RRset by subname and type, e.g. the A records of "www" or the MX records of the apex. GET /domains/{name}/rrsets/{subname}/{type}/.
输入模式
{
"type": "object",
"properties": {
"domain": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Domain name in this deSEC account, e.g. example.com (see desec_list_domains)."
},
"subname": {
"description": "Subname relative to the domain: \"www\", \"_443._tcp.www\", \"*\" for a wildcard. Empty or \"@\" = the zone apex. Never the full name.",
"type": "string",
"maxLength": 178
},
"type": {
"type": "string",
"pattern": "^[A-Za-z0-9]{1,20}$",
"description": "Record type, e.g. A, AAAA, CNAME, MX, TXT, CAA, SRV, TLSA."
}
},
"required": [
"domain",
"type"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴desec_create_rrset(domain, subname, type, ttl, records)
WRITE: create ONE new RRset (a set of DNS records of one type at one name) in a domain. It goes live in DNS immediately and a wrong record can take a site or mail offline. Fails if an RRset with this subname and type already exists (use desec_replace_rrset for that) or if a CNAME would conflict with other records. Never touches the apex NS or DNSSEC records and cannot delete anything. Subject to deSEC's write limits (15/min, 300/day per domain). POST /domains/{name}/rrsets/.
输入模式
{
"type": "object",
"properties": {
"domain": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Domain name in this deSEC account, e.g. example.com (see desec_list_domains)."
},
"subname": {
"description": "Subname relative to the domain: \"www\", \"_443._tcp.www\", \"*\" for a wildcard. Empty or \"@\" = the zone apex. Never the full name.",
"type": "string",
"maxLength": 178
},
"type": {
"type": "string",
"enum": [
"A",
"AAAA",
"CAA",
"CNAME",
"HTTPS",
"LOC",
"MX",
"NAPTR",
"NS",
"OPENPGPKEY",
"PTR",
"SMIMEA",
"SPF",
"SRV",
"SSHFP",
"SVCB",
"TLSA",
"TXT",
"URI"
],
"description": "Record type (uppercase). DNSSEC types and SOA are managed by deSEC and cannot be written."
},
"ttl": {
"type": "integer",
"minimum": 1,
"maximum": 86400,
"description": "TTL in seconds, at most 86400. Not below the domain's minimum_ttl (usually 3600): deSEC rejects lower values."
},
"records": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"description": "Record contents in zone-file format, at least one (an empty list would delete the RRset and is refused). Names need a trailing dot (\"10 mx.example.com.\"), TXT needs quotes (\"\\\"v=spf1 -all\\\"\")."
}
},
"required": [
"domain",
"type",
"ttl",
"records"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴desec_replace_rrset(domain, subname, type, ttl, records)
WRITE (overwrites): set ONE RRset to exactly the given TTL and records, creating it if it does not exist and REPLACING all its current records if it does. It goes live in DNS immediately; a wrong value can take a site or mail offline. The previous RRset is read first and returned as `previous` so the change can be undone with another call. An empty record list is refused (this tool never deletes), and the apex NS and DNSSEC records cannot be changed. Subject to deSEC's write limits (15/min, 300/day per domain). PUT /domains/{name}/rrsets/ with a one-element array.
输入模式
{
"type": "object",
"properties": {
"domain": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Domain name in this deSEC account, e.g. example.com (see desec_list_domains)."
},
"subname": {
"description": "Subname relative to the domain: \"www\", \"_443._tcp.www\", \"*\" for a wildcard. Empty or \"@\" = the zone apex. Never the full name.",
"type": "string",
"maxLength": 178
},
"type": {
"type": "string",
"enum": [
"A",
"AAAA",
"CAA",
"CNAME",
"HTTPS",
"LOC",
"MX",
"NAPTR",
"NS",
"OPENPGPKEY",
"PTR",
"SMIMEA",
"SPF",
"SRV",
"SSHFP",
"SVCB",
"TLSA",
"TXT",
"URI"
],
"description": "Record type (uppercase). DNSSEC types and SOA are managed by deSEC and cannot be written."
},
"ttl": {
"type": "integer",
"minimum": 1,
"maximum": 86400,
"description": "TTL in seconds, at most 86400. Not below the domain's minimum_ttl (usually 3600): deSEC rejects lower values."
},
"records": {
"minItems": 1,
"maxItems": 100,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 4000
},
"description": "Record contents in zone-file format, at least one (an empty list would delete the RRset and is refused). Names need a trailing dot (\"10 mx.example.com.\"), TXT needs quotes (\"\\\"v=spf1 -all\\\"\")."
}
},
"required": [
"domain",
"type",
"ttl",
"records"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社区
证据