# Diffgrab [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/QuartzUnit/diffgrab  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/diffgrab

## Description
Web page change tracking with structured diffs. markgrab + snapgrab integration.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "diffgrab": {
    "command": "uvx",
    "args": ["diffgrab"]
  }
}
```

## Documentation

## What Diffgrab MCP server does

The Diffgrab MCP server monitors URLs and compares later captures with an initial baseline. It detects changes using content hashes, then produces a `DiffResult` containing whether the page changed, added and removed line counts, changed Markdown sections, a standard unified diff, a readable summary, and the IDs and timestamps of the compared snapshots.

The extracted content comes from markgrab, which supports HTML, YouTube, PDF, and DOCX extraction. This allows tracking to operate on normalized content rather than only raw page markup. An optional visual-diff path uses snapgrab to compare screenshots and page metadata, but that capability requires the visual extra.

Snapshots are kept in SQLite, making it possible to inspect earlier versions and compare selected snapshots instead of only comparing the newest capture with the previous one.

## How it works

Registering a URL takes an initial snapshot and stores it as the baseline. A later check fetches the current page and first compares content hashes. Unchanged content produces no change result; changed content is processed into a structured comparison with line-level and heading-level information.

The MCP interface exposes five operations:

- `track_url` registers a URL for monitoring.
- `check_changes` checks tracked URLs for updates.
- `get_diff` compares two snapshots, or retrieves a diff for a tracked URL.
- `get_history` lists stored snapshots for a URL.
- `untrack_url` removes a URL from tracking.

The same behavior is available through the Python `DiffTracker` class, convenience functions such as `track`, `check`, and `history`, and the `diffgrab` command-line interface.

## Setup and configuration

Install the base package with `pip install diffgrab`. Add `diffgrab[mcp]` to install the MCP server dependencies, or install `diffgrab[all]` for the available CLI, visual-diff, and MCP extras. The server command is `diffgrab-mcp`.

A Claude Code configuration can launch the Diffgrab MCP server directly with a stdio command:

```json
{
  "mcpServers": {
    "diffgrab": {
      "command": "diffgrab-mcp",
      "args": []
    }
  }
}
```

Snapshot data is automatically stored at `~/.local/share/diffgrab/diffgrab.db`. Python users can provide a different SQLite file with `DiffTracker(db_path="/path/to/custom.db")`.

## Tools and capabilities

The Diffgrab MCP server is suitable for recurring monitoring workflows, historical review, and agent-assisted change inspection. Tracking accepts an interval in the Python API and CLI, including commands such as `diffgrab track URL --interval 12`. Checks can cover every tracked URL or a specified URL.

The CLI also supports `diff`, `history`, and `untrack` commands. A history query can limit the number of returned snapshots, while a diff can identify explicit older and newer snapshot IDs. Human-readable summaries report additions, removals, and affected sections, and the unified diff remains available when line-level detail is needed.

## Limitations and notes

The material describes a local SQLite storage model and does not document a hosted synchronization service, authentication, scheduling daemon, or remote database. Tracking therefore depends on running checks; registering a URL alone does not describe an external monitoring service.

Visual comparison is optional and depends on snapgrab and the `visual` extra. The standard content comparison depends on extracted page content, so changes that are not represented in the extracted result may not appear in the text diff.

_Full upstream README: https://allmcps.com/mcp/diffgrab/readme_

