Skip to main content
Glama

MCP Ping Server

A server implementation that provides ping functionality to Claude Desktop through MCP (Model Context Protocol). This server allows Claude to perform network connectivity tests and ping operations.

certified by MCPHub

Get it from MCPhub.com: https://mcphub.com/mcp-servers/sadeghtkd/ping-mcp-server

Related MCP server: Ping MCP Server

Features

  • ping_host: Ping any host with customizable packet count

  • check_connectivity: Quick internet connectivity check using Google's DNS (8.8.8.8)

  • Cross-platform support (Windows, Linux, MacOS)

  • Asynchronous operation using FastMCP and Starlette

  • Server-Sent Events (SSE) for real-time communication

Requirements

  • Python 3.12+

  • Dependencies (automatically installed through pip):

    • httpx

    • mcp[cli]

    • uvicorn

    • starlette

Installation

  1. Clone the repository

  2. Install dependencies using pip:

pip install .

Usage

Starting the Server

Run the server using Python:

python main.py [--host HOST] [--port PORT]

Default settings:

  • Host: 0.0.0.0 (accessible from any network interface)

  • Port: 8080

Claude Desktop Configuration

To use this server with Claude Desktop, add the following configuration to your Claude Desktop's configuration file (claude_desktop_config.json):

{
  "mcpServers": {
    "ping": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8080/sse"
      ]
    }
  }
}

Sample test with Claude desktop :

Claude desktop

Available Tools

  1. ping_host

    • Purpose: Ping a specified host

    • Parameters:

      • host: Hostname or IP address to ping

      • count: Number of ping packets (1-20, default: 4)

  2. check_connectivity

    • Purpose: Check internet connectivity

    • Parameters:

      • host: Target host (default: 8.8.8.8)

Security Note

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

License

This project is open-source. Feel free to modify and distribute as needed.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides a ping tool to check connectivity and measure latency to any hostname or IP address across platforms.
    18
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that allows users to ping other hosts to check network connectivity and diagnostic information. It enables LLMs to perform network latency tests and host availability checks through a standardized interface.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables AI agents to check the health of internet infrastructure and specific services, helping diagnose whether issues are local or external.
    3
    12
    ISC

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sadeghtkd/ping-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server