Skip to main content
Glama

pagouse

CI License: MIT Python 3.13+

By ref, not by pixel. pagouse is a page agent for coding agents: a Chromium extension on the daily profile that reads the accessibility tree, hands your agent stable ref_N labels, and — only with a grant — clicks, fills, and navigates those nodes.

It observes by default. Mutation needs --allow-input. The optional MCP server is observe-only and cannot be talked into typing.

$ pagouse --json snapshot --tab 1840 | jq -r '.snapshot.tree' | head
RootWebArea "Inbox" [ref_1]
  textbox "Search" [ref_2]
  button "Compose" [ref_3]

How it works

  • The MV3 extension builds the accessibility tree inside the page, where the refs stay valid across separate CLI invocations.

  • Native messaging starts pagoused, a local daemon on an owner-only unix socket. No remote-debugging port, no chrome.debugger.

  • A zero-dependency Python core wraps it all in a versioned --json envelope (schema: 1).

The layers and the non-goals: docs/architecture.md.

Related MCP server: Playwright MCP

Requirements

  • Linux

  • Python 3.13+ and uv

  • A Chromium-family browser (Chrome, Chromium, Brave, Edge) on the daily profile

The core itself has zero dependencies. magick is optional for --fit downscaling.

Install

git clone https://github.com/gianlucamazza/pagouse
cd pagouse
./install.sh

install.sh installs pagouse as a uv tool, writes ~/.config/pagouse/config.toml if missing, links the agent skill into any existing skill root, and registers the native-messaging host. It is idempotent. Details in docs/quickstart.md.

Then load extension/ unpacked (chrome://extensions → Developer mode). pagouse --json doctor should report ready once the popup is green.

Usage

Observe — never needs a grant:

pagouse --json tabs
pagouse --json snapshot --tab ID

Drive — add --allow-input, click by ref, never by coordinates:

pagouse --json --allow-input click --ref ref_4 --tab ID --then snapshot

Every command and flag: docs/cli-reference.md. The envelope and error codes: docs/json-contract.md.

MCP extra and agent skill

uv tool install 'pagouse[mcp]' provides pagouse-mcp: read-only observation tools only (doctor, tabs, snapshot, shot, wait, wait_ref). There is no mutate tool; drive the page through the CLI and a grant.

install.sh also links skills/pagouse/SKILL.md into any existing agent skill root, so your agents get the playbook without setup.

Security

Observation never asks permission; mutation refuses without an explicit grant. Scheme deny, origin policy, and secret redaction are enforced in the core. Tab titles, URLs, tree text, and shot pixels are untrusted input. Read docs/security-model.md before enabling input. Report vulnerabilities per SECURITY.md.

Documentation

Page

For

docs/quickstart.md

Install, load the extension, first commands

docs/cli-reference.md

Every command and flag, and the MCP surface

docs/json-contract.md

The --json envelope, per-action keys, error codes. Authoritative

docs/configuration.md

config.toml keys and every environment variable

docs/architecture.md

What problem this solves, the layers, the non-goals

docs/security-model.md

The page grant, scheme deny, untrusted data

License

MIT. See LICENSE.

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
4Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Connects Claude to a live Chrome browser's accessibility tree to generate stable, framework-agnostic test selectors and perform accessibility audits. It enables users to read element roles and states exactly as a screen reader would to help write, debug, and migrate test suites using natural language.
    8
    13
    9
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides browser automation capabilities using Playwright's accessibility tree, enabling LLMs to interact with web pages through structured data without screenshots or vision models. It's designed for specialized agentic loops that benefit from persistent state and iterative reasoning over page structure.
    Apache 2.0
  • A
    license
    B
    quality
    C
    maintenance
    Enables AI agents to inspect and control a live Chromium browser for frontend debugging, providing console logs, network requests, DOM snapshots, and accessibility analysis.
    19
    11
    MIT

View all related MCP servers

Related MCP Connectors

  • Deterministic axe-core accessibility scans (WCAG 2.1 AA, EN 301 549, PDF/UA) via your account.

  • Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.

  • A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gianlucamazza/pagouse'

If you have feedback or need assistance with the MCP directory API, please join our Discord server