netdiag MCP
v0.10.1MCP server wrapping dig, ping, mtr, whois and TLS/HTTP checks for on-demand network diagnostics
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
health_check
Service health: version, wrapped binaries on PATH, the http_get auth prefixes and the NAT64 prefix. Returns a fixed shape (status/service/version + backend fields) so a monitoring caller never has to branch on missing keys. status is "healthy" when every wrapped binary is found and NETDIAG_HTTP_AUTH and NETDIAG_NAT64_PREFIX (if set) parse, "degraded" otherwise (the affected tools fail at call time). http_auth lists the configured URL prefixes, never the header values. nat64 shows the prefix IPv4 literals are reached through on an IPv6-only host (null when unset).…
dns_lookup
Resolve a DNS record via `dig`. record_type: A/AAAA/MX/TXT/NS/CNAME/SOA/PTR/CAA. Pass resolver to query a specific nameserver instead of the host default (e.g. to check whether a change has propagated to a given resolver). transport: "plain" (UDP/TCP 53, default), "dot" (DNS-over-TLS, 853) or "doh" (DNS-over-HTTPS, 443). Requires dig from BIND 9.18+; an older dig rejects dot/doh outright instead of silently querying over plain DNS.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | |
record_type | string | |
resolver | ||
transport | string |
dnssec_check
Check whether a name validates DNSSEC against a known-validating resolver (AD bit). transport: "plain" (default), "dot" or "doh" — compare validation over plain DNS vs. an encrypted transport when port 53 may be intercepted.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | |
resolver | string | |
transport | string |
ping_host
ICMP ping a host or IP. count is clamped to 1-10.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
count | integer |
traceroute_path
Path/MTU-style hop report via `mtr --report` (fixed cycles, not a live run). cycles clamped 1-10.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
cycles | integer |
tcp_port_check
Check whether a TCP port is open (plain socket connect, no port scanning).
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port * | integer | |
timeout | number |
http_check
HEAD/GET a URL and report status, redirect chain and latency.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
timeout | number |
http_get
GET a URL and return the response body (text/JSON/XML only, capped at max_bytes, hard cap 1 MiB). Use this to read a JSON endpoint or inspect an error page. For status/latency only, use http_check instead.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
max_bytes | integer | |
timeout | number |
tls_cert_check
Fetch the TLS certificate presented on host:port and report subject/issuer/validity/SANs.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port | integer |
whois_lookup
WHOIS lookup for a domain.
| Parameter | Type | Description |
|---|---|---|
domain * | string |
asn_lookup
ASN + country-code lookup for an IP, or org info for an AS number (e.g. AS15169 or 15169). Via Team Cymru's whois service — no API key or GeoIP database needed. Takes an IP literal or AS number, not a hostname; resolve first with dns_lookup if you only have a name.
| Parameter | Type | Description |
|---|---|---|
target * | string |
current_time
Current date, time and weekday in an IANA timezone (e.g. "Asia/Tokyo"). Call this rather than deriving the weekday from a date yourself — that is calendar arithmetic and it fails silently. Returns the date, the 24h time, the weekday in English and Japanese, the offset, UTC and the epoch, so it also serves as a clock check on this server.
| Parameter | Type | Description |
|---|---|---|
timezone | string |