MCP Ping Server

MCP Ping Server

By sadeghtkd GitHub

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

mcp ping
Overview

What is MCP Ping Server?

MCP Ping Server is a server implementation that provides ping functionality to Claude Desktop through the Model Context Protocol (MCP). It allows users to perform network connectivity tests and ping operations.

How to use MCP Ping Server?

To use the MCP Ping Server, clone the repository, install the dependencies using pip, and run the server with Python. Configure Claude Desktop to connect to the server by adding the necessary configuration to its configuration file.

Key features of MCP Ping Server?

  • 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.

Use cases of MCP Ping Server?

  1. Testing network connectivity to various hosts.
  2. Monitoring internet connectivity status.
  3. Integrating with Claude Desktop for enhanced network functionalities.

FAQ from MCP Ping Server?

  • Is MCP Ping Server free to use?

Yes! MCP Ping Server is open-source and free to use.

  • What are the system requirements?

You need Python 3.12+ and the required dependencies which can be installed via pip.

  • Can I use MCP Ping Server on different operating systems?

Yes! It supports Windows, Linux, and MacOS.

Content

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.

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.

No tools information available.

This is a basic MCP Server-Client Impl using SSE

mcp server-client
View Details

-

mcp model-context-protocol
View Details

Buttplug.io Model Context Protocol (MCP) Server

mcp buttplug
View Details

MCP web search using perplexity without any API KEYS

mcp puppeteer
View Details

free MCP server hosting using vercel

mcp mantle-network
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details