palmifer-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PALMIFER_BIN | No | Override path to `palmifer.mjs`. | vendor/palmifer/palmifer.mjs |
| PALMIFER_FAST | No | Set "1" to skip human-paced delays globally. | 0 |
| PALMIFER_STATE_DIR | No | Daemon state directory (for multi-client isolation). | ~/.cache/palmifer (falls back to $TMPDIR/palmifer-<uid>) |
| PALMIFER_DAEMON_PORT | No | Daemon loopback HTTP port. | 8798 |
| PALMIFER_CHROME_FLAGS | No | Extra Chrome flags for `private_start`. Inherits HTTPS_PROXY/HTTP_PROXY/ALL_PROXY automatically. | |
| PALMIFER_MCP_TIMEOUT_MS | No | Per-tool execution timeout (ms). | 180000 |
| PALMIFER_MCP_DIRECT_HTTP | No | Set "0" to disable direct HTTP fast-path and always spawn. | 1 |
| PALMIFER_MCP_KEEP_DAEMON | No | Keep daemon alive on MCP exit ("1" or "0"). | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Drives either a throwaway headless Chrome (private mode, zero focus stealing) or the user's real Chrome (existing logins via chrome://inspect/#remote-debugging) over CDP via palmifer. 1) When user logins are NOT required (public pages, docs, localhost), prefer browser_mode(action='private_start', url=...); if the host sandbox blocks headless Chrome, fall back to browser_mode(action='anon_on') or browser_open(new_window=true). 2) When real logins ARE required, pass new_window=true on browser_open to isolate agent tabs from the user's main window, then reuse that tab with browser_goto. 3) Prefer read-only browser_dom(fields=...) for structured list extraction and browser_text(main_only=true) for clean reading without browser_eval prompts; pass front=true directly on click/fill/press/scroll and batch non-destructive reads with browser_batch.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| browser_statusA | Check daemon, CDP connection, mode (real vs private), tab count, and MCP/daemon stale diagnostics. |
| browser_tabsA | List open Chrome tabs with index, id, title, and URL. |
| browser_use_tabC | Select active tab by index string ('0'), targetId, or URL/title substring. |
| browser_openA | Open URL in a new tab (or new_window=true dedicated window). In real Chrome mode, prefer new_window=true so user tab switches won't hide agent tabs. |
| browser_gotoB | Navigate current/specified tab to URL (prefer reusing an isolated window tab). |
| browser_close_tabB | Close a tab, tabs opened by palmifer (mine=true), or all tabs. |
| browser_frontA | Raise a tab to foreground. Prefer passing front=true directly on click/fill/press/scroll. |
| browser_framesB | List iframes (#fN) inside a tab. |
| browser_snapshotA | Capture accessibility tree with @eN refs. Use actionable_only=true for compact interactive views. |
| browser_textB | Read visible innerText. Pass main_only=true (strips nav/header/footer/aside) or selector='' to avoid clutter. |
| browser_domA | Read-only DOM probe & structured JSON extractor (pierces shadow roots, zero eval). Pass 'fields' with 'selector' (e.g. { author: '.user', text: '.body', link: 'a@href', tags: '.tag[]', id: '@data-id' }); '.'=text, '@attr'=attr, '[]'=array. Resolves relative URLs & skips empty rows by default. Use within='' to scope. |
| browser_evalA | Evaluate JS in page/iframe. Prefer read-only browser_dom(fields) or browser_text(main_only=true) for extraction; avoid fetch(). |
| browser_clickA | Send trusted click to @eN, CSS, text, or (x, y). Pass front=true if tab may be hidden, fast=true to skip pacing, verify='' to assert. |
| browser_fillA | Focus @eN, CSS, or (x, y) and type text (replaces unless append=true). Pass front=true if hidden and fast=true for instant trusted insert. |
| browser_pressA | Send trusted key press (Enter, Tab, Escape, Meta+A). Pass front=true if hidden. |
| browser_scrollA | Scroll via real mouseWheel events (down/up/bottom/top). Pass front=true if hidden and fast=true for quick paging. |
| browser_waitA | Wait for a CSS selector or visible text (read-only; for JS predicates use browser_eval). |
| browser_screenshotB | Capture screenshot to temp/cwd path (PNG/JPEG/WebP). Set include_image=true to return base64 inline. |
| browser_pdfB | Render tab to a PDF file inside cwd or temp dir. |
| browser_uploadC | Attach local files to a element. |
| browser_networkA | Capture & inspect page network requests (start, list, detail, stop). |
| browser_modeC | Low-risk mode switcher: private_start (headless, prefer when logins aren't needed), private_status, use_private, use_real, anon_on (fallback cookie-less context if sandbox blocks headless), anon_status. |
| browser_sessionA | Destructive lifecycle ops: browser_close, anon_off, cancel, stop, restart_daemon. For starting/switching modes use browser_mode. |
| browser_cdpC | Send raw CDP Domain.method command. |
| browser_batchA | Run multiple read-only/non-destructive steps in one MCP call to cut round-trips. Destructive tools (click/fill/press/eval/upload/close_tab/session/cdp) are rejected and must be called directly. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 25 tools
Most tools have clearly distinct purposes, and descriptions actively steer between overlapping extraction modes (text vs dom vs snapshot) and lifecycle controls (mode vs session). Minor ambiguity remains around status variants, tab closing vs browser closing, and front vs use_tab.
All tools consistently use the browser_ prefix with snake_case suffixes, making the namespace predictable. However, many names are noun-oriented (browser_tabs, browser_status, browser_pdf) rather than strict verb_noun action names.
25 tools sits at the heavy end for a single MCP server. Browser automation justifies many primitives, but the inclusion of advanced/control tools like cdp, batch, network, and session makes the surface feel broad and borderline bloated.
The set covers navigation, tab lifecycle, extraction, interaction, waits, screenshots, PDF/upload, network inspection, CDP, and batching. Minor gaps such as dedicated hover/drag/select or cookie/storage management exist, though most are workaroundable via eval or raw CDP.