durable-web-monitor-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@durable-web-monitor-mcp monitor https://example.com/pricing for changes and alert me"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
durable-web-monitor-mcp
A small, security-conscious reference implementation for durable website-change monitoring with MCP.
It demonstrates a pattern that is useful for long-running assistants and automations:
baseline → detect → notify → acknowledge → durable inbox
The monitor supports two fetch modes:
direct HTTPS for ordinary pages;
isolated Playwright MCP for pages that need browser rendering.
Each browser fetch launches a fresh, non-persistent Playwright MCP subprocess with --isolated, then tears it down after the snapshot.
Why this exists
A reliable page monitor needs more than "fetch URL and compare strings". It should:
avoid alerting on the first observation;
normalize content before hashing;
persist baseline state across process restarts;
keep notifications until they are acknowledged;
separate "delivered" notifications from "reviewed" state;
use a disposable browser session for dynamic pages;
reject obviously unsafe network targets before fetching;
make the monitoring state inspectable through MCP.
This repository is deliberately generic. It does not contain private infrastructure, credentials, account identifiers, internal hostnames, or environment-specific deployment configuration.
Related MCP server: mcp-page-monitor
Security model
This project is a reference implementation, not a network sandbox.
It rejects non-HTTPS URLs and hostnames that resolve to loopback, private, link-local, multicast, reserved, or unspecified IP addresses. Redirect targets are revalidated in the direct HTTP adapter.
Application-level URL checks cannot completely eliminate DNS rebinding or browser redirect risk. For untrusted URLs, run the monitor in a container/VM with restrictive egress rules and no access to metadata services or private networks. See SECURITY.md.
The browser adapter uses Playwright MCP's --sandbox and --isolated modes. Isolation prevents normal browser profile persistence between checks; neither option makes Playwright MCP a complete security boundary.
Requirements
Python 3.10+
Node.js 18+ and
npxonly if you use the browser adaptermcp>=2,<3Chromium available either through the pinned Playwright build or as a trusted system executable
Install
python -m venv .venv
source .venv/bin/activate
pip install -e .The package installs two commands:
dwm— CLI for checks and notification handling;dwm-mcp— stdio MCP server.
For the default browser-backed setup, install Chromium once for the Playwright build used by Playwright MCP v0.0.80:
npx -y playwright@1.63.0-alpha-2026-08-31 install chromiumIf your deployment manages Chromium separately, point the monitor at that trusted executable instead:
export DWM_BROWSER_EXECUTABLE_PATH=/path/to/chromiumWhen this variable is set, the browser adapter passes that path to Playwright MCP with --executable-path. The package never hard-codes a host-specific Chromium location.
Run as an MCP server
dwm-mcpThis starts the bundled MCP server over stdio without requiring the optional MCP SDK CLI extra.
The server exposes:
check_urllist_notificationsmark_notifications_reviewedmonitor_status
The SQLite database defaults to:
~/.local/share/durable-web-monitor-mcp/state.sqlite3Override it with DWM_STATE_PATH.
Example MCP flow
Call
check_urlwith a stable monitor name and URL.The first successful check stores a baseline and emits no notification.
Later content changes create durable notifications.
Call
list_notifications(status="new").After successfully presenting those notifications to the user, call
mark_notifications_reviewed(through_seq=...).
That last step matters: reading the inbox does not itself advance the review cursor.
Direct HTTPS example
{
"name": "example-docs",
"url": "https://example.com/docs",
"adapter": "direct",
"watch_terms": []
}An empty watch_terms list means any normalized content change is noteworthy.
Browser example
{
"name": "dynamic-status",
"url": "https://example.com/status",
"adapter": "browser",
"target": "body",
"watch_terms": ["incident", "degraded"]
}v0.1.0 deliberately pins the browser integration to the version tested for this release:
npx -y @playwright/mcp@0.0.80 --headless --sandbox --isolated --browser chromium --image-responses omit --codegen noneIf DWM_BROWSER_EXECUTABLE_PATH is set, --executable-path <value> is added to that command.
Playwright accessibility snapshots contain generated locator references such as [ref=e17]. The monitor removes those ephemeral references before hashing so locator churn does not create false change alerts.
Do not silently switch the package to @latest in production. Upgrade the pinned Playwright MCP and matching Playwright browser build deliberately, reinstall the browser binary if needed, and rerun the unit and browser integration tests first.
CLI
The same engine can be driven by cron, systemd timers, CI, or another scheduler:
dwm check \
--name example-docs \
--url https://example.com/docs \
--adapter direct
dwm inbox --status new
dwm ack --through-seq 12A scheduler is intentionally outside this package. Keeping scheduling separate makes the monitor usable with cron, systemd timers, GitHub Actions, container schedulers, or an agent platform without coupling the durable monitoring model to one runtime.
Normalization
Direct HTML fetches are reduced to visible text with scripts/styles/comments removed, HTML entities decoded, and whitespace collapsed.
Browser snapshots are normalized as text by removing generated Playwright locator references, trimming line endings, collapsing horizontal whitespace, and removing repeated blank lines.
The normalized text is SHA-256 hashed. The database stores hashes and bounded excerpts rather than complete page bodies.
Testing
Core tests use only the Python standard library:
python -m unittest discover -s tests -vThe Playwright MCP browser adapter is intentionally an integration boundary and is not launched by the unit tests.
Before publishing a release, also test installation in a fresh virtual environment, start the installed dwm-mcp entry point, and run real direct-HTTPS and isolated-browser checks against non-sensitive public pages. If using a system Chromium deployment, run the browser test with the same DWM_BROWSER_EXECUTABLE_PATH that production will use.
Design notes
See docs/ARCHITECTURE.md for the state machine, notification cursor model, browser-isolation rationale, and known limits.
License
Apache-2.0. See LICENSE.
Available Tools
4 toolscheck_urlC
Fetch one public HTTPS page and update its durable baseline.
Inputs: url (required), name (required), target, adapter, +1 more.
list_notificationsB
List durable notifications without advancing the review cursor.
Inputs: limit, status.
mark_notifications_reviewedA
Advance the durable notification cursor after successful handling.
Inputs: through_seq (required).
monitor_statusC
Return bounded durable inbox state and storage location.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct action: check_url for fetching, list_notifications for retrieving, mark_notifications_reviewed for updating state, and monitor_status for reporting. However, list_notifications and monitor_status could overlap if an agent wants to check notifications without advancing the cursor, but the descriptions clarify their distinct purposes.
All tool names follow a consistent verb_noun pattern (check_url, list_notifications, mark_notifications_reviewed, monitor_status). This pattern is predictable and easy to understand.
With only 4 tools, the server is well-scoped and each tool appears to serve a specific purpose in the monitor's workflow. This count is appropriate for a focused durable web monitoring tool.
The tool set covers the core lifecycle: checking a URL, listing notifications, marking them reviewed, and checking status. However, there is no tool to configure or remove monitors, which could be a gap for managing multiple URLs or cleaning up baselines.
Maintenance
Related MCP Connectors
Recurring webpage change, price, inventory and metadata monitoring for autonomous agents.
Watch a public web page for changes when your agent cannot stay running. Hourly checks, signed diffs
DNS, TLS, HTTP and SEO checks, plus stateful change watches that diff a page over time.
Page change monitoring, sitemap discovery, prompt-injection screening, clean markdown. Free preview.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables monitoring web pages for changes using Playwright, storing snapshots in SQLite, and optionally analyzing changes with an LLM for business impact assessment.5MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to monitor web pages for content changes and receive alerts when changes occur.-
- FlicenseNot gradedqualityCmaintenanceEnables monitoring of website changes through contracts, with automatic extraction, semantic diffing, and healing, triggering alerts and actions via email, Slack, or Telegram.-
- AlicenseBqualityBmaintenanceEnables evidence-bearing change monitoring for public text pages, providing normalized diffing, SHA-256 hashing, and signed webhook notifications.6MIT