Enable AI models to interact with a global network measurement platform through natural language. Give network access to any LLM. 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 locatio
Add this skill
npx mdskills install jsdelivr/globalping-mcp-serverWell-documented MCP server providing global network measurement tools with clear setup instructions
1# Globalping MCP Server23<p align="center">4 <img src="https://raw.githubusercontent.com/jsdelivr/globalping-media/refs/heads/master/logo/full_colored_dark.svg" alt="Globalping Logo" width="180"/>5</p>67<p align="center">8 <b>Enable AI models to interact with a global network measurement platform through natural language. Give network access to any LLM.</b>9</p>1011<p align="center">12 <a href="https://github.com/modelcontextprotocol/modelcontextprotocol">13 <img src="https://img.shields.io/badge/MCP-compatible-brightgreen.svg" alt="MCP Compatible">14 </a>15</p>161718## What is Globalping?1920[Globalping](https://globalping.io) 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.212223## What is the Globalping MCP Server?2425The Globalping MCP Server implements the [Model Context Protocol (MCP)](https://modelcontextprotocol.io), allowing AI models like OpenAI's GPT and Anthropic's Claude to interact with Globalping's network measurement capabilities through natural language.2627It 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.2829### Key Features3031- ๐ **Global Network Access**: Run measurements from thousands of probes worldwide32- ๐ค **AI-Friendly Interface**: Any LLM will easily parse the data and run new measurements as needed33- ๐ **Comprehensive Measurements**: Support for ping, traceroute, DNS, MTR, and HTTP tests34- ๐ **Smart Context Handling**: Provides detailed parameter descriptions for AI clients to intelligently select measurement types and options35- ๐ **Comparative Analysis**: Allows to compare network performance between different targets36- ๐ **Authentication Support**: Use OAuth or API token with your Globalping account for higher rate limits373839## Installation4041The remote MCP server is available under these endpoints:42- Streamable HTTP transport: `https://mcp.globalping.dev/mcp`43- SSE transport: `https://mcp.globalping.dev/sse`4445You can integrate our Globalping MCP server with various AI tools that support the Model Context Protocol.4647Here are instructions for the top 3 most popular tools:4849#### Gemini CLI5051To add the Globalping MCP server to Gemini CLI:52531. Ensure you have the [Gemini CLI](https://github.com/google/gemini-cli) installed.542. Run the following command:5556```bash57gemini extensions install https://github.com/jsdelivr/globalping-mcp-server58```5960This will automatically configure the server with OAuth authentication enabled. You will be prompted to log in when you first use the extension.6162**Note:** If you prefer to use a Globalping API token (for higher rate limits or automation), you can manually add the server with the Authorization header instead of using the extension installer:6364```bash65gemini mcp add globalping https://mcp.globalping.dev/mcp --header "Authorization: Bearer YOUR_TOKEN"66```6768#### Claude Desktop App6970Add to your Claude Desktop configuration file (located at `%APPDATA%\Claude\config.json` on Windows or `~/Library/Application Support/Claude/config.json` on macOS):7172> [!note]73> Claude Desktop natively supports only stdio transport for local MCP servers.74> For remote MCP servers, use the `mcp-remote` bridge.7576```json77{78 "mcpServers": {79 "globalping": {80 "command": "npx",81 "args": [82 "mcp-remote",83 "https://mcp.globalping.dev/sse"84 ]85 }86 }87}88```89#### Anthropic Claude API (via Console)9091When creating a Claude Assistant in the Anthropic Console:92931. Go to [console.anthropic.com](https://console.anthropic.com/)942. Navigate to the Assistants section953. Create a new Assistant or edit an existing one964. In the Tools section, select "Add custom tool"975. Enter the following details:98 - Tool Name: `Globalping`99 - Description: `Run network tests from locations worldwide`100 - Tool URL: `https://mcp.globalping.dev/mcp` (Streamable HTTP transport) or `https://mcp.globalping.dev/sse` (SSE transport)101102#### Cursor103104To add the Globalping MCP server to Cursor:1051061. Open Cursor settings1072. Navigate to the Tools & MCP tab1083. Click on "+ New MCP server"1094. This opens the `mcp.json` config file, where you will need to add:110111Streamable HTTP transport:112```json113{114 "mcpServers": {115 "globalping": {116 "url": "https://mcp.globalping.dev/mcp"117 }118 }119}120```121Legacy SSE transport:122```json123{124 "mcpServers": {125 "globalping": {126 "command": "npx",127 "args": [128 "mcp-remote",129 "https://mcp.globalping.dev/sse"130 ]131 }132 }133}134```1355. Save and restart Cursor136## Authentication137138The Globalping MCP server supports two authentication methods:139- **OAuth Authentication**: Automatically handled by the server for secure access140- **API Token Authentication**: Manual token configuration via Authorization header141142Both methods provide higher rate limits and priority access to the probe network.143144### Using Globalping API Token145146The server automatically detects when an API token is provided in the Authorization header and uses it for authentication instead of OAuth.147148#### Getting Your API Token1491501. Visit [dash.globalping.io](https://dash.globalping.io)1512. Sign in to your account1523. Navigate to Tokens to generate a new API token153154#### Configuration with Authentication155156Streamable HTTP transport:157```json158{159 "mcpServers": {160 "globalping": {161 "url": "https://mcp.globalping.dev/mcp",162 "headers": {163 "Authorization": "Bearer YOUR_GLOBALPING_API_TOKEN"164 }165 }166 }167}168```169Legacy SSE transport:170```json171{172 "mcpServers": {173 "globalping": {174 "command": "npx",175 "args": [176 "mcp-remote",177 "https://mcp.globalping.dev/sse",178 "--header",179 "Authorization: Bearer YOUR_GLOBALPING_API_TOKEN"180 ]181 }182 }183}184```185186## Connecting AI Assistants187188You can use our MCP server with any MCP-compatible AI assistant, including:189190- Claude Desktop191- Anthropic Assistants192- Cursor193- Windsurf194- Any custom implementation of the MCP protocol195196See your tool's MCP documentation for details on connecting clients to this server.197198199## Available Tools200201- `ping` - Perform a ping test to a target202- `traceroute` - Perform a traceroute test to a target203- `dns` - Perform a DNS lookup for a domain204- `mtr` - Perform an MTR (My Traceroute) test to a target205- `http` - Perform an HTTP request to a URL206- `locations` - List all available Globalping probe locations207- `limits` - Show your current rate limits for the Globalping API208- `getMeasurement` - Retrieve a previously run measurement by ID209- `compareLocations` - Guide on how to run comparison measurements210- `help` - Show a help message with documentation on available tools211212## Usage Examples213214Once connected to an AI model through a compatible MCP client, you can interact with Globalping using natural language:215216```217Ping google.com from 3 locations in Europe218```219220```221Run a traceroute to github.com from Japan and compare with traceroute from the US222```223224```225Check the DNS resolution of example.com using Google DNS (8.8.8.8)226```227228```229Is jsdelivr.com reachable from China? Test with both ping and HTTP230```231232```233What's the average response time for cloudflare.com across different continents?234```235236237## Location Specification238239Locations can be specified using the "magic" field, which supports various formats:240241- Continent codes: "EU", "NA", "AS", etc.242- Country codes: "US", "DE", "JP", etc.243- City names: "London", "Tokyo", "New York", etc.244- Network names: "Cloudflare", "Google", etc.245- ASN numbers: "AS13335", "AS15169", etc.246- Cloud provider regions: "aws-us-east-1", "gcp-us-central1", etc.247248You can also combine these with a plus sign for more specific targeting: "London+UK", "Cloudflare+US", etc.249250251## Development252253The codebase is organized into modules:254255- `src/index.ts` - Main entry point and MCP agent definition256- `src/app.ts` - OAuth web routes257- `src/api` - Globalping API client258- `src/auth` - Authentication utilities259- `src/config` - Configuration and constants260- `src/lib` - Utility functions261- `src/mcp` - MCP tool handlers262- `src/types` - TypeScript type definitions263- `src/ui` - HTML templates264265266### Add Globalping credentials267268Add Globalping OAuth credentials:269270- `npx wrangler secret put GLOBALPING_CLIENT_ID`271272### KV storage273Used for `OAuthProvider` docs https://github.com/cloudflare/workers-oauth-provider274- create a KV namespace and copy ID275- binding for it must be `OAUTH_KV`276- configure `kv_namespaces` in the `wrangler.jsonc` file277
Full transparency โ inspect the skill content before installing.