loading…
Search for a command to run...
loading…
An MCP server for perfSONAR that enables querying historical network measurements, discovering global testpoints, and scheduling active network tests. It provid
An MCP server for perfSONAR that enables querying historical network measurements, discovering global testpoints, and scheduling active network tests. It provides tools for monitoring throughput, latency, and packet loss through integration with measurement archives and pScheduler.
MCP (Model Context Protocol) server for perfSONAR - Query measurements, discover testpoints, and schedule network tests.
pip install -e .
For development with additional tools:
pip install -e '.[dev]'
Required environment variable:
export PERFSONAR_HOST=perfsonar.example.com
Optional:
export LOOKUP_SERVICE_URL=https://lookup.perfsonar.net/lookup
export PSCHEDULER_URL=https://perfsonar.example.com/pscheduler
Standard MCP stdio transport for local AI clients:
python -m perfsonar_mcp
# or
perfsonar-mcp
FastMCP enables web-accessible MCP server via SSE (Server-Sent Events) or HTTP:
# SSE transport (recommended for web)
export PERFSONAR_HOST=perfsonar.example.com
fastmcp run src/perfsonar_mcp/fastmcp_server.py --transport sse --host 0.0.0.0 --port 8000
# HTTP transport (alternative)
fastmcp run src/perfsonar_mcp/fastmcp_server.py --transport http --host 0.0.0.0 --port 8000
# Or use the convenience command
perfsonar-mcp-web
The server will be accessible at:
http://your-host:8000/ssehttp://your-host:8000/mcp/docker-compose up -d
helm install perfsonar-mcp ./helm/perfsonar-mcp \
--set config.perfsonarHost=perfsonar.example.com
Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"perfsonar": {
"command": "python",
"args": ["-m", "perfsonar_mcp"],
"env": {
"PERFSONAR_HOST": "your-perfsonar-host.example.com"
}
}
}
}
For web-based access, use the SSE endpoint:
{
"mcpServers": {
"perfsonar-web": {
"url": "http://your-server:8000/sse",
"transport": "sse"
}
}
}
query_measurements - Search measurementsget_throughput - Throughput dataget_latency - Latency dataget_packet_loss - Packet loss dataget_measurement_data - Raw time-seriesget_available_event_types - List typeslookup_testpoints - Find testpointsfind_pscheduler_services - Find pSchedulerschedule_throughput_test - Run throughput testschedule_latency_test - Run latency testschedule_rtt_test - Run RTT testget_test_status - Check statusget_test_result - Get resultsAsk Claude:
"Find perfSONAR testpoints in Europe"
"Schedule a 30-second throughput test to host.example.com"
"Get hourly throughput averages between host1 and host2 for the last week"
AI Agent (Claude)
↓ MCP Protocol (stdio)
perfSONAR MCP Server (Python)
├── Measurement Archive Client
├── Lookup Service Client
└── pScheduler Client
↓
perfSONAR Services
Web Clients / AI Agents
↓ HTTP/SSE
FastMCP Web Server (uvicorn)
↓ MCP Protocol
perfSONAR MCP Server (Python)
├── Measurement Archive Client
├── Lookup Service Client
└── pScheduler Client
↓
perfSONAR Services
Both transports expose the same tools and capabilities. The web transport enables:
The server includes comprehensive logging for development and debugging. By default, logs are written to stderr at INFO level.
To enable DEBUG logging for more detailed output:
import logging
logging.basicConfig(level=logging.DEBUG)
Or set the log level via environment variable:
export PYTHONLOGLEVEL=DEBUG
python -m perfsonar_mcp
Log output includes:
Open in VS Code → Reopen in Container
# Install with dev dependencies
pip install -e '.[dev]'
# Format code
black src/perfsonar_mcp/
# Lint code
ruff check src/perfsonar_mcp/
# Type check
mypy src/perfsonar_mcp/
# Run tests
pytest tests/
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"perfsonar-mcp": {
"command": "npx",
"args": []
}
}
}PRs, issues, code search, CI status
Database, auth and storage
Reference / test server with prompts, resources, and tools.
Secure file operations with configurable access controls.