Integrates with Cloudflare for OAuth authentication and Workers platform to deploy the MCP server
Mentioned as a testable service through Globalping's network measurement tools
Allows GPT models to access Globalping's network testing capabilities through natural language interactions
Globalping MCP Server
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.
Related MCP server: Liveblocks
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
Installation
The remote MCP server is available under these endpoints:
Streamable HTTP transport:
https://mcp.globalping.dev/mcpSSE transport:
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:
Gemini CLI
To add the Globalping MCP server to Gemini CLI:
Ensure you have the Gemini CLI installed.
Run the following command:
This will automatically configure the server with OAuth authentication enabled. You will be prompted to log in when you first use the extension.
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:
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):
Streamable HTTP transport:
Legacy SSE transport:
Anthropic Claude API (via Console)
When creating a Claude Assistant in the Anthropic Console:
Go to console.anthropic.com
Navigate to the Assistants section
Create a new Assistant or edit an existing one
In the Tools section, select "Add custom tool"
Enter the following details:
Tool Name:
GlobalpingDescription:
Run network tests from locations worldwideTool URL:
https://mcp.globalping.dev/mcp(Streamable HTTP transport) orhttps://mcp.globalping.dev/sse(SSE transport)
Cursor
To add the Globalping MCP server to Cursor:
Open Cursor settings
Navigate to the MCP tab
Click on "+ Add new global MCP server"
This opens the
mcp.jsonconfig file, where you will need to add:
Streamable HTTP transport:
Legacy SSE transport:
Click "Save" and restart Cursor
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
Visit globalping.io
Sign in to your account
Navigate to your account settings to generate an API token
Configuration with Authentication
Streamable HTTP transport:
Legacy SSE transport:
Connecting AI Assistants
This MCP server can be used with any MCP-compatible AI assistant, including:
Claude Desktop
Anthropic Assistants
Cursor
Windsurf
Any custom implementation of the MCP protocol
See the MCP documentation for details on connecting clients to this server.
Available Tools
ping- Perform a ping test to a targettraceroute- Perform a traceroute test to a targetdns- Perform a DNS lookup for a domainmtr- Perform an MTR (My Traceroute) test to a targethttp- Perform an HTTP request to a URLlocations- List all available Globalping probe locationslimits- Show your current rate limits for the Globalping APIgetMeasurement- Retrieve a previously run measurement by IDcompareLocations- Guide on how to run comparison measurementshelp- Show a help message with documentation on available tools
Usage Examples
Once connected to an AI model through a compatible MCP client, you can interact with Globalping using natural language:
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 definitionsrc/app.ts- OAuth web routessrc/api- Globalping API clientsrc/auth- Authentication utilitiessrc/config- Configuration and constantssrc/lib- Utility functionssrc/mcp- MCP tool handlerssrc/types- TypeScript type definitionssrc/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_KVconfigure
kv_namespacesin thewrangler.jsoncfile