mcp-server-diwall-browser
by RonanDavalan
README.md
# mcp-server-diwall-browser
**English** | [Français](docs/fr-FR/README.md) | [Deutsch](docs/de-DE/README.md) | [Español](docs/es-ES/README.md)
[](https://glama.ai/mcp/servers/RonanDavalan/mcp-server-diwall-browser)
https://github.com/user-attachments/assets/2e7f579f-5466-4bb2-b78d-9c617ebdbfc9
An MCP server that gives a language model the eyes and hands of an operator in the operator's own
browser, through the Chrome DevTools Protocol: the model sees the same screenshot and the same
accessibility tree as the operator, and acts in the same authenticated session. It needs a
Chromium-family browser that the operator starts with a dedicated profile and a debugging port
bound to the loopback interface, and an encrypted directory (gocryptfs) for credentials, captures,
downloads and the files the model may attach to a form.
## The demonstration in 27 seconds
A model that drives your browser sees what the page shows, card number included. With Diwall MCP the sensitive fields are masked in the image the model receives, a password is never typed in clear, and a window opens on your screen before a payment: with no answer, nothing is sent. Select the picture to play the film (27 s, no sound, subtitles in [SRT](docs/media/demonstration-diwall-mcp-en.srt) and [WebVTT](docs/media/demonstration-diwall-mcp-en.vtt); a [WebM](docs/media/demonstration-diwall-mcp-en.webm) copy is next to it).
[](docs/media/demonstration-diwall-mcp-en.mp4)
## Before the first use
The server does not work without an encrypted directory: the profile of the browser it attaches to keeps your
signed-in sessions, and they must not sit on the disk in clear. There is no mode without encryption. The end of the
installation says, in the language of your system, how to set your workstation up: the entry “Diwall MCP: secure my workstation”
of the applications menu, or `mcp-server-diwall-browser-setup normal` in a terminal of yours, both after your agreement (the normal level, below).
To try the server first, the first command, which you run yourself in a terminal, is `mcp-server-diwall-browser-setup`: it
reads your machine, says whether the normal level is in place and ends on the next command to type.
- `mcp-server-diwall-browser-setup create --temporary` makes a volume in memory, for a trial. Closing it, stopping
the machine or ending your session destroys it, and with it the sessions of the sites you opened in the
browser, the audit journal and the evidence.
- `mcp-server-diwall-browser-setup create` makes a durable volume.
- `mcp-server-diwall-browser-setup open`, `browser` and `close` open the volume, start the browser on its profile,
and stop both. `browser` waits for the port of the browser and tells you what a new Google Chrome profile asks of you first (a window of terms of use to accept yourself).
- `mcp-server-diwall-browser-setup normal` puts the normal level in place from the starting workstation (an account for the server, its encrypted directory, the bridge, the rule of the debugging port) after your agreement, one announced step at a time, and `normal --retirer` takes it away; the applications menu offers it as “Diwall MCP: secure my workstation”;
- `mcp-server-diwall-browser-setup allow https://example.invalid` adds one site to the list of sites the model may open, without editing JSON;
- `mcp-server-diwall-browser-setup permissions` says the permission setting in force, sets it site by site and acknowledges it, and with `--site` sets one site on your words;
`--show` only reads, `--mode manual` tightens without a question.
You type the password yourself, at the prompt of `gocryptfs`; the assistant never reads it. You sign in to your sites
yourself, in the browser it starts. After adding the server to your MCP client, restart the client: a session
that was already open does not see it. The steps, the refusals and the manual way are in the section "First launch" of
[docs/OPERATOR_GUIDE.md](docs/OPERATOR_GUIDE.md).
Removing the package (`apt remove`, `apt purge`) keeps your profile and your encrypted directory on purpose: section 4 of the guide says how to delete them as well.
## Which sites the model reads
The list of sites in the operator profile bounds what the model reads, what it acts on and where it goes: an address of a
site that the list does not hold is neither opened nor loaded by the model, and nothing is requested from that site. The key
`origin_policy` chooses what the server does with such an origin:
- `strict` (the default, also when the key is missing): the origin is refused, and only the origin is returned.
- `discovery`: the server asks you in a window, once per origin, before the model goes there or reads it: `Refuser` (the
default answer, which holds for the session), `Cette séance` or `Ajouter à la liste`, which writes that exact origin in your profile.
- `open`: every public site is opened, read and acted on, and its content goes to the provider of the model; local addresses and
names stay on the list. It is the freest policy and the riskiest, and it is yours to choose.
A navigation that a page starts itself, a redirection or a link, is not stopped; what the model reads of the page it reaches follows
the same rule. Payments, irreversible deletions and secret changes keep their confirmation by default, and a credential is typed only on the exact
origin it is bound to and leaves only toward that origin, in the three policies. The words that lock them are in four languages (French,
English, German, Spanish), and a field that names the recovery of the account (`recovery`, `récupération`, `secours`, `Wiederherstellung`,
`recuperación`) asks for the window of a change of secret, since a site saves it by itself and leaves no button to lock (sections 9 and 12 of
the guide). The details are in section 5 of [docs/OPERATOR_GUIDE.md](docs/OPERATOR_GUIDE.md).
What the server does with a gesture it detects is yours to set, for every site or one by one: six permission modes, from `read_only` to `bypass`.
`manual`, a window for each gesture that asks for one, is the default, and what a profile without the key does. A setting that removes windows
acts only after you acknowledge it, and `mcp-server-diwall-browser-setup permissions` sets and acknowledges it without writing JSON. `bypass` lets
payments, deletions and changes of secret leave without a window; it is made for a container, a virtual machine, a test bench, or a site you have
weighed (section 5 of the guide). A model that has a shell writes one site's rule when your own words name that site (`permissions --site … --mode accept_submits`); a window then asks for your acknowledgement before anything opens. On a social network, a "like" and a publication are the same write: opening the sends of a site opens both.
The server does not take a button's word for what it does. For a click, a key, a choice and an answer to a dialog, it holds the page's writing requests
until the gesture is decided, once for all of them, whether or not the model declared a send: a write to a site outside your list asks for a window in every mode,
`bypass` included (the first request of a window that the page itself opens leaves before the server knows that window: section 12 of the guide), and the result, the journal and `status` name that site (`destinations`). The limit is said before you open a setting: a payment that no word, no card field and no declaration signals goes out with the accepted
sends in the modes that remove the window, so refuse the sends and the payments of a site where nothing must leave (sections 5, 9 and 12 of the guide).
## The model acts for you
The model drives your browser on your behalf: in the sessions you signed in to, on the task you gave it, at the pace of a person. It is not a robot. What the server does so that the navigation stays a person's: it attaches to your browser and starts none of its own; it changes neither the identity nor the headers of that browser; it waits at least 250 ms between two actions and stops a process at 1000 actions and 200 pages, ceilings you can raise; by default it asks you before a payment, a deletion, a change of secret, a send or a file that leaves. The guide that the server gives the model says the same: one page at a time, nothing collected in bulk, no request repeated to a person or a service. The server passes no check for you: a visual challenge or a code sent to you is yours, and the model stops and says so ([section 8 of the operator guide](docs/OPERATOR_GUIDE.md#the-model-acts-for-you)).
## Install
On Linux the server ships as native packages. Download the one of your system from the
[Releases](https://github.com/RonanDavalan/mcp-server-diwall-browser/releases) page of the repository or from the [install guide of the website](https://mcp-diwall.davalan.fr/guides/install/), then install it from the
folder that holds it:
| System | Command |
|---|---|
| Debian 13, Ubuntu 24.04 and 26.04 | `sudo apt install ./mcp-server-diwall-browser_0.2.0-1_all.deb` |
| Fedora 44 | `sudo dnf install ./mcp-server-diwall-browser-0.2.0-1.fc44.noarch.rpm` |
| openSUSE Leap 16.0 | `sudo zypper install --allow-unsigned-rpm ./mcp-server-diwall-browser-0.2.0-1.leap160.noarch.rpm` |
| Arch Linux | `sudo pacman -U ./mcp-server-diwall-browser-0.2.0-1-any.pkg.tar.zst` |
Installation, the start of the server by an ordinary account and removal are validated in containers on
these systems. A container shows neither the confirmation window, nor the mounting of the encrypted
directory, nor a browser. Debian 12 and Ubuntu 22.04 are not supported: their Python is older than 3.12.
The installation needs a network connection: the package creates a Python virtual environment and
installs the dependencies, at the versions the project tested. The manual page is `man mcp-server-diwall-browser`.
To install from a clone of the repository instead, follow [docs/OPERATOR_GUIDE.md](docs/OPERATOR_GUIDE.md).
A 64-bit ARM machine takes the same `.deb`, since the package does not depend on the architecture: a Raspberry Pi 4 under Debian 13 was tried with the package of the first release (see "What is tested, what is not"). The browser there is the distribution's Chromium.
## Connect it to an MCP client
The server speaks MCP over standard input and output. With a package installed, the command is
`mcp-server-diwall-browser` and the operator profile is read from its standard place:
```
claude mcp add --scope user diwall-browser -- mcp-server-diwall-browser
```
From a clone of the repository, with Claude Code:
```
claude mcp add --scope user diwall-browser \
-e MCP_DIWALL_BROWSER_PROFILE="$HOME/.config/mcp-server-diwall-browser/profile.json" \
-- "$HOME/mcp-server-diwall-browser/.venv/bin/python" -m mcp_server_diwall_browser
```
For another MCP client, the generic `mcpServers` block. The client does not expand `~`, so this
command prints the block with your home directory in the paths, ready to paste into its
configuration:
```
cat <<EOF
{
"mcpServers": {
"diwall-browser": {
"command": "$HOME/mcp-server-diwall-browser/.venv/bin/python",
"args": ["-m", "mcp_server_diwall_browser"],
"env": {
"MCP_DIWALL_BROWSER_PROFILE": "$HOME/.config/mcp-server-diwall-browser/profile.json"
}
}
}
}
EOF
```
Adapt `~/mcp-server-diwall-browser` to where you cloned the repository, and the profile
path to where you wrote your operator profile. The variable can be left out when the operator
profile is at its standard place, `~/.config/mcp-server-diwall-browser/profile.json`. The form of
the `claude mcp add` command was checked against `claude mcp add --help`, then run by the operator
on Debian: `claude mcp list` showed the server connected. The tests start the server exactly as
these two blocks do:
`python -m mcp_server_diwall_browser` with `MCP_DIWALL_BROWSER_PROFILE` set.
Everything that comes before (installing, starting the browser, opening the encrypted directory,
writing the operator profile) is in [docs/OPERATOR_GUIDE.md](docs/OPERATOR_GUIDE.md). How it works
and why is in [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md).
## What the model sees

The image above was produced by `scripts/smoke_test.py` from the local demo page
(`docs/demo/index.html`). The numbered marks are drawn by the server: an action names an element
by its mark. The password field, which the page filled itself, is masked by a solid rectangle, and
its value is withheld from the text the model receives (`redacted_fields` is 1).
The model writes where a page expects it: a field in an open shadow root, an editor that saves only after real key
presses (`typing` set to `keys`), the element that has the focus when no mark exists for it, reached by `Tab` and pressed with `at_focus` (a top bar drawn out of the tree, never inside a
frame; `observe` says where the focus is), a custom list chosen by the path the refusal names, the choices of a menu or a list that a click opens (a list of models, a settings menu), each with its mark and its role, a button the page draws only on hover (`hover`), a file sent
through the hidden field of a button that opens no file chooser; a download that outlives the click is reported with its
state. `mcp-server-diwall-browser-credential-create` writes a credential file with a generated password that is shown
nowhere. The details are in sections 6, 7 and 9 of [docs/OPERATOR_GUIDE.md](docs/OPERATOR_GUIDE.md).
`save_page` keeps a whole page, or a conversation of AI Studio or Qwen, in the encrypted directory without the text passing through the model: the server scrolls the page, reads what a person reads and writes a `markdown` or `html` file. The value of a field, a hidden text and the content of a frame of another origin are never in it (section 7 of [docs/OPERATOR_GUIDE.md](docs/OPERATOR_GUIDE.md)).
## What is tested, what is not
Tested:
- The full suite, on Debian 13 with Python 3.12.11 and the dependencies of `requirements.lock`: without a
browser, 3836 tests pass, 1 is skipped (a test that runs as root only) and the 901 that need a browser are deselected; with Google Chrome 158.0.8127.36 (headless, blank temporary profile), on a copy of the tree without git history and with Python 3.13.5, 4735 tests pass and 3 are skipped (the test that runs as root only and the two that read the list of tracked files, which need a git repository), with no expected failure.
- Download tests: two failed at random, 7 and 8 times in 30 runs of each alone, because the server
closed the download setting before the browser had chosen what to do with the download. After the
change they failed 3 and 1 times in 130 runs of each alone; the 3 were a read, in the test itself, of
a file the browser renames, which is now one helper that ignores the rename. Since then each of the
two alone failed 0 times in 200 runs, twice over. A third test, which closed the setting at once and
expected a late download to be refused, failed 4 times in 200 alone: the real browser can choose
before the server closes the setting, so the test is replaced by tests on a simulated browser. The
measures and what remains are in `docs/JOURNAL.md`.
- `scripts/smoke_test.py` returns 0 against Google Chrome 155.0.8059.84 and 3 when no browser is found.
- A Raspberry Pi 4 Model B with 8 GB, Raspberry Pi OS on Debian 13 (aarch64), Python 3.13.5 and Chromium 155.0.8059.79 (156.0.8078.79 for the first page, the volume and the confirmation window): the `.deb` installed by `apt`; the first launch of the setup assistant end to end with the real `gocryptfs` (temporary and durable volumes, browser, close); `scripts/smoke_test.py` returning 0; the server driven through a real MCP client on a visible Chromium with a window, not headless, on a virtual X11 screen, with the native confirmation window of `zenity` opened and answered by keys sent by a program, on a virtual X11 screen and on a Wayland screen without a monitor (`labwc`): `Oui` let one request through, `Non` and `Plus tard` none; then the package removed and purged, no file left. The complete suite there gave 2694 tests passed and 1 skipped in 15 minutes (five of them are measurements of that machine that the repository does not hold). The first page loaded by a freshly started Chromium took 25 seconds when the browser kept its password store and under 2 seconds with `--password-store=basic`, which made three tests fail in a first run whose browsers did not carry the option (guide, section 12). A volume created there uses `-xchacha`, since the processor has no AES instructions (guide, section 1).
- The marks and the masks at a screen scale of 1, 1.5 and 2, on a headless Chromium 141: the box of
every mark in view lies within two pixels of the box the browser itself gives, every pixel of the
password field of the demo page is under its mask, and the mask goes no further than two pixels
beyond it (`tests/test_scale_integration.py`). Before the correction of this, a mask did not
cover its field at a scale above 1. A real screen at 1.5 was not measured.
- The page zoom, at 100, 125, 150 and 200 % and at screen scales of 1 and 1.5, on a headless Chromium
141 whose blank profile holds the zoom as its default: the image the model receives is the whole
view, the password field of the demo page is under its mask, and so is the field of a page scrolled
so that it sits near the bottom or in the middle of the view; the mask goes no further than two
pixels beyond the field, and in the 16 placements measured no edge of a mask lay inside its field
(`tests/test_zoom_integration.py`, `tests/test_zoom_scrolled_integration.py`). Before the
correction, at 125, 150 and 200 %, 0 % of the field was covered and `capture` read `ok`. No image is
published (`capture` reads `unavailable`, the tree is still served) when the browser gives no usable
zoom, when the zoom changes during the capture, or when the image is more than two pixels from the
size of the view on either axis (`tests/test_perception_zoom.py`, which needs no browser). On Chrome
154 the operator measured the size of the image cut as the browser reads it (the view at each zoom, a
pixel short in height at 125 %); the zoom tests were replayed on it later (below).
- A click of the server lands on its target at page zooms of 100, 125, 150 and 200 % and screen scales
of 1 and 1.5, on a headless Chromium 141 whose blank profile holds the zoom as its default. The click
is the server's own (`Actions.click`, with its gate and its limits); the test page counts what each of
its buttons receives and a separate session reads the counts. At each of the eight combinations a
button of 120 by 32 CSS pixels, a button of 16 by 16 between two decoys 4 pixels from it, a button two
and a half views down, and the large button after the page was scrolled to put it in the middle of the
view, each received exactly one click, no decoy received any and none fell outside a button. On a page
scrolled in both directions the click lands on the button put in the middle of the view, and a button
covered by a banner fixed to the view is refused (`element_obscured`) with nothing clicked
(`tests/test_click_integration.py`, 264 tests; `tests/test_click_targets_page.py`, 51, and
`tests/test_click_lookup_point.py`, 20, need no browser). The same check refuses a click sent to the
point of the box multiplied by the zoom, divided by it, or multiplied by the screen scale (64 of 64
such clicks reached no button), and a server that asks the browser about the point of the view. Before
the correction, 20 of the 32 attempts at the first page failed, those that needed a scroll, and a button
covered by the banner was accepted and the banner was clicked, at the eight combinations: the browser
answers the node lookup for a point of the document, and the click gave it a point of the view. The
measures are in `docs/JOURNAL.md`.
- A click on a page that moves when the pointer first moves (a menu that opens on hover, a banner that
slides in). The test page shifts each target 60 CSS pixels down at the first mouse movement and puts an
intruder button where the target was. At each of the eight combinations of page zoom and screen scale,
for each of three buttons (a large one, a 16 by 16 one between two decoys, one two and a half views
down), a click of the server either lands once on the target or is refused as covered
(`element_obscured`) with nothing clicked, and in the 24 attempts it is refused every time
(`tests/test_click_shifting_integration.py`, 80 tests; `tests/test_click_shifting_page.py`, 30, and
`tests/test_click_moving_page.py`, 10, need no browser). Before the change the same 24 attempts returned
no error and the click landed on the intruder. After a refusal, a click on a new observation lands.
The server now asks the browser again what lies under the point after the movement and before the press,
every time, so a target that is covered where it stands, by a button shown at the first movement, is
refused too (`tests/test_click_covering_integration.py`, 3 tests, on Chrome 154.0.8037.97). The 24
attempts above were measured on Chromium 141.0.7390.37. The measures, and those of a page that scrolls
without stopping, are in `docs/JOURNAL.md`.
- A click, an Enter key and a choice in a list on a page that changes the name of the control every 2 ms from the first
movement of the pointer (Google Chrome 157.0.8103.78, 300 tries each, `tests/test_click_target_changed_integration.py`,
15 tests; `tests/test_click_target_changed.py`, 7, needs no browser). Before the change 110 clicks of 300 reached the
transfer, and so did 135 Enter keys of 300 and 44 choices of 300; after it none did: of 349 clicks 10 reached the right
name and 339 were refused (`element_stale`, `server.cause` set to `target_changed`), of 300 keys 71 and 239, of 300
choices 90 and 210. On 100 new tabs of the test page of the security campaign, 7 clicks reached the right name, 93 were
refused and no transfer was received, where 20 of 100 had reached it before.
- A dense page with a consent banner fixed over its lower part (643 things to click): its three
buttons are marked and listed first in the tree, the elements under it say `covered`, and a click
on "Refuse" by its mark takes the banner away (`tests/test_ranking_integration.py`).
- The setup assistant, `mcp-server-diwall-browser-setup`: 50 tests on a simulated machine (mount tables, package
managers, no `/dev/fuse`, no terminal, a LUKS volume); then, with the real gocryptfs 2.5.1 in a
pseudo-terminal, on throw-away volumes: `create --temporary`, the server reading `mounted`, `browser`
(Google Chrome 155.0.8059.84 without a screen, attached, `profile_encrypted: true`), `close` (no volume left in
memory, no file of the browser profile on the disk), then `create`, `close` and `open` of a durable volume; and
in a clean Debian 13 container, where `check` gave `sudo apt install gocryptfs fuse3`, which succeeded.
- Writing, choosing and attaching, on local pages kept in `tests/fixtures/pages/`: 23 tests with a real browser (open and
nested shadow roots, an editor that arms on real key presses, the element at the focus, a custom list, buttons drawn only on
hover, a hidden file field, downloads still running and an address that downloads); the command that creates a credential
file, 34 tests, one for each refusal and one that looks for the generated password in every output and every file.
- The command that carries an old credential file over (see the operator guide): on files of the
test suite in a simulated volume, with a refusal tested for each way out, and no value in
anything it prints. It was not tried on a real gocryptfs volume.
- A real gocryptfs 2.5.1 volume, a throw-away one made for the check (not the operator's own),
mounted on Debian: `status` read `mounted` and `profile_encrypted: true`, and the server wrote
its journal and created `downloads/` in it. Opera 136 (Chromium 152), started with its profile
in that volume and a debugging port on the loopback interface, was attached; the server opened
a page of a public shopping site, filled its search field, pressed Enter and observed the
results. The typed text does not appear in the journal.
- The origin policy (`strict`, `discovery`, `open`): `tests/test_origin_policy.py` and `tests/test_origin_policy_server.py` on a simulated browser, and `tests/test_origin_policy_integration.py`, 12 tests of the server started by its entry point against Google Chrome 155.0.8059.84, with fake window programs: a portal that links to a second origin, a redirection to an unknown origin, the three answers of the window (the profile read back after `Ajouter à la liste`), local names refused under `open`, a payment that still asks its window, and the policy changed in the profile without restarting. The windows of the real `kdialog` and `zenity` were shown in a virtual screen and answered by keystrokes (Enter and Escape give the refusal); a person answered them (the next entry).
- The confirmation window, shown on the operator's workstation and answered by a person, with the operator's own gocryptfs volume mounted and a local payment page, in Opera
138.0.6044.24, once with `kdialog` 25.04.0 and once with `zenity` 4.1.90 (the server found only that tool):
with each, a refusal returned `confirmation_denied` and the page received nothing; an acceptance made the
click and the page received one request; with no answer and a 90-second wait, the request expired after 90.4 s
(`confirmation_expired`) and the page received nothing. The journal holds one `requested` line and one
line with the outcome for each of the six requests.
- Claude Code, started from a desktop terminal: `status` through Claude Code read
`confirmation_channel: native`, so the display reached the server.
- The server process over standard input and output: it writes nothing but the protocol on its
standard output, holds no listening socket and runs with a core file limit of zero.
- The confirmation window with its three answers, shown by the real `kdialog` 25.04.0 and `zenity` 4.1.90 in a virtual
screen: its first line in large type, an element name with markup shown as written; Enter, Escape and the close button
gave `Annuler`, and the keys of the guide (section 9) gave `Non` and `Oui`; a 5-second
`permissions.wait_s` expired at 5.0 s. Claude Code 2.1.322 and OpenCode 2.2.7, facing a window nobody answers, kept
the call open for the ten minutes of the measure; with their own deadline set to 45 seconds, each gave up the call at
45 seconds, the window closed, nothing was done and the journal said `abandoned`; a client that closes the input of
the server stops it within a second, window closed. A person at a Wayland desktop answered the `kdialog` window once
with each answer: `Annuler` and `Non` ran nothing and the page received nothing, `Oui`
made the click and the page received one request, and with a 30-second `permissions.wait_s` the untouched window
expired after 30 s; the journal wrote `executed` as `false`, `false`, `true`, `false`.
- The guard of writes (what a gesture makes the page send): `tests/test_write_guard.py` on a simulated browser (the order of the suspension calls, a request held then continued
or failed, a suspension that cannot be posed) and `tests/test_write_guard_integration.py` on a real browser (a `fetch` in `POST` after `Continuer` held and refused, a form, a beacon,
a write deferred by 300 ms, a page that writes without end, a write to a site outside the list in `accept_submits` and `bypass`, the ceiling, a tab closed or a page crashed while a request is held).
- The permission modes: `tests/test_permissions.py` (the table of the six modes cell by cell, the rules, the wildcard, the most restrictive
listing, the acknowledgement, the schema), `tests/test_permissions_server.py` (the server on local pages, with fake window programs: `read_only`
refuses a fill and lets a reading click pass, `accept_submits` lets a declared send leave without a window and asks for a payment, `session` with its
fourth answer, `dont_ask`, `bypass` without and with its acknowledgement and its two captures, the ceiling of the hour, an unwritable journal that
refuses every tool but `status` in every mode) and `tests/test_setup_permissions.py` (the assistant); the assistant was also played in a pseudo-terminal, on a throw-away home and volume.
Not tested:
- The fourth answer of the window and the window `Réglage des permissions`, answered by a person at a desktop: they were shown by fake window programs only.
- A 64-bit ARM machine other than that Raspberry Pi 4 (a Raspberry Pi 5, another distribution), a Wayland session on a monitor, and a person answering the confirmation window there: the answers given there were keys sent by a program.
- The setup assistant on a machine that has a swap area (its report is tested on a simulated list), and its
`browser` command with Brave, Chromium or Opera.
- Brave beyond the test bench of the project, which passed whole with Brave 157.1.99.57, and Google Chrome builds other than the one the operator ran.
- The confirmation asked through a desktop MCP client (elicitation): tested with the client of
the MCP SDK only.
- Chrome 154 with its profile kept inside the operator's own encrypted directory.
- The page zoom made by the Ctrl + key of a browser that is not headless. The protocol has no command
for a zoom, so the tests write the default zoom of a blank profile; whether the browser keeps the
two kinds in the same way is not confirmed. A screen whose scale really is 1.5 was not measured
either; the click tests have the same two limits.
- The click tests on Chrome 154. The correction reads a property of the browser's node lookup measured
on Chromium 141 (it answers for a point of the document, not of the view): if it differs on another
version, the tests of a click on a scrolled page fail there. A click on an element inside a frame of a
scrolled page was not measured.
- A control that acts on the press rather than on the click, put under the pointer by a script at the instant
of the press: the press is checked after it is made, so the page's own handlers of the press have run. The
guard of a key and of a text is a script of the page: a page that expects it goes round it, and it does not
see the events of a frame (Google Chrome 156.0.8078.47, `docs/OPERATOR_GUIDE.md`, section 7). Against a frame of another site that
takes the focus, the server hides the frames of the page while it types or presses Enter and refuses an input that its guard did not
see reach the field; a frame in a closed shadow root cannot be found, and what was typed has then already left (Google Chrome
158.0.8127.36, section 7).
- The guard of the name of a click, of an Enter key and of a choice is a script of the page: a page that expects it goes
round it, it sees the events of the main document only, and a control named by a text that the style sheet generates is
refused as changed even when it did not change (Google Chrome 157.0.8103.78, `docs/OPERATOR_GUIDE.md`, section 7).
Known limits:
- The encrypted directory protects as much as its password does: whoever has the password reads its content, and a weak or reused password protects little.
- The safeguards are those measured on the date of this version, by the tests and measurements this document names. A model more recent than the ones tried can find a way around them that no trial has seen.
- While the server is attached to the browser, downloads are refused in every tab, the operator's
own tabs included, except in the short window around one of the server's clicks or Enter keys.
To download a file yourself, stop the server or the MCP client; downloads work again as soon as
the server's connection ends.
- A download that a page starts more than half a second after a load ends is refused.
- Accepting a `confirm` or a `prompt` dialog asks the operator in a window, whatever its message says.
Accepting a dialog whose message asks for a payment, a deletion or a secret change is always
refused: no capture can be taken while a dialog is open. The operator answers such a dialog.
- A secret that a site writes in the path of an address is shown as written in the results; only the
value of a query parameter with a name such as `token`, and the fragment, are redacted.
- Visibility is approximate: the server does not compute contrast or `overflow` clipping, so text a
human cannot read can still reach the model.
- An observation holds at most 150 marks and 400 tree lines (`marks_truncated`, `tree_truncated`).
Past that, the server keeps first what is in a layer above the page (a dialog, a modal node, a
fixed or sticky node painting over content in view, such as a cookie banner), listed under an
`overlay` line in the tree, then what is in view and clear, then what is in view under a layer
(`covered: true`, and a click on it is refused), then the rest. A banner that overlaps nothing in
view is not a layer and can still be cut.
- The text of a frame of the same origin is read apart (`observe` with `include: ["text"]`), never that of another origin; frames are masked in the image and nothing is done inside them.
- What the model provider keeps of what it receives is not confirmed by this project.
## Credits
mcp-server-diwall-browser is built in an asymmetric human–LLM collaboration. The roles are written
down as they were actually played; the full list is in [CONTRIBUTORS.md](CONTRIBUTORS.md).
- **Ronan Davalan**: architect and arbiter. Vision, security requirements, decisions, validation and testing.
- **Claude Code (Anthropic; Opus 5.5, Sonnet 5.5 and Haiku 5.5)**: systems engineer and lead developer. Server implementation, tests, documentation, the text and upkeep of the project's website, the scene that illustrates the first release and its short clip, rendered in Blender on the workstation, driven through [LibreModular-MCP](https://libremodular.davalan.fr/) ([GitHub](https://github.com/RonanDavalan/LibreModular-MCP)), and a field report of the first launch from the Debian package.
- **Claude Cloud (Anthropic)**: wrote part of the code on branches, from prompts, reviewed before every merge.
- **Muse Spark 1.3 Contributor (Meta, through OpenCode)**: first use of the server by a model other than Claude, on a local instance of a web application, whose field report shaped the next fixes; the stylesheet and layout of the project's website, chosen among several trials, the text and the behaviour of the pages left untouched; two readings of the website, with wording proposals in four languages kept as drafts and defects found, which were corrected.
- **DeepSeek V4 Pro (DeepSeek, through OpenCode)**: independent security audit of the first release, from a blank session; four of its seven findings were confirmed at triage and corrected.
- **GLM 5.3 (Zhipu, through OpenCode)**: independent security audit of the same tag, from a blank session, with reproductions on a headless browser; three of its seven findings were confirmed at triage and corrected.
- **Claude Opus 5.5 (Anthropic, through Claude Code)**: two independent security audits, each from a blank session, in a model family that is the code author's own, with reproductions on a headless browser: of the published code (eleven of its twelve findings were confirmed at triage and corrected), then of the corrected code (thirteen of its seventeen findings were confirmed at triage and corrected).
- **DeepSeek V4.1 Flash 1017 (DeepSeek, through OpenCode)**: the 3D emblem "the glass D", drawn in Blender on the workstation, in two pupil variants (a round pupil and a pointer); it is the eye of the scene that illustrates the first release; it also played the client that measured how long OpenCode keeps a call open while the confirmation window waits.
- **Gemini (Google)**: architectural advisor and synthesizer; gave the project its name, **Diwall**, "dike" in Breton.
- **DeepSeek (DeepSeek, through an online chat)**: advice on separating the accounts; three of its ideas are in the isolation levels: a command the user runs to check the separation, a guide that shows the accounts and what each one can read, and an inventory of the side doors (debugging port, screen, `sudo`, mount, `/proc`).
- **gemini-3.5-flash (Google, through OpenCode)**: tested the connection through a dedicated agent: the tools reach that agent only, and its shell asks before running.
- **deepseek-v4.1-flash-free (DeepSeek, through OpenCode)**: used the server from an account of its own, with no administration and no access to the screen: it signed in on a local page with credentials the server typed, and left a test payment to the confirmation window, which expired.
- **Space Bunny Free (opencode)**: the project's logo, the round-eyed D, used on the website, its icons and the title page of the manuals; pruning of files at the start of the project.
License: MIT, see [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityActive
ResponsivenessNo recent community issues