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"
}社群
證據