Sponsored by Deepsite.site

MCP Ping Server

Created By
sadeghtkd8 months ago
This mcp server allows Claude to perform network connectivity tests and ping operations.
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.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
CursorThe AI Code Editor
Tavily Mcp
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
ChatWiseThe second fastest AI chatbot™
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Amap Maps高德地图官方 MCP Server
Playwright McpPlaywright MCP server
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server