Labsco
jsdelivr logo

Globalping

β˜… 60

from jsdelivr

Network access with the ability to run commands like ping, traceroute, mtr, http, dns resolve.

πŸ”₯πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

Globalping MCP Server

<p align="center"> <img src="https://raw.githubusercontent.com/jsdelivr/globalping-media/refs/heads/master/logo/full_colored_dark.svg" alt="Globalping Logo" width="180"/> </p> <p align="center"> <b>Enable AI models to interact with a global network measurement platform through natural language. Give network access to any LLM.</b> </p> <p align="center"> <a href="https://github.com/modelcontextprotocol/modelcontextprotocol"> <img src="https://img.shields.io/badge/MCP-compatible-brightgreen.svg" alt="MCP Compatible"> </a> </p>

What is Globalping?

Globalping is a free, public API that provides access to a globally distributed network of probes for monitoring, debugging, and benchmarking internet infrastructure. With Globalping, you can run network tests (ping, traceroute, DNS, MTR, HTTP) from thousands of locations worldwide.

What is the Globalping MCP Server?

The Globalping MCP Server implements the Model Context Protocol (MCP), allowing AI models like OpenAI's GPT and Anthropic's Claude to interact with Globalping's network measurement capabilities through natural language.

It also supports two authentication methods: OAuth and API token authentication. Both methods offer a secure way to interact with our API and provide higher rate limits associated with your account.

Key Features

  • 🌐 Global Network Access: Run measurements from thousands of probes worldwide
  • πŸ€– AI-Friendly Interface: Any LLM will easily parse the data and run new measurements as needed
  • πŸ“Š Comprehensive Measurements: Support for ping, traceroute, DNS, MTR, and HTTP tests
  • πŸ” Smart Context Handling: Provides detailed parameter descriptions for AI clients to intelligently select measurement types and options
  • πŸ”„ Comparative Analysis: Allows to compare network performance between different targets
  • πŸ”‘ Authentication Support: Use OAuth or API token with your Globalping account for higher rate limits

Authentication

The Globalping MCP server supports two authentication methods:

  • OAuth Authentication: Automatically handled by the server for secure access
  • API Token Authentication: Manual token configuration via Authorization header

Both methods provide higher rate limits and priority access to the probe network.

Using Globalping API Token

The server automatically detects when an API token is provided in the Authorization header and uses it for authentication instead of OAuth.

Getting Your API Token

  1. Visit dash.globalping.io
  2. Sign in to your account
  3. Navigate to Tokens to generate a new API token

Configuration with Authentication

Streamable HTTP transport:

Copy & paste β€” that's it
{
    "mcpServers": {
        "globalping": {
            "url": "https://mcp.globalping.dev/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_GLOBALPING_API_TOKEN"
            }
        }
    }
}

Legacy SSE transport:

Copy & paste β€” that's it
{
    "mcpServers": {
        "globalping": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.globalping.dev/sse",
                "--header",
                "Authorization: Bearer YOUR_GLOBALPING_API_TOKEN"
            ]
        }
    }
}

Connecting AI Assistants

You can use our MCP server with any MCP-compatible AI assistant, including:

  • Claude Desktop
  • Anthropic Assistants
  • Cursor
  • Windsurf
  • Any custom implementation of the MCP protocol

See your tool's MCP documentation for details on connecting clients to this server.

Available Tools

  • ping - Perform a ping test to a target
  • traceroute - Perform a traceroute test to a target
  • dns - Perform a DNS lookup for a domain
  • mtr - Perform an MTR (My Traceroute) test to a target
  • http - Perform an HTTP request to a URL
  • locations - List all available Globalping probe locations
  • limits - Show your current rate limits for the Globalping API
  • getMeasurement - Retrieve a previously run measurement by ID
  • compareLocations - Guide on how to run comparison measurements
  • help - Show a help message with documentation on available tools

Location Specification

Locations can be specified using the "magic" field, which supports various formats:

  • Continent codes: "EU", "NA", "AS", etc.
  • Country codes: "US", "DE", "JP", etc.
  • City names: "London", "Tokyo", "New York", etc.
  • Network names: "Cloudflare", "Google", etc.
  • ASN numbers: "AS13335", "AS15169", etc.
  • Cloud provider regions: "aws-us-east-1", "gcp-us-central1", etc.

You can also combine these with a plus sign for more specific targeting: "London+UK", "Cloudflare+US", etc.

Development

The codebase is organized into modules:

  • src/index.ts - Main entry point and MCP agent definition
  • src/app.ts - OAuth web routes
  • src/api - Globalping API client
  • src/auth - Authentication utilities
  • src/config - Configuration and constants
  • src/lib - Utility functions
  • src/mcp - MCP tool handlers
  • src/types - TypeScript type definitions
  • src/ui - HTML templates

Add Globalping credentials

Add Globalping OAuth credentials:

  • npx wrangler secret put GLOBALPING_CLIENT_ID

KV storage

Used for OAuthProvider docs https://github.com/cloudflare/workers-oauth-provider

  • create a KV namespace and copy ID
  • binding for it must be OAUTH_KV
  • configure kv_namespaces in the wrangler.jsonc file