Internet Speed Test MCP server

Measures network performance metrics including download speed, upload speed, latency, and jitter through configurable test endpoints that adapt to different testing scenarios and environments.
Back to servers
Setup instructions
Provider
Inventer Team
Release date
Apr 26, 2025
Language
Python
Stats
7 stars

This internet speed testing tool helps AI models measure and analyze network performance metrics using a standardized Model Context Protocol (MCP) interface.

Installation

Prerequisites

  • Python 3.12 or higher
  • pip or uv package manager

Option 1: Install from PyPI with pip (Recommended)

# 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
docker run -it --rm -v $(pwd):/app -w /app mcp-internet-speed-test

Configuration

To use this MCP server with Claude Desktop or other MCP clients, add it to your MCP configuration file.

Claude Desktop Configuration

Edit your Claude Desktop MCP configuration file:

Option 1: Using pip installed package (Recommended)

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

Option 2: Using uvx

{
    "mcpServers": {
        "mcp-internet-speed-test": {
            "command": "uvx",
            "args": ["mcp-internet-speed-test"]
        }
    }
}

Available Testing Tools

The MCP Internet Speed Test provides the following tools:

Testing Functions

  1. measure_download_speed: Measures download bandwidth (in Mbps) with server location info
  2. measure_upload_speed: Measures upload bandwidth (in Mbps) with server location info
  3. measure_latency: Measures network latency (in ms) with server location info
  4. measure_jitter: Measures network jitter by analyzing latency variations with server info
  5. get_server_info: Get detailed CDN server information for any URL without running speed tests
  6. run_complete_test: Comprehensive test with all metrics and server metadata

CDN Server Detection

This speed test provides detailed information about the CDN servers serving your tests:

What You Get

  • CDN Provider: Identifies if you're connecting to Fastly, Cloudflare, or Amazon CloudFront
  • Geographic Location: Shows the physical location of the server (e.g., "Mexico City, Mexico")
  • POP Code: Three-letter code identifying the Point of Presence (e.g., "MEX", "QRO", "DFW")
  • Cache Status: Whether content is served from cache (HIT) or fetched from origin (MISS)
  • Server Headers: Full HTTP headers including x-served-by, via, and x-cache

Example Server Info Output

{
  "cdn_provider": "Fastly",
  "pop_code": "MEX",
  "pop_location": "Mexico City, Mexico",
  "served_by": "cache-mex4329-MEX",
  "cache_status": "HIT",
  "x_cache": "HIT, HIT"
}

Troubleshooting

Common Issues

MCP Server Connection

  1. Path Configuration: Ensure absolute path is used in MCP configuration
  2. Directory Permissions: Verify read/execute permissions for the project directory
  3. Python Version: Requires Python 3.12+ with async support
  4. Dependencies: Install fastmcp and httpx packages

Speed Test Issues

  1. GitHub Repository Access: Ensure access to the test file repository
  2. Firewall/Proxy: Check if corporate firewalls block test endpoints
  3. CDN Routing: Some ISPs may route differently to CDNs
  4. Network Stability: Jitter tests require stable connections

Performance Considerations

  • File Size Limits: Large files (>50MB) may timeout on slow connections
  • Upload Endpoints: If primary endpoint fails, fallback is automatic
  • Geographic Accuracy: POP detection depends on CDN header consistency

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "mcp-internet-speed-test" '{"command":"uv","args":["--directory","/ABSOLUTE/PATH/TO/mcp-internet-speed-test","run","main.py"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "mcp-internet-speed-test": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/mcp-internet-speed-test",
                "run",
                "main.py"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "mcp-internet-speed-test": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/mcp-internet-speed-test",
                "run",
                "main.py"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later