netdiag-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NETDIAG_ALLOW_PRIVATE | No | Set to `1`, `true`, `yes`, or `on` to allow non-public destinations (private, loopback, link-local, etc.). Any other value keeps the default block (fail-safe). | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Safe, read-only network diagnostics. Use dns_lookup to check if a name resolves, ping to measure reachability, latency and packet loss of a host, and http_check to see the HTTP status and response time of a URL (redirects are reported, not followed). Only public Internet destinations are allowed by default: targets that resolve to private, loopback, link-local or other non-public addresses are refused unless the server operator sets NETDIAG_ALLOW_PRIVATE=1.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| dns_lookupA | Resolve a hostname to its IPv4/IPv6 addresses using the server's DNS resolver. Use it to check whether a name exists and where it points; an IP address is returned unchanged. Only public Internet destinations are allowed by default: targets that resolve to private, loopback, link-local or other non-public addresses are refused unless the server operator sets NETDIAG_ALLOW_PRIVATE=1. |
| pingA | Send ICMP echo requests to a host and report packets sent/received, packet loss (%) and round-trip latency min/avg/max in milliseconds. count is 1-10 (default 4) and each reply waits at most 2 seconds. 100% packet loss is a normal result (the host did not answer), not an error. Only public Internet destinations are allowed by default: targets that resolve to private, loopback, link-local or other non-public addresses are refused unless the server operator sets NETDIAG_ALLOW_PRIVATE=1. |
| http_checkA | Make a single HTTP GET request to an http(s) URL and report the status code, reason phrase and response time in milliseconds; the body is not downloaded. Redirects are NOT followed: 3xx responses return redirect_location so you can decide whether to check it next. 4xx/5xx statuses are normal results. timeout_seconds is 1-10 (default 5). Only public Internet destinations are allowed by default: targets that resolve to private, loopback, link-local or other non-public addresses are refused unless the server operator sets NETDIAG_ALLOW_PRIVATE=1. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 3 tools
Each tool targets a distinct layer: DNS resolution, ICMP reachability, and HTTP status probing. There is no realistic way to confuse dns_lookup, ping, and http_check, and descriptions reinforce the boundaries (e.g. http_check explicitly does not follow redirects or download bodies).
dns_lookup and http_check follow a consistent noun_verb pattern, while ping is a bare verb with no resource prefix. It is readable and unambiguous, but not a uniform convention across all three.
Three tools is well matched to a focused network diagnostics server; each covers a distinct probe type and none feels redundant or padded. Nothing is so thin that the surface is unusable.
The core probes (name resolution, ICMP, HTTP GET) are covered, but common diagnostics like TCP port connectivity, traceroute, and TLS certificate checks are absent. Agents can partially work around this with http_check, but a port-down scenario has no direct tool.