Skip to main content
Glama
Pagewright (browser-mcp)

Pagewright (browser-mcp)

by zamansheikh

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BROWSER_MCP_PORTNoHub port. Must match the port in the extension popup.18800
BROWSER_MCP_EXTENSION_IDSNoComma-separated extension IDs allowed to connect.any
BROWSER_MCP_CONNECT_TIMEOUTNoMilliseconds a call waits for the extension to connect.20000

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Controls the user's real browser (Chrome/Brave/Edge) via an extension — their logins and cookies are available, so act carefully and never submit purchases, posts or messages unless asked.

Typical loop: browser_navigate → browser_snapshot (find elements; each has a [ref=eN]) → browser_click / browser_type with ref → browser_snapshot again to confirm. See the page: browser_screenshot (viewport, fullPage, or one element). Fix a frontend: browser_audit_layout finds overflow, overlap, clipped text, contrast and image problems; browser_inspect shows box model, computed styles and the CSS rules (file:line) that apply; browser_set_viewport tests mobile/tablet; browser_inject_css tries a fix live before you edit source; browser_console and browser_network show errors. Scrape: browser_get_content (markdown/links/tables/meta) for one page; browser_extract for repeated items; browser_scrape for pagination/infinite scroll with CSV/JSON output; browser_network + browser_network_body to read the JSON APIs a page uses. Refs stay valid until the page navigates or the element is removed; take a new snapshot if a ref is not found.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
browser_statusA

Check whether the browser extension is connected and which mode this server runs in (hub or relaying through another agent's hub).

browser_tabsB

List, open, select (focus) or close browser tabs. "new" opens a tab (optionally at url) and makes it the agent's current tab; "select" makes a tab current.

browser_navigateA

Open a URL in the current tab and wait for it to load, or go back/forward/reload. Returns final URL, title and HTTP status.

browser_snapshotA

Read the page as a compact accessibility-style tree: headings, text, and every interactive element with a [ref=eN] you can pass to click/type/inspect. Use this first to understand a page and find elements — it is cheaper and more precise than a screenshot.

browser_screenshotA

Capture what the page looks like: the viewport (default), the full scrollable page, or one element (ref/selector). Use it to check visual layout, spacing, alignment, and the result of CSS changes.

browser_get_contentA

Get page content for reading or scraping: "markdown" (clean readable text with links), "text", "html", "links" (all links), "tables" (every as JSON rows), or "meta" (title, description, OpenGraph, JSON-LD, headings).

browser_clickA

Click an element with a real mouse event (scrolls it into view first). Target by ref (from browser_snapshot), selector, or x/y viewport coordinates. Reports navigation and any new tabs the click opened. Fails with an explanation if another element (e.g. a modal) covers the target.

browser_hoverB

Move the mouse over an element (to open hover menus or tooltips, or check :hover styles).

browser_typeA

Type text into an input, textarea or contenteditable. Replaces the current value by default (clear:false to append). Works with React/Vue controlled inputs. submit:true presses Enter afterwards.

browser_press_keyA

Press keys on the focused element: "Enter", "Escape", "Tab", "ArrowDown", "Control+A", "Meta+Shift+K". Space-separate to press several in order.

browser_select_optionB

Choose option(s) in a native by value or visible label.

browser_scrollA

Scroll the page or a scrollable element: by deltaY/deltaX pixels (real wheel events, triggers lazy loading), to "top"/"bottom", or scroll an element into view (ref/selector only).

browser_wait_forB

Wait until a selector appears (or disappears with gone:true), text appears, or textGone disappears; or just wait time ms.

browser_upload_fileC

Set local files on an .

browser_handle_dialogsB

Set how alert/confirm/prompt dialogs are answered on a tab (they are auto-accepted by default and logged to browser_console).

browser_evaluateA

Run JavaScript in the page and return the JSON result. Supports top-level await. Example: "document.querySelectorAll('a').length". Not available when the extension was installed from the Chrome Web Store (browser_status shows evaluateAvailable); prefer the other tools.

browser_inspectA

Explain an element's layout: box size and position, margin/border/padding, key computed styles, overflow, parent, and the CSS rules that style it with their source file and line — use it to find which rule to change when fixing the frontend.

browser_audit_layoutA

Scan the page for visual and layout bugs: horizontal overflow and the elements causing it, content sticking out of its container, clipped text, elements covered by others, broken/stretched/oversized images, low color contrast, tiny text and tap targets, unlabeled controls, plus console errors and failed requests. Each issue has a ref for browser_inspect/browser_screenshot. Run it at several viewports (browser_set_viewport).

browser_set_viewportA

Emulate a screen size to test responsive layouts: preset "mobile" (390x844), "mobile-small" (360x640), "tablet" (820x1180), "laptop" (1366x768), "desktop" (1440x900), "desktop-hd" (1920x1080), or custom width/height. reset:true restores the real window.

browser_inject_cssA

Live-test a CSS fix on the page without editing files: inject CSS (replaces the previous CSS with the same id), then screenshot/audit to verify. remove:true removes it. Once it looks right, apply the same change to the source code. Lost on reload.

browser_consoleA

Read console messages, uncaught errors, browser warnings (CSP, mixed content, failed loads) and auto-handled dialogs for the current page.

browser_networkA

List network requests made by the current page (method, status, type, size, timing). Filter by URL substring, type ("xhr,fetch", "document", "script", "image"…), or failedOnly. Great for finding the JSON API behind a page when scraping — then read it with browser_network_body.

browser_network_bodyA

Get the response body of a request listed by browser_network (e.g. an API's JSON). Optionally save it to a file.

browser_extractA

Extract structured data from the current page. Give itemSelector (one element per record, e.g. ".product") and fields relative to each item, e.g. {"name": "h2", "price": {"selector": ".price", "type": "number"}, "url": "a@href", "image": "img@src"}. Without itemSelector, fields are read once from the whole page.

browser_scrapeA

Scrape many records across pages in one call: optionally open url, extract items with itemSelector+fields, then follow pagination by clicking nextSelector (up to maxPages) and/or scroll to load more (infiniteScroll = number of scrolls). Deduplicates, and saves to .json/.csv with savePath. Uses your real logged-in browser session, so it works on sites that need login or run heavy JavaScript.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 25 tools

Disambiguation4/5

Most tools have clearly distinct purposes, especially the interaction, developer-tooling, and scraping groups. There is some potential overlap between browser_snapshot, browser_get_content, browser_extract, and browser_scrape, but the descriptions give enough guidance to distinguish reading, structured extraction, and multi-page scraping.

Naming Consistency5/5

Every tool uses the same browser_ prefix and snake_case convention. The names are predictable and readable, even where they use noun-style names like browser_tabs or browser_console.

Tool Count4/5

Twenty-five tools is on the heavy side, but the surface is broad browser automation and the tools are cleanly grouped into navigation, interaction, layout inspection, debugging, and scraping. Each tool appears to earn its place, though the set is slightly larger than ideal for quick agent selection.

Completeness4/5

The server covers the core browser automation lifecycle very thoroughly: navigation, tab management, reading, interaction, waiting, uploading, dialogs, viewport emulation, CSS injection, console/network debugging, and structured scraping. Minor gaps remain around explicit iframe/frame handling, cookies/storage, downloads, and drag-and-drop, but most workflows are covered.

Maintenance

ActivityStale
ResponsivenessNo recent community issues