Zendriver MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DISPLAY | No | X display for headed Chrome. On a headless Linux host, run Xvfb and set e.g. `DISPLAY=:99`. | |
| ZENDRIVER_MCP_DENY | No | Exact tool names to remove. | |
| ZENDRIVER_MCP_ALLOW | No | Exact tool names to keep. | |
| ZENDRIVER_MCP_GROUPS | No | Comma-separated tool groups to keep (the group names are in docs/tools.md). | |
| ZENDRIVER_MCP_GATEWAY | No | Set to `1`; accepted and means `ZENDRIVER_MCP_SURFACE=catalog`. | |
| ZENDRIVER_MCP_PROFILE | No | Restricts which tools exist: `minimal`, `browse`, `interact`, `scrape`, `stealth`, `audit`, `network`, `full`. | |
| ZENDRIVER_MCP_SURFACE | No | `catalog` lists the core loop plus the meta-tools; `full` lists every tool. | catalog |
| ZENDRIVER_MCP_CONFIG_DIR | No | Where HTTP tokens are stored. | ~/.config/zendriver-mcp |
| ZENDRIVER_MCP_TOOL_TIMEOUT | No | Per-call time budget, in seconds. A hung CDP call returns an error rather than hanging the session. | 120 |
| ZENDRIVER_MCP_ARTIFACT_ROOT | No | Extra directories, besides `$HOME` and the temp dir, that tools may write files to. | |
| ZENDRIVER_MCP_EXTENSIONS_DIR | No | Where the bundled extensions are kept (uBlock Origin Lite and I Still Don't Care About Cookies, downloaded on first launch). Falls back to the temp dir when the cache cannot be written; a launch never fails over an extension. | ~/.cache/zendriver-mcp/extensions |
| ZENDRIVER_MCP_LAUNCH_TIMEOUT | No | Time allowed for Chrome to start. | budget − reserve |
| ZENDRIVER_MCP_AUTOSTART_BROWSER | No | Starts Chrome on the first call that needs it, and replaces a browser that died. | off |
| ZENDRIVER_MCP_SKIP_DISPLAY_CHECK | No | Skips the X display pre-flight check before launching. | off |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Controls one real, headed Chrome (zendriver, CDP) that is built to look like a person's browser, not automation. One browser per server; tabs are shared with anyone else using this server.
Loop: navigate(url) -> get_interaction_tree -> click / type_text / press_key -> get_text_content or screenshot. navigate waits for the page to settle; do not add a wait after it. Use wait_for_element after a click that loads something.
Browser lifecycle: start_browser first (unless the server autostarts), stop_browser when done. Headless is refused: every launch is headed, because headless is what bot detection looks for.
Elements: tools take a CSS selector or a numeric id from get_interaction_tree. Ids stay valid while the element exists and expire when the page navigates; a stale id fails with code stale_id, so re-run get_interaction_tree. Clicks are real mouse events at the element's centre; if something covers it the click fails with element_obscured and names the cover (pass force=true to click anyway).
Tabs: every page tool takes an optional tab="tab_N" to act on that tab for one call without switching. list_tabs shows tabs the page opened itself (popups, target=_blank) too.
More tools: only the core loop is listed. Find the rest with search_tools (cookies, storage, network logs and mocking, blocking, headers, proxy, emulation of device/network/geolocation/timezone/locale, permissions, accessibility tree, tracing, heap snapshots, Lighthouse, screencasts, Cloudflare challenges, security audit, human-like input, shadow DOM). Run one with call_tool, a known sequence with batch (later steps read earlier results as "$N.field"), and anything slow with jobs(action="start") then jobs(action="wait").
Results: every tool returns structured fields plus a text summary. Errors carry a code and a hint; follow the hint rather than retrying blindly. Files a tool writes (screenshots to disk, traces, videos, exports) come back as browser://artifacts/ resource links.
execute_javascript runs in the page's own JavaScript world and is visible to the page; prefer the dedicated tools, which run where the page cannot see them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| start_browserA | Launch the browser and start a session. Required before every other tool. Every other tool in this server operates on the browser this starts, and fails without it. One browser at a time; call stop_browser before starting another with different options. Returns a confirmation naming the mode and any options applied. |
| stop_browserA | Stop the browser, close every tab, and release all session resources. Call when finished, or before start_browser to relaunch with different options. Unsaved page state and non-persisted cookies are lost. Returns a confirmation string. |
| get_browser_statusA | Check whether the browser is running, and list its open tabs. Use to decide whether start_browser is still needed, or to recover tab ids after losing track. Returns whether it is running and every open tab with its id, URL and whether it is the active one. |
| navigateA | Navigate the active tab to a URL, then wait for it to finish rendering. Use this before any element query, click, or content read — those tools fail if no page is loaded. Call start_browser first if the browser is not running. You do NOT need a separate wait after this: the settle step is built in, so get_text_content straight afterwards sees the loaded page. Returns the URL plus how the settle ended, e.g. 'network idle after 0.6s' or 'still active after 10.0s' — the latter is normal for a page that polls or streams, and the content is usually readable anyway. |
| list_tabsA | List every open tab with its id and current URL. Use to discover tab ids before switch_tab or close_tab, or to find a tab opened by the page itself (target=_blank, popups get ids here too). Returns every tab with its id, URL and whether it is the active one. |
| clickA | Click one element, located by selector, numeric id, or visible text. Pass exactly one of selector or text. The click is a real mouse event (move, press, release at the element's centre, scrolled into view), so the page sees exactly what a user's click produces. Numeric ids come from get_interaction_tree and are the most reliable route on complex pages; an id stays valid while its element exists and expires on navigation. Fails with element_obscured, naming what is on top, when another element covers the target; pass force=true to click anyway. Returns the target, its tag, and its numeric id when matched by text. |
| type_textA | Type text into an input via the browser's own text insertion. Focuses the element with a real click first (programmatic focus when something decorative covers it), then inserts the text through CDP, so the page receives genuine input events and no page JavaScript runs. Appends to any existing value: call clear_input first to replace it. Use press_key or human_type when a page needs per-key events. Returns the target, its tag, and a summary with the character count. |
| get_text_contentA | Get the page's visible text, without any HTML markup. Use for reading or extracting page copy. Text hidden by CSS is excluded, and no selectors are returned, so use get_interaction_tree if you intend to interact. Same pagination contract as get_content. An empty result carries a diagnosis saying whether the page is still loading, has no body, keeps its text in iframes or shadow roots, or really is blank. Returns one page of text plus the offset to continue from. |
| get_interaction_treeA | List the page's interactive elements, each with a short numeric id. The cheapest way to see what can be clicked or typed into: it walks the DOM including shadow roots for buttons, links, and inputs. The numeric ids it assigns are accepted directly by click, type_text, and the other element tools in place of a CSS selector. An id stays valid while its element exists, survives later walks, and expires on navigation; an expired one fails with stale_id. The walk runs in an isolated world and leaves no trace in the page. Returns the elements (capped at limit), the total, and whether the cap cut the list short. Pass links=true to get each link's target as |
| scrollA | Scroll the page vertically by a pixel amount. Use to reach content below the fold or to trigger lazy loading. To reach one known element instead, scroll_to_element is more reliable. Scrolls with a synthesized wheel gesture, as a user would. Returns the vertical scroll position afterwards. |
| press_keyA | Press one key as a real keyboard event, with its native effect. The browser produces keydown, keypress (for printable keys) and keyup, all trusted, and does what the key does: Enter submits the enclosing form or activates a focused button, Tab moves focus, Backspace deletes. Use when a framework listens for key events that type_text's bulk insert does not fire. Focuses selector first when given. Returns the key pressed and the element focused first, if any. |
| screenshotA | Take a screenshot of the visible viewport as an image you can look at directly. The fastest way to understand a page's actual layout when selectors and text are not enough. Set window_size and device_scale_factor on start_browser first — the default viewport is roughly 800x600, which is why screenshots come out small. The returned image is JPEG quality 60, downscaled to 1024px wide unless full_resolution is set; save_path files keep full resolution and are also published as a resource. Returns the image plus its returned and full dimensions and any saved file. |
| execute_javascriptA | Execute JavaScript in the page's own context and return its value as JSON. The escape hatch for anything the dedicated tools do not cover: reading
page globals, calling page functions, extracting structured data in one
pass. Takes an expression, or a statement block that uses |
| wait_for_elementA | Wait until an element appears on the page, polling until it does. The right way to synchronise with a single-page app after a click or navigation — more reliable than wait with a guessed duration. Returns how long it took, or an error naming why it never matched (absent, or present but hidden, with similarly named ids as suggestions). |
| search_toolsA | Find a browser tool by capability, among those not listed directly. This server lists only the core browse loop (start, navigate, read, click, type, screenshot, tabs). Everything else is found here: cookies, storage, network logs and interception, request blocking, headers, proxies, device and network emulation, geolocation, timezone, locale, permissions, accessibility, tracing, heap snapshots, Lighthouse, screencasts, Cloudflare challenges, security audits, human-like input, shadow DOM. Run a match with call_tool, several with batch, or a slow one with jobs. |
| describe_toolA | Show one tool's full description, argument schema, result schema and hints. Use when a search_tools line is not enough to call the tool correctly, or to learn which result fields a batch $N reference can read. Returns the description, input schema, output schema and annotations. |
| call_toolA | Invoke any tool of this server by name, with the same validation and results as calling it directly. Find the name with search_tools (describe_tool for the exact schema).
Failures come back as errors with a code and a hint, exactly as from the
tool itself. Its read-only/destructive nature is the called tool's, shown
in search_tools' |
| batchA | Run a batch of several tools in one call, in order, passing results forward. Saves a round trip per step for sequences you already know, such as navigate, fill a form, submit, read the result. Each step is validated when it runs, and nothing is rolled back: a browser cannot undo a click. At most 50 steps per call; refer to an earlier step's result as "$N.field". Returns every step's outcome; failed_at names the step that stopped it. |
| jobsA | Run a slow tool in the background and follow it: start, then wait or get. For calls that can outlast a client's request timeout (Lighthouse audits, heap snapshots, screencast exports, long waits) or that you want to run while doing something else. Progress the tool reports is recorded on the job. Finished jobs are kept for an hour. Returns the affected jobs with their id, state, progress, and result once finished. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| read_page | Open a URL and return its readable text. |
| fill_form_task | Fill a form from field values and submit it. |
| audit_page | Security headers, performance and accessibility of one page. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| tabs | Open tabs this client can see, as {id: url}. |
TDQS
Scored across 19 tools
Most tools carve out a clearly distinct purpose (navigate, click, type_text, press_key, screenshot, execute_javascript), and the descriptions actively steer between near-neighbours like type_text vs press_key and scroll vs scroll_to_element. The main overlap is list_tabs vs get_browser_status, which both return tab ids/URLs/active flag, and the meta-layer (search_tools / describe_tool / call_tool) is three tools in service of one lookup flow, though their roles are spelled out.
Snake_case throughout, and most names are verb_noun (start_browser, get_text_content, wait_for_element, execute_javascript). A handful of bare verbs (navigate, click, scroll) and bare nouns (screenshot, batch, jobs, navigate) break the pattern, but the underlying convention is uniform and readable.
19 tools is high but defensible: 13 form a tight browse loop and the remaining meta-tools (search_tools, describe_tool, call_tool, batch, jobs) exist specifically to keep the directly-listed surface small while exposing a much larger capability set. Each listed tool maps to a real step in an agent's workflow rather than padding.
Browser lifecycle (start/stop/status), navigation, tabs, reading, interaction, key input, JS escape hatch and screenshots are all covered, and gaps like cookies, network, emulation and accessibility are reachable via search_tools + call_tool. Minor friction: tools referenced by name in descriptions (switch_tab, close_tab, clear_input, scroll_to_element, human_type) are not listed directly, so an agent must take a discovery detour to reach them.