MCP.so
登录

MCP Ping Server

@sadeghtkd

关于 MCP Ping Server

This mcp server allows Claude to perform network connectivity tests and ping operations.

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

sadeghtkd

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "ping-mcp-server": {
      "command": "python",
      "args": [
        "main.py",
        "[--host",
        "HOST]",
        "[--port",
        "PORT]"
      ]
    }
  }
}

工具

4

Ping a specified host

`host`: Hostname or IP address to ping

Check internet connectivity

`host`: Target host (default: 8.8.8.8)

概览

What is MCP Ping Server?

MCP Ping Server is an implementation that provides ping functionality to Claude Desktop through the Model Context Protocol (MCP). It allows Claude to perform network connectivity tests and ping operations, such as checking if a host is reachable or verifying internet connectivity.

How to use MCP Ping Server?

Install dependencies with pip install . after cloning the repository. Start the server by running python main.py with optional --host and --port arguments (defaults: 0.0.0.0, port 8080). Then configure Claude Desktop by adding the provided JSON snippet to its claude_desktop_config.json, pointing to the server’s SSE endpoint.

Key features of MCP Ping Server

  • Provides ping_host and check_connectivity tools
  • Cross-platform support (Windows, Linux, MacOS)
  • Asynchronous operation using FastMCP and Starlette
  • Real‑time communication via Server‑Sent Events (SSE)
  • Customizable packet count (1–20, default 4)
  • Default internet connectivity check against Google DNS (8.8.8.8)

Use cases of MCP Ping Server

  • Testing network connectivity directly from within Claude Desktop
  • Checking if a specific host or IP address is reachable
  • Quick internet availability verification
  • AI‑assisted network troubleshooting

FAQ from MCP Ping Server

What are the default host and port?

The server binds to 0.0.0.0 and listens on port 8080 by default.

How do I configure Claude Desktop to use this server?

Add the "ping" entry under "mcpServers" in claude_desktop_config.json with the command npx mcp-remote http://localhost:8080/sse.

Is it safe to expose the server to a public network?

The server is designed for local use with Claude Desktop. Be cautious when exposing it to public networks.

What dependencies are required?

Python 3.12 or later, plus the packages httpx, mcp[cli], uvicorn, and starlette (installed automatically via pip).

What parameters does the ping_host tool accept?

It accepts a host (hostname or IP address) and an optional count (number of ping packets, between 1 and 20, default 4).

评论

其他 分类下的更多 MCP 服务器