io.globalping/mcp

平台与服务

by jsdelivr

连接全球网络测量平台,可从世界任意地点运行网络命令,执行远程观测与连通性测试。

什么是 io.globalping/mcp

连接全球网络测量平台,可从世界任意地点运行网络命令,执行远程观测与连通性测试。

README

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

Installation

The remote MCP server is available under these endpoints:

  • Streamable HTTP transport: https://mcp.globalping.dev/mcp
  • SSE 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:

  1. Ensure you have the Gemini CLI installed.
  2. Run the following command:
bash
gemini extensions install https://github.com/jsdelivr/globalping-mcp-server

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:

bash
gemini mcp add globalping https://mcp.globalping.dev/mcp --header "Authorization: Bearer YOUR_TOKEN"

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):

[!note] Claude Desktop natively supports only stdio transport for local MCP servers. For remote MCP servers, use the mcp-remote bridge.

json
{
    "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/mcp (Streamable HTTP transport) or https://mcp.globalping.dev/sse (SSE transport)

Cursor

To add the Globalping MCP server to Cursor:

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

Streamable HTTP transport:

json
{
    "mcpServers": {
        "globalping": {
            "url": "https://mcp.globalping.dev/mcp"
        }
    }
}

Legacy SSE transport:

json
{
    "mcpServers": {
        "globalping": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.globalping.dev/sse"
            ]
        }
    }
}
  1. 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

  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:

json
{
    "mcpServers": {
        "globalping": {
            "url": "https://mcp.globalping.dev/mcp",
            "headers": {
                "Authorization": "Bearer YOUR_GLOBALPING_API_TOKEN"
            }
        }
    }
}

Legacy SSE transport:

json
{
    "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

Usage Examples

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

code
Ping google.com from 3 locations in Europe
code
Run a traceroute to github.com from Japan and compare with traceroute from the US
code
Check the DNS resolution of example.com using Google DNS (8.8.8.8)
code
Is jsdelivr.com reachable from China? Test with both ping and HTTP
code
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:

  • 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

常见问题

io.globalping/mcp 是什么?

连接全球网络测量平台,可从世界任意地点运行网络命令,执行远程观测与连通性测试。

相关 Skills

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描164.6k

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描164.6k

接口测试套件

by alirezarezvani

Universal
热门

扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。

帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。

平台与服务
未扫描23.3k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
89.0k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
79.5k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
71.5k

评论