m

mcp-ping

@c3budiman/mcp-ping
0 Stars 197 次浏览 c3budiman 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "ping": {
      "command": "mcp-ping"
    }
  }
}

服务介绍

MCP Ping Server

A Model Context Protocol (MCP) server that provides a ping tool to check connectivity and measure latency to websites and hosts.

Features

  • Ping Tool: Ping any hostname or IP address to check connectivity
  • Stdio Transport: Uses standard input/output for MCP communication
  • Cross-platform: Works on macOS, Linux, and Windows

Installation

No installation needed! Use directly with npx:

{
  "mcpServers": {
    "ping": {
      "command": "npx",
      "args": ["@c3budiman/ping"]
    }
  }
}

Local Installation

npm install
npm run build

Publishing to npm

npm run build
npm publish

Usage

As an MCP Server

The server communicates via stdio and can be configured in your MCP client settings:

Using npx (no installation required):

{
  "mcpServers": {
    "ping": {
      "command": "npx",
      "args": ["@c3budiman/ping"]
    }
  }
}

Using globally installed package (binary):

npm install -g @c3budiman/ping

Then configure:

{
  "mcpServers": {
    "ping": {
      "command": "mcp-ping"
    }
  }
}

Using local installation:

{
  "mcpServers": {
    "ping": {
      "command": "node",
      "args": ["/path/to/mcp-ping/dist/index.js"]
    }
  }
}

Development

Run in development mode:

npm run dev

Tools

ping

Pings a hostname or IP address to check connectivity and measure latency.

Parameters:

  • host (string, required): The hostname or IP address to ping (e.g., "google.com", "8.8.8.8")

Example:

{
  "name": "ping",
  "arguments": {
    "host": "google.com"
  }
}

License

MIT

相关 MCP 服务