MCP Hub
Back to servers

MCP Health Monitor

Monitor MCP server health, uptime, response times, and Azure DevOps pipeline status

Registryglama
Updated
Apr 8, 2026

Quick Install

npx -y mcp-health-monitor

mcp-health-monitor

MCP server health monitoring, uptime tracking, Azure DevOps pipeline status, and alert evaluation through natural-language tools.

npm version npm downloads License: MIT Node.js

What This Does

mcp-health-monitor keeps a registry of the MCP servers you care about, performs real MCP handshakes against them, records health history in SQLite, and reports uptime, latency, and alert thresholds back through MCP tools. It also tracks Azure DevOps pipelines so app health and delivery health can be checked from the same place.

Quick Start

Run the monitor over stdio:

npx -y mcp-health-monitor

Example Claude Desktop or VS Code MCP entry:

{
  "name": "mcp-health-monitor",
  "version": "1.0.2",
  "mcpName": "io.github.oaslananka/mcp-health-monitor",
  "description": "Monitor MCP server health, uptime, response times, and Azure DevOps pipelines",
  "transport": "stdio",
  "command": "npx",
  "args": ["-y", "mcp-health-monitor"]
}

Tools Reference

ToolPurposeTypical prompt
register_serverSave an MCP server to monitorRegister https://example.com/mcp as prod-gateway
check_serverRun a live health check for one serverCheck prod-gateway now
check_allCheck all registered serversCheck all my MCP servers
get_uptimeReturn uptime plus latency statsShow 24h uptime for prod-gateway
get_dashboardReturn JSON dashboard dataGive me a 24h dashboard
get_reportReturn a Markdown reportGenerate a Markdown health report for 24h
list_serversShow registered serversList all monitored servers
unregister_serverRemove a serverStop monitoring local-debugger
set_alertConfigure thresholdsAlert if prod-gateway exceeds 500ms or drops below 99% uptime
get_monitor_statsShow monitor-level statsHow many checks has the monitor recorded?
register_azure_pipelinesRegister Azure pipeline groupsTrack CI and Publish pipelines for my repo
check_pipeline_statusRead latest Azure pipeline runsCheck pipeline status for my release group
get_pipeline_logsFetch Azure build logsShow the failed logs for the latest Publish build
check_all_projectsCombine MCP and Azure healthCheck all projects

Azure DevOps Integration

Register a pipeline group with an org, project, pipeline names, and a PAT:

register_azure_pipelines name="mcp-health-monitor" organization="oaslananka" project="open-source" pipeline_names=["mcp-health-monitor CI","mcp-health-monitor Publish"] pat_token="..."

PAT tokens are stored as base64 in the local SQLite database for v1.0. This is encoding, not encryption. See credential storage notes.

Alert Configuration

Use set_alert to configure one server:

FieldMeaning
max_response_time_msAlert when a check exceeds this latency
min_uptime_percentAlert when the selected uptime window drops below this value
consecutive_failures_before_alertAlert after this many non-up results in a row

Alerts are evaluated inline by check_server, check_all, and get_dashboard. Webhook delivery is planned for v1.1, and no webhook MCP tool is shipped in v1.0.x.

Data Storage

  • Default database path: ~/.mcp-health-monitor/health.db
  • Override path: HEALTH_MONITOR_DB=/custom/path/health.db
  • Optional background scheduler: HEALTH_MONITOR_AUTO_CHECK=1
  • HTTP server health endpoint: GET /health
  • Example configuration: .env.example

The DB uses WAL mode on file-backed databases and applies schema migrations automatically on startup.

Docker

Build and run:

docker build -t mcp-health-monitor .
docker run --rm -p 3000:3000 -e HEALTH_MONITOR_AUTO_CHECK=1 mcp-health-monitor

Then check:

curl http://localhost:3000/health

Development

npm install
npm run build
npm test
npm run test:integration
npm run lint
npm run lint:test
npm run format:check

Use npx --yes -p node@20.19.0 -p npm@10.8.2 npm <command> on workstations where the default Node runtime is newer than the project target.

Architecture

High-level module map:

  • src/app.ts: MCP tool registration and response formatting
  • src/checker.ts: Live MCP connectivity probes with retry/backoff
  • src/registry.ts: SQLite read/write paths for servers, checks, and pipeline records
  • src/db.ts + src/migrations.ts: Connection setup and schema upgrades
  • src/server-http.ts + src/mcp.ts: HTTP and stdio entrypoints
  • src/scheduler.ts: Optional background auto-check loop

More detail lives in architecture.md.

Roadmap

Detailed milestone planning lives in ROADMAP.md.

  • v1.0: Core monitoring, uptime, alerts, Azure pipelines, Markdown reports
  • v1.1: Webhook notifications for Slack, Discord, and custom endpoints
  • v1.2: Multi-provider pipeline and generic HTTP monitoring
  • v2.0: Encrypted PAT storage and multi-user support

Security

Read SECURITY.md for vulnerability reporting and docs/security.md for implementation-specific storage details.

Contributing

See contributing.md for setup, standards, and PR expectations.

License

MIT

Reviews

No reviews yet

Sign in to write a review