tabmcp

v0.4.0
tabmcp Checked 2 days ago Published 9 days ago

MCP server that lets AI agents drive and inspect your real Chrome through the browser-mcp extension.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

browser_connect_tab

Take over an existing Chrome tab as this session's Connected tab; replaces this session's previous Connected tab. Pass either a tabId (from browser_tabs includeOthers) or a ref the user pasted (browser-mcp://tab/<id>?key=<key>, from the popup's Copy reference). With a ref there is no prompt. With a tabId, the user is asked in a Chrome notification the first time an agent takes a tab on that site, and always when another session controls the tab.

ParameterTypeDescription
refstringTab reference the user pasted: browser-mcp://tab/<id>?key=<key>
tabIdintegerTab id from browser_tabs

browser_update_extension

Install the browser-mcp Chrome extension release that matches this server and make Chrome reload it. Use when a browser tool fails with EXTENSION_VERSION_MISMATCH (the extension and server versions don't match). Downloads from the project's GitHub releases into the extension folder.

browser_disconnect

Release this session's Connected tab (removes its tab group, border and badge; detaches the debugger).

browser_request_control

Legacy: no lease is needed any more because each session owns its own Connected tab. Returns this session's status (same as browser_control_status).

browser_release_control

Legacy alias of browser_disconnect: release this session's Connected tab.

browser_control_status

This session's identity and Connected tab, plus which tabs other MCP sessions are controlling.

browser_tabs

List this session's Connected tab and optionally other open tabs (read-only; others show connectedBy when another session owns them). Use browser_open to create a tab, or browser_connect_tab to take over an existing one.

ParameterTypeDescription
includeOthersbooleanInclude other open tabs

browser_open

Open a web page in the user's real Chrome (with their logins) to browse, read or interact with it. Creates a new tab that becomes this session's Connected tab, replacing any previous one. Start here for any task that needs a browser. Restricted URLs (chrome://, Web Store, …) are rejected.

ParameterTypeDescription
url *stringAbsolute URL to open
activebooleanFocus the new tab (default true). Background tabs cannot be screenshotted.
recordNetworkbooleanAttach the debugger before loading so devtools_network_* includes the page's own initial requests (default false; Chrome shows its 'debugging this browser' bar).

browser_navigate

Navigate this session's Connected tab to a URL. If it has none, opens a new tab and Connects it (same as browser_open).

ParameterTypeDescription
url *stringAbsolute URL to open
recordNetworkbooleanAttach the debugger first so the navigation's requests are captured (default false)

browser_go_back

Go back in history on the Connected tab.

browser_go_forward

Go forward in history on the Connected tab.

browser_wait

Wait for a duration and/or load state on the Connected tab.

ParameterTypeDescription
loadstringWait for document load state
timenumberMilliseconds to wait

browser_press_key

Press a key on the Connected page (e.g. Enter, Escape, Tab, a). If it starts a navigation, waits for it to finish and returns navigated/url.

ParameterTypeDescription
key *stringKey name
waitForNavigationbooleanWait for a navigation triggered by the key (default true)

browser_snapshot

Read the current page: an accessibility snapshot of the Connected tab (main frame + iframes) listing interactive elements with their state (value, checked, …) and ref handles for browser_click / browser_type. Main-frame refs look like e3; iframe refs look like f1842.e3. May include frames[] metadata and a warning when the main frame is shell-only.

ParameterTypeDescription
interestingOnlybooleanOnly include interesting interactive nodes

browser_find

Find elements across the Connected page and its iframes by accessible name/text. Returns clickable refs (eN or f{frameId}.eN).

ParameterTypeDescription
query *stringCase-insensitive substring to match
limitintegerMax matches (default 20)

browser_click

Click an element by snapshot/find ref (eN or f{frameId}.eN) or pin from browser_pick_element / browser_pins. If the click starts a navigation, waits for it to finish and returns navigated/url (take a fresh snapshot afterwards).

ParameterTypeDescription
buttonstring
doubleClickboolean
pinstringPin id from browser_pick_element
refstringRef from browser_snapshot / browser_find (eN or f{frameId}.eN)
waitForNavigationbooleanWait for a navigation triggered by the click (default true; adds ~0.4s when none starts)

browser_hover

Hover an element by snapshot/find ref (eN or f{frameId}.eN) or pin.

ParameterTypeDescription
pinstring
refstringRef eN or f{frameId}.eN

browser_drag

Drag between snapshot refs and/or pins (same frame only for f{frameId}.eN refs).

ParameterTypeDescription
endPinstring
endRefstringRef eN or f{frameId}.eN
startPinstring
startRefstringRef eN or f{frameId}.eN

browser_type

Type text into an element by snapshot/find ref (eN or f{frameId}.eN) or pin. With submit, waits for a resulting navigation. Never pass passwords, OTPs, API keys or other secrets here — use browser_type_secure.

ParameterTypeDescription
text *string
pinstring
refstringRef eN or f{frameId}.eN
slowlyboolean
submitboolean
waitForNavigationbooleanWhen submit is set, wait for the navigation it triggers (default true)

browser_type_secure

Type a secret (password, OTP, API key) into an element without the value ever entering this conversation or the tool log. Opens a secure extension window where the user types it; the extension types it straight into the page. Blocks until submit, cancel, or timeout; returns only { filled, chars, submitted } (never the value). Use this instead of asking the user for a secret in chat.

ParameterTypeDescription
kindstringInput style in the secure window (default password)
labelstringWhat is being asked, e.g. 'LinkedIn password' (shown in the window)
pinstring
refstringRef eN or f{frameId}.eN
submitbooleanPress Enter / submit the form after typing
targetHintstringName of the target field, e.g. 'Mot de passe'
timeoutMsintegerHow long to wait for the user (default 120000 ms)
waitForNavigationbooleanWhen submit is set, wait for the navigation it triggers (default true)

browser_pick_element

Ask the user to click an element on the Connected tab. Blocks until pick, Esc cancel, or timeout (default 90s).

ParameterTypeDescription
promptstringShort instruction shown in the page banner

browser_pick_cancel

Cancel an in-progress element pick on the Connected tab.

browser_pins

List pinned elements on the Connected tab.

browser_pin_inspect

Inspect a pinned element: attrs, src/href, nearby text, outerHTML, related URLs for network correlation.

ParameterTypeDescription
pin *stringPin id (e.g. pin_1)

browser_pin_clear

Clear one pinned element by id, or all pins if id is omitted.

ParameterTypeDescription
idstringPin id (e.g. pin_1)

browser_screenshot

Capture a screenshot of the Connected tab. The tab must be in front of its window (fails fast with TAB_NOT_VISIBLE otherwise). The agent indicator overlay is hidden during capture.

ParameterTypeDescription
fullPagebooleanBest-effort full page (may use CDP)

browser_console_messages

Return buffered console messages (CDP when debugger attached).

ParameterTypeDescription
clearboolean

devtools_attach

Attach chrome.debugger (CDP) to the Connected tab. Also attaches related existing workers (worker/shared_worker/service_worker) via chrome.debugger.getTargets and enables Network on them.

devtools_detach

Detach chrome.debugger from the Connected tab and any worker targets attached by this extension.

devtools_targets

List the Connected tab page target and related worker/shared_worker/service_worker targets (from chrome.debugger.getTargets), including whether each is attached.

devtools_network_requests

List buffered CDP network requests (HTTP + WebSocket) for this session's tab. Auto-attaches debugger. Buffer only fills after attach (use browser_open/browser_navigate with recordNetwork:true to include the initial page load); existing related workers are attached on attach, new ones via Target.setAutoAttach.

ParameterTypeDescription
filterstringLegacy URL substring filter (same as url)
hoststringExact URL host match
includeWebSocketMessagesbooleanInclude buffered WS frame payloads
limitinteger
methodstringHTTP method, e.g. GET/POST/PUT
resourceKindstring
sincenumberOnly entries with timestamp >= since (ms epoch)
statusinteger
statusMaxinteger
statusMininteger
targetTypestringpage | worker | service_worker | shared_worker | iframe
typestringCDP resource type, e.g. XHR, Fetch, Script, WebSocket
urlstringURL substring (case-insensitive)
urlRegexstringURL regex (case-insensitive)
waitForMsintegerBlock until a NEW matching request appears (uses since=now unless since is set). Max 300000ms; returns timedOut:true on expiry.

devtools_network_summary

Compact summary of the network buffer (hosts, top paths with id-like segments collapsed to :id, target types, websockets). Auto-attaches debugger. Use for discovery before fetching full request lists.

ParameterTypeDescription
limitHostsintegerMax hosts to return (default 15)
limitPathsintegerMax path aggregates to return (default 15)
sincenumberOnly entries with timestamp >= since (ms epoch)

devtools_network_request

Get full details for one buffered network request (headers, postData, initiator, WS frames).

ParameterTypeDescription
requestId *string

devtools_network_body

Get response body for a network request id.

ParameterTypeDescription
requestId *string

devtools_network_for_pin

Correlate a pin with buffered network requests using the element's related URLs (src, href, css backgrounds).

ParameterTypeDescription
pin *stringPin id from browser_pins / browser_pick_element
includeWebSocketMessagesboolean
limitinteger

devtools_console_messages

Console messages via CDP buffer only.

ParameterTypeDescription
clearboolean

devtools_evaluate

Evaluate JavaScript in the Connected tab (optionally a specific iframe). Optional pin binds the element as `el`. Isolated world auto-falls back to CDP main world on CSP unsafe-eval errors.

ParameterTypeDescription
expression *stringJS expression. When pin is set, the pinned element is available as `el`.
awaitPromiseboolean
frameChrome frameId (number) or substring match against frame url/name from browser_snapshot frames list
pinstringPin id — expression is evaluated with `el` bound to that node
worldstringDefault isolated; main uses CDP Runtime.evaluate

devtools_get_box_model

Get box model / bounding rect for a ref, pin, or CSS selector.

ParameterTypeDescription
pinstring
refstring
selectorstring

devtools_get_computed_style

Get computed styles for a ref, pin, or CSS selector.

ParameterTypeDescription
pinstring
propertiesarray
refstring
selectorstring

devtools_cookies

Get, set, or clear cookies for the Connected origin.

ParameterTypeDescription
action *string
cookieobject

devtools_storage

Read/write localStorage or sessionStorage on the Connected origin.

ParameterTypeDescription
action *string
store *string
keystring
valuestring

devtools_cdp

Raw allowlisted CDP command on the Connected tab. Domains include Runtime/Network/DOM/Page/Target (read-mostly). Mutating Target/Browser methods are denied.

ParameterTypeDescription
method *stringCDP method, e.g. Runtime.evaluate or Target.getTargets
paramsobject