netdiag MCP

v0.10.1
io.github.shigechika/netdiag-mcp Checked 3 days ago Published 2 days ago

MCP 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.

ParameterTypeDescription
hostname *string
record_typestring
resolver
transportstring

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.

ParameterTypeDescription
hostname *string
resolverstring
transportstring

ping_host

ICMP ping a host or IP. count is clamped to 1-10.

ParameterTypeDescription
host *string
countinteger

traceroute_path

Path/MTU-style hop report via `mtr --report` (fixed cycles, not a live run). cycles clamped 1-10.

ParameterTypeDescription
host *string
cyclesinteger

tcp_port_check

Check whether a TCP port is open (plain socket connect, no port scanning).

ParameterTypeDescription
host *string
port *integer
timeoutnumber

http_check

HEAD/GET a URL and report status, redirect chain and latency.

ParameterTypeDescription
url *string
timeoutnumber

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.

ParameterTypeDescription
url *string
max_bytesinteger
timeoutnumber

tls_cert_check

Fetch the TLS certificate presented on host:port and report subject/issuer/validity/SANs.

ParameterTypeDescription
host *string
portinteger

whois_lookup

WHOIS lookup for a domain.

ParameterTypeDescription
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.

ParameterTypeDescription
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.

ParameterTypeDescription
timezonestring