A modern MCP server for TCP ping testing via pingloc.com
Project description
tcpping MCP stdio server (FastMCP)
FastMCP-based stdio MCP server implemented in modern_server.py. The earlier hand-written JSON-RPC variant has been removed for simplicity.
Features
- Self-contained scraping core (
tcpping_core.py) - Single tool
tcpping_runwith rich parameters - Fallback parsing & diagnostics (
debugdumps HTML + screenshot) - Optional
summary_onlymode for lightweight responses
Run (from source checkout)
python -m tcpping.mcp.stdio.modern_server
Run (after pip install)
tcpping-mcp
Both start a stdio MCP server exposing tool name tcpping_run.
Self-contained: the server embeds its own scraping core (tcpping_core.py) and does not import the top-level run_tcpping.py, making it easy to vendor just this directory.
Invoke (conceptual example)
MCP client request (pseudo):
{"jsonrpc":"2.0","id":"10","method":"tools/call","params":{"name":"tcpping_run","arguments":{"target":"admin.exchange.microsoft.com","summary_only":true}}}
Response result will be a JSON string (already serialized) containing either full dataset or minimal subset.
FastMCP Tool Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| target | string | (required) | Domain or URL |
| port | int | 443 | TCP port |
| timeout | float | 120 | Max seconds overall |
| retries | int | 1 | Retry attempts |
| headless | bool | true | Headless browser mode |
| browser_channel | string | msedge | Playwright browser channel |
| debug | bool | false | Dump diagnostics on empty results |
| summary_only | bool | false | Return reduced summary subset |
Returned Value
Serialized JSON string. Client may need to parse it once more to treat as object.
Notes
- Ensure Playwright browsers installed:
pip install -r tcpping/requirements.txt
playwright install chromium
- If site structure changes, underlying
run_tcpping.pyimprovements automatically propagate here.
CLI Help (future)
The current entry point simply launches the MCP server. A future version may add flags like --info or --version.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tcpping_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: tcpping_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c41eb71ebe1f4106282b22d4d30d70a8cb92d56646eda76b8cce2cc79888d115
|
|
| MD5 |
57b00da4ea6e8660aac902a339868229
|
|
| BLAKE2b-256 |
a591c84d8b8901e80427662cd3f48dafd40a3cdd413b16c3c131f632a73822fc
|
File details
Details for the file tcpping_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tcpping_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c682b97301c8c00fb1f7d219787b29fc868cf723a89ae993528e979a225225c3
|
|
| MD5 |
b87b52356c81861cca311b6dca8392c9
|
|
| BLAKE2b-256 |
1baf2328a34eef8804d057986f38b91014450ee15e7f4e14f0264ff74b2a3909
|