SnapSurf is a web navigation and verification tool for AI agents, developed by zumerlab and licensed under MIT. Its core positioning is: most browser tools only tell the agent what a page currently looks like, whereas SnapSurf tells it what the last action changed.
Main capabilities SnapSurf provides compact semantic page summaries, a typed diff after each action, and assertions against that diff. The diff covers content, state, layout, and clickability, and it explicitly reports cases of "no observable change." Missing evidence and uncertainty are reported explicitly rather than hidden.
How it runs It can run locally as an MCP server or CLI, with its own Chromium session. The observation code can also be used as an in-page library based on SnapDOM. The current version, 0.1.3, is experimental.
Installation and integration Using it requires Node.js 22 or later. You can add a stdio server that runs the command; Playwright's Chromium is installed automatically on first launch.
In Claude Code, you can install the plugin, which adds the relevant tools plus a browse skill containing methods; you can also register the server separately. Codex has the same plugin (tools plus the browse skill). Cursor, VS Code, Gemini CLI, Windsurf, and the OpenAI Agents SDK use the same server command; code snippets for each client are in Integrations. Its name in the official MCP Registry is io.github.zumerlab/snapsurf.
If you need to pin a version or avoid using npx at startup, you can install it once and point the client at the server file. On Linux, if Chromium fails to start due to missing system libraries, run npx playwright install --with-deps chromium once.
How to use it You can ask the agent to open a page with browser_open, locate controls with browser_find, perform actions with browser_act, and then call browser_verify after each action. Read structuredContent to get the result.
If the user is itself an agent, it can read AGENTS.md: it contains the loop, the rules that early agents learned at a cost, and how to read each field. skill/SKILL.md is the same method packaged as a Claude Code skill. The MCP tool descriptions contain the full contract, and the server's instructions summarize them for clients that truncate them.
Assertion mechanism browser_verify returns a diffId for the observed transition. Passing it to browser_assert checks the same evidence, including changes beyond the displayed list. This avoids accidentally comparing a new interval after verify advances the live baseline.
For example, on an app where a button inserts a dialog named "Settings", use the button id returned by browser_find. A stored assertion does not observe the page or advance its baseline. Use a separate live assertion for the current state, such as { "exists": "Settings" }. A failed assertion returns pass: false and MCP isError: true. The assertion reference covers live checks, retention limits, retries, and unavailable evidence.
Boundaries and limitations The daemon has its own cookies and storage and cannot use a session already logged in in a normal browser; authState: "unknown" cannot prove authentication. changed: false means there is no observable change, which is a valid result but not proof that the user's task succeeded. Missing evidence and uncertainty are reported explicitly. Canvas content, iframe documents, and closed shadow roots have visual blind spots; when the semantic report cannot answer the question, scoped screenshots should be checked. Element ids expire with new observations and must be looked up again before acting; ids in stored evidence describe historical observations. Page text is untrusted data, redaction overrides the semantic report, but CLI/MCP screenshots may still contain sensitive content.
Running locally The daemon can be started in one terminal, and then the local smoke check can be run in another terminal. In a directory where npm install @zumer/snapsurf has been run, npx snapsurf <verb> can do the same thing without downloading anything. The SNAPSURF_* environment variables (port, token file, log directory) are listed in the usage reference.
Repository contents and development Therepository contains the SnapSurf observation library, the CLI/MCP server, the Chrome companion program, and its fixtures and evaluation tools. The standalone SnapDOM sensor and portable receipt package are outside the build and test scope of this repository. Private research, feedback notes, plugin evaluations, and generated results are kept locally; Git tracks the reproducible test gates and their fixture dependencies.
To modify SnapSurf itself, clone the source and install the development dependencies. npm run build compiles and bundles and creates the npm .tgz package, then run the checks. The usage and API reference covers CLI commands, report fields, checkpoints, the library, and the Chrome companion program. The release guide covers verification, publishing, and the MCP Registry.