GitHub - jsdelivr/globalping-mcp-server: Remote MCP server that gives LLMs access to run network commands (original) (raw)

Globalping MCP Server

Globalping Logo

Enable AI models to interact with a global network measurement platform through natural language. Give network access to any LLM.

MCP Compatible

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 oAuth authentication, which offers a secure way to interact with our API and benefits from higher rate limits associated with your account.

Key Features

Installation

The remote MCP server is available under this endpoint https://mcp.globalping.dev/sse

You can integrate our Globalping MCP server with various AI tools that support the Model Context Protocol.

Here are instructions for the top 3 most popular tools:

Claude Desktop App

Add to your Claude Desktop configuration file (located at %APPDATA%\Claude\config.json on Windows or ~/Library/Application Support/Claude/config.json on macOS):

{ "mcpServers": { "globalping": { "command": "npx", "args": [ "mcp-remote", "https://mcp.globalping.dev/sse" ] } } }

Anthropic Claude API (via Console)

When creating a Claude Assistant in the Anthropic Console:

  1. Go to console.anthropic.com
  2. Navigate to the Assistants section
  3. Create a new Assistant or edit an existing one
  4. In the Tools section, select "Add custom tool"
  5. Enter the following details:
    • Tool Name: Globalping
    • Description: Run network tests from locations worldwide
    • Tool URL: https://mcp.globalping.dev/sse

Cursor

To add the Globalping MCP server to Cursor:

  1. Open Cursor settings
  2. Navigate to the MCP tab
  3. Click on "+ Add new global MCP server"
  4. This opens the mcp.json config file, where you will need to add:

{ "mcpServers": { "globalping": { "command": "npx", "args": [ "mcp-remote", "https://mcp.globalping.dev/sse" ] } } }

  1. Click "Save" and restart Cursor

Connecting AI Assistants

This MCP server can be used with any MCP-compatible AI assistant, including:

See the MCP documentation for details on connecting clients to this server.

Available Tools

Usage Examples

Once connected to an AI model through a compatible MCP client, you can interact with Globalping using natural language:

Ping google.com from 3 locations in Europe
Run a traceroute to github.com from Japan and compare with traceroute from the US
Check the DNS resolution of example.com using Google DNS (8.8.8.8)
Is jsdelivr.com reachable from China? Test with both ping and HTTP
What's the average response time for cloudflare.com across different continents?

Location Specification

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

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:

Add Globalping credentials

Add Globalping OAuth credentials:

KV storage

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