home / mcp / mcp ping server

MCP Ping Server

only for a testing mcp training

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "c3budiman-mcp-ping": {
      "command": "npx",
      "args": [
        "@c3budiman/ping"
      ]
    }
  }
}

You can run a lightweight MCP server that provides a ping tool to check connectivity and measure latency to any hostname or IP address. This server communicates over stdio and works across platforms, letting you quickly verify reachability from your MCP client setup.

How to use

Configure your MCP client to connect to the ping server via stdio using a local npx-based setup. You can run the server without a full installation by invoking the package directly through npx, or install locally and run it as a standard node-based MCP server.

Typical usage patterns include pinging a hostname or IP to verify connectivity and measure round-trip latency. In your MCP client, register the ping server so your client can send ping requests and receive latency results for targets like example.com or 8.8.8.8.

How to install

Prerequisites you need before installing: Node.js (with npm) or an environment that can run MCP stdio servers.

# Recommended quick-start (no local install required)
# This registers a ping MCP server via npx in your client config
{
  "mcpServers": {
    "ping": {
      "command": "npx",
      "args": ["@c3budiman/ping"]
    }
  }
}

For a local installation workflow, perform a standard npm install followed by a build step, then you can expose the server locally.

npm install
npm run build

If you plan to publish or share the server as a global utility, you can build and publish the package to npm.

npm run build
npm publish

Additional notes

As an MCP server, you can either run via npx for zero-install usage or install locally for a persistent setup. If you install globally, you can reference a binary-like command in your MCP client configuration.

Available tools

ping

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