connectivity-diagnostics

connectivity-diagnostics

Enables AI assistants to perform real network diagnostics on the local machine, including ping, traceroute, DNS lookups, TLS checks, and more.

Category
访问服务器

README

Connectivity Diagnostics MCP Server

An MCP server that gives your AI assistant real network diagnostic capabilities. Instead of guessing about your network, the AI can actually run tools like ping, traceroute, DNS lookups, and TLS certificate checks — right on your machine — and interpret the results for you.

Works on Windows, macOS, and Linux.

Important: This server is designed to run locally on your machine. The diagnostic tools (ping, traceroute, etc.) execute against your local network stack — that's the whole point. If you ran the server on a remote host, the tools would diagnose that host's network, not yours. For this reason, you need an MCP client that supports local stdio servers (see compatibility notes below).


Try These First

Once installed, try asking your AI assistant questions like these:

  • "How is my connection to google.com? Run every diagnostic you have."
  • "Why might my connection to AWS us-east-1 be slow? Investigate."
  • "Check the SSL certificate on mydomain.com — is it about to expire?"
  • "Run a full self-diagnostic of my network configuration."
  • "What DNS server am I using, and is it resolving correctly?"
  • "Trace the route to cloudflare.com and identify any high-latency hops."
  • "Break down the HTTP timing for api.example.com — where is the delay?"
  • "What devices are on my local network right now?"

Available Tools

Tool What It Does
ping ICMP ping — latency and packet loss to any host
curl HTTP headers — check reachability and status codes
tracert Route tracing — hop-by-hop path to a host
nslookup DNS lookup — verify domain name resolution
ipconfig Local adapter config — IPs, gateway, DNS servers
routing_table System routing table — how packets are directed
http_timing Detailed HTTP timing: DNS, TCP, TLS, TTFB breakdown
ssl_check TLS certificate details and validity
arp_table LAN device discovery via ARP cache
mtr Combined ping + traceroute with per-hop loss stats

Prerequisites

Install the MCP Python package:

pip install "mcp[cli]"

Download connectivity_mcp_server.py and note its full path. You will need it in the configuration steps below.


Setup: Claude Desktop

Claude Desktop connects to local MCP servers via stdio. You add the server to a JSON config file and restart the app.

1. Find the config file

OS Path
Windows %APPDATA%\Claude\claude_desktop_config.json
macOS ~/Library/Application Support/Claude/claude_desktop_config.json

Paste the path into Explorer or Finder to open the folder. If the file does not exist, create it.

2. Add the server

Open claude_desktop_config.json and add or merge the following. Replace the path with the actual location of connectivity_mcp_server.py on your machine:

Windows:

{
  "mcpServers": {
    "connectivity-diagnostics": {
      "command": "python",
      "args": [
        "C:\\path\\to\\connectivity_mcp_server.py"
      ]
    }
  }
}

macOS / Linux:

{
  "mcpServers": {
    "connectivity-diagnostics": {
      "command": "python3",
      "args": [
        "/path/to/connectivity_mcp_server.py"
      ]
    }
  }
}

If you already have other MCP servers configured, add the "connectivity-diagnostics" block inside the existing "mcpServers" object — don't replace the whole file.

3. Restart Claude Desktop

Fully quit and relaunch the app. The MCP server starts automatically when Claude needs it.

4. Verify

Ask Claude: "What network diagnostic tools do you have available?"


Setup: Cursor

Cursor supports local MCP servers through a mcp.json config file.

1. Create the config file

You can configure MCP servers globally or per-project:

Scope Path
Global ~/.cursor/mcp.json
Project .cursor/mcp.json (in project root)

2. Add the server

Create or edit the mcp.json file. Replace the path with the actual location of connectivity_mcp_server.py on your machine:

Windows:

{
  "mcpServers": {
    "connectivity-diagnostics": {
      "command": "python",
      "args": [
        "C:\\path\\to\\connectivity_mcp_server.py"
      ]
    }
  }
}

macOS / Linux:

{
  "mcpServers": {
    "connectivity-diagnostics": {
      "command": "python3",
      "args": [
        "/path/to/connectivity_mcp_server.py"
      ]
    }
  }
}

3. Restart Cursor

Relaunch the editor or reload the window. You can verify the server is connected under Settings > Tools & Integrations > MCP Tools.


What About ChatGPT?

ChatGPT's MCP support (Developer Mode) only connects to remote servers over HTTPS — it does not support local stdio. Since this server is designed to diagnose your machine's network, running it remotely would defeat the purpose. ChatGPT is not compatible with this server at this time.


Troubleshooting

The AI doesn't see the tools after restart:

  • Double-check the file path in your config — use \\ on Windows.
  • Confirm python (or python3) is on your system PATH: run python --version in a terminal.
  • Check the client's MCP logs if available.

tracert or mtr times out:

  • This is normal for hosts that block ICMP. The timeouts are generous (45s for tracert, 60s for mtr).
  • Try a well-known host like 8.8.8.8 to confirm the tool works.

mtr command not found:

  • Windows: Install WinMTR and ensure it is on your PATH.
  • macOS: brew install mtr
  • Linux: sudo apt install mtr (Debian/Ubuntu) or sudo dnf install mtr (Fedora/RHEL)

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选