ID

inventer-dev/mcp-internet-speed-test

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

15 stars 9 forks 质量 69 趋势 21MIT

MCP互联网速度测试(英語:MCP Internet Speed Test)是一个专门的"模型背景协议"(MCP)服务器,它使AI模型和代理能够进行互联网速度测量.

概览

实施因特网速度测试的示范背景协议。 它允许AI模型和代理通过标准化的界面来测量,分析和报告网络性能度量. https://pypi.org/project/mcp-internet-speed-test/ 模式背景协议(MCP)为大语言模型(LLMS)提供了与外部工具和数据源互动的标准化方式. 把它想成"AI应用程序的USB-C"——一个允许AI系统访问现实世界能力和信息的常见界面. - 使用速度.

概述(AI 翻译)

实施因特网速度测试的示范背景协议。 它允许AI模型和代理通过标准化的界面来测量,分析和报告网络性能度量.

QQ 快速启动 : **

□ 什么是MCP吗?

模式背景协议(MCP)为大语言模型(LLMS)提供了与外部工具和数据源互动的标准化方式. 把它想成"AI应用程序的USB-C"——一个允许AI系统访问现实世界能力和信息的常见界面.

□ 特性

  • ** 智能增量测试**:使用速度。 8秒阈值最准确的我的方法
  • ** Download 速度测试**:使用GitHub仓库(Git LFS)中从128KB到128MB的文件测量带宽
  • ** 装载速度测试**: 使用流媒体数据从128KB到128MB进行上传带宽的测试
  • ** 耐受度测试**:利用多份样本衡量网络耐受度,报告最低值
  • 吉特分析:利用多时段样本计算网络稳定性(默认:5)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Internet Speed Test

An implementation of a Model Context Protocol (MCP) for internet speed testing. It allows AI models and agents to measure, analyze, and report network performance metrics through a standardized interface.

📦 Available on PyPI: https://pypi.org/project/mcp-internet-speed-test/

🚀 Quick Start:

pip install mcp-internet-speed-test
mcp-internet-speed-test

What is MCP?

The Model Context Protocol (MCP) provides a standardized way for Large Language Models (LLMs) to interact with external tools and data sources. Think of it as the “USB-C for AI applications” - a common interface that allows AI systems to access real-world capabilities and information.

Features

  • Smart Incremental Testing: Uses SpeedOf.Me methodology with 8-second threshold for optimal accuracy
  • Download Speed Testing: Measures bandwidth using files from 128KB to 128MB from GitHub repository (Git LFS)
  • Upload Speed Testing: Tests upload bandwidth using streaming data from 128KB to 128MB
  • Latency Testing: Measures network latency using multiple samples, reports minimum value
  • Jitter Analysis: Calculates network stability using multiple latency samples (default: 5)
  • Multi-CDN Support: Detects and provides info for Fastly, Cloudflare, and AWS CloudFront
  • Geographic Location: Maps POP codes to physical locations (50+ locations worldwide)
  • Cache Analysis: Detects HIT/MISS status and cache headers
  • Server Metadata: Extracts detailed CDN headers including x-served-by, via, x-cache
  • Comprehensive Testing: Single function to run all tests with complete metrics

Installation

Prerequisites

  • Python 3.12 or higher (required for async support)
  • pip or uv package manager
# Install the package globally
pip install mcp-internet-speed-test

# Run the MCP server
mcp-internet-speed-test

Option 2: Install from PyPI with uv

# Install the package globally
uv add mcp-internet-speed-test

# Or run directly without installing
uvx mcp-internet-speed-test

Option 3: Using docker

# Build the Docker image
docker build -t mcp-internet-speed-test .

# Run the MCP server in a Docker container
在 GitHub 查看完整 README

安装

uvx mcp-internet-speed-test
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "mcp-internet-speed-test": { "command": "mcp-internet-speed-test" } } }