Skip to main content
Glama
Keel

Keel

by seayniclabs

Sounding

网络诊断 MCP 服务器

License: MIT

探测水面之下——为 AI 工具提供的网络诊断功能。


功能概述

Sounding 是一个 Model Context Protocol (MCP) 服务器,为 AI 助手提供了 14 种网络诊断工具。它处理了你通常需要使用 ping、dig、nmap 或 openssl 才能完成的任务,并将其公开为结构化、经过验证的 MCP 工具调用。

Related MCP server: netops-mcp

工具

工具

描述

关键参数

health

服务器版本和状态检查

--

ping

带有延迟统计的 TCP 连接 ping (端口 80)

host, count (1--100), timeout

traceroute

追踪到主机的网络路由

host, max_hops (1--64)

dns_lookup

解析 DNS 记录 (A, AAAA, MX, CNAME, TXT, NS)

domain, record_type, nameserver

reverse_dns

IP 地址的反向 DNS 查询

ip

port_check

检查单个 TCP 端口是否开放

host, port, timeout

port_scan

扫描常用 TCP 端口 (速率受限,最多 100 个)

host, ports

check_ssl_cert

检查 SSL/TLS 证书详情和过期时间

host, port

whois_lookup

WHOIS 域名注册查询

domain

http_check

带有状态、耗时、标头和大小的 HTTP 请求

url

subnet_scan

发现本地子网上的活跃主机 (仅限 RFC 1918)

subnet (CIDR, 最大 /20)

get_public_ip

获取机器的公网 IP 地址

--

speed_test

测量下载速度 (Mbps) 和延迟

--

dns_propagation

检查跨公共解析器的 DNS 传播情况

domain, record_type

安装

通过 PyPI 安装:

pip install sounding-mcp

或使用 pipx 进行隔离安装:

pipx install sounding-mcp

使用方法

直接运行服务器 (stdio 传输):

sounding

Claude Code

注册为本地 MCP 服务器:

claude mcp add sounding -- sounding

Claude Desktop

添加到你的 claude_desktop_config.json:

{
  "mcpServers": {
    "sounding": {
      "command": "sounding",
      "args": []
    }
  }
}

如果安装在虚拟环境中,请使用二进制文件的完整路径:

{
  "mcpServers": {
    "sounding": {
      "command": "/path/to/.venv/bin/sounding",
      "args": []
    }
  }
}

安全性

Sounding 专为 AI 驱动的使用场景而设计,确保安全:

  • SSRF 防护 -- http_check 会解析主机名并阻止对内部、私有、回环和链路本地 IP 地址(包括 IPv4 映射的 IPv6)的请求。云元数据端点 (169.254.x.x) 已被拦截。

  • 输入验证 -- 所有输入在到达任何网络调用或子进程之前,都会通过验证器,拒绝 shell 元字符、格式错误的主机名和无效端口。

  • 速率限制 -- port_scan 强制要求扫描之间至少间隔 1 秒,以防止滥用。

  • 子网限制 -- subnet_scan 仅允许 RFC 1918 私有子网,并限制在 /20(4096 个地址)以内,同时具有并发限制。

  • 无 Shell 注入 -- 子进程调用 (traceroute, whois) 使用 exec 风格的调用,从不使用 shell 插值。

开发

git clone https://github.com/seayniclabs/sounding.git
cd sounding
python -m venv .venv
source .venv/bin/activate
pip install -e ".[test]"
python -m pytest tests/ -q

许可证

MIT

Available Tools

14 tools
check_ssl_certA

Inspect the SSL/TLS certificate on a host.

Returns issuer, subject, expiry, SANs, and days until expiry.

Inputs: host (required), port.

dns_lookupC

Resolve DNS records for a domain using dnspython.

Supported record types: A, AAAA, MX, CNAME, TXT, NS.

Inputs: domain (required), record_type, nameserver.

dns_propagationA

Check DNS propagation across multiple public resolvers.

Queries Google (8.8.8.8), Cloudflare (1.1.1.1), OpenDNS (208.67.222.222), Quad9 (9.9.9.9), and the system default resolver in parallel, then highlights any inconsistencies between them.

Supported record types: A, AAAA, CNAME, MX, TXT.

Inputs: domain (required), record_type.

get_public_ipB

Get the public IP address of this machine.

Inputs: no named parameters.

healthA

Return server version and status.

Inputs: no named parameters.

http_checkB

Perform an HTTP request and return timing breakdown.

Returns status code, timing (DNS, connect, TLS, TTFB, total), response size, and headers.

Inputs: url (required).

pingA

Ping a host using TCP connect (port 80) as a non-root ICMP alternative.

Returns min/avg/max/jitter latency in milliseconds.

Inputs: host (required), count, timeout.

port_checkC

Check whether a single TCP port is open on a host.

Inputs: host (required), port (required), timeout.

port_scanC

Scan common TCP ports on a host.

Safety limits: max 100 ports, rate-limited to one scan per second.

Inputs: host (required), ports.

reverse_dnsC

Perform a reverse DNS lookup for an IP address.

Inputs: ip (required).

speed_testA

Measure network download speed and latency.

Downloads a 10 MB test payload from Cloudflare and measures throughput. Also measures latency with multiple TCP connect pings. Returns download speed in Mbps and latency stats in milliseconds.

Inputs: no named parameters.

subnet_scanA

Discover live hosts on a local subnet by probing common ports.

Only allows RFC 1918 private subnets for safety. Probes TCP ports 22, 80, and 443 on each host.

Inputs: subnet (required).

tracerouteC

Trace the network route to a host.

Wraps the system traceroute command and parses output.

Inputs: host (required), max_hops.

whois_lookupB

WHOIS lookup for a domain using the system whois command.

Inputs: domain (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 14 tools

    Disambiguation5/5

    All 14 tools have clearly distinct purposes, from SSL certificate checks to DNS lookups, WHOIS, and network diagnostics. There is no overlap or ambiguity between tool descriptions.

    Naming Consistency4/5

    Most tools follow a verb_noun snake_case pattern (e.g., dns_lookup, port_scan), though 'ping', 'traceroute', and 'health' break the pattern. Overall consistent and readable.

    Tool Count5/5

    14 tools is well-scoped for a network diagnostics server, covering essential functionalities without being excessive or sparse.

    Completeness4/5

    The tool set covers a wide range of network diagnostic tasks (DNS, SSL, HTTP, ports, traceroute, WHOIS, speed test, subnet scan). Minor gaps (e.g., HTTP method selection, ICMP ping) exist but do not hinder core workflows.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    Appeared in Searches