browser-tools-mcp
v2.0.4MCP server exposing live browser telemetry (console logs, network requests, screenshots, Lighthouse audits) from your real Chrome session
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
listBrowserTabs List browser tabs
Every browser tab that currently has DevTools open, with the tabId you can pass to any other tool. Call this when a result reported otherTabs above 0, or when the user mentions a page other than the one you have been reading. The tab marked isCurrent is the one every other tool uses when you do not pass tabId.
getConsoleLogs Get console logs
Console output from the current tab. Use keywords and limit to keep responses small — an unfiltered read can be large. Pass tabId for a different tab, or allTabs to read every tab; the result reports which tab it came from.
| Parameter | Type | Description |
|---|---|---|
allTabs | boolean | Read every connected tab at once instead of just the current one. |
keywords | array | Case-insensitive substrings; an entry matches if it contains any of them |
limit | integer | Maximum entries to return |
offset | integer | How many of the most recent entries to skip, for paging backwards |
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… |
getConsoleErrors Get console errors
Only error-level console output and uncaught exceptions from the current tab. Start here when diagnosing a failure. Pass tabId for a different tab, or allTabs to read every tab.
| Parameter | Type | Description |
|---|---|---|
allTabs | boolean | Read every connected tab at once instead of just the current one. |
keywords | array | Case-insensitive substrings; an entry matches if it contains any of them |
limit | integer | Maximum entries to return |
offset | integer | How many of the most recent entries to skip, for paging backwards |
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… |
getNetworkLogs Get network requests
XHR and fetch requests from the current tab, including status and timing. Credential headers are redacted. Pass tabId for a different tab, or allTabs to read every tab.
| Parameter | Type | Description |
|---|---|---|
allTabs | boolean | Read every connected tab at once instead of just the current one. |
bodyKeywords | array | Match against the request or response body |
limit | integer | Maximum entries to return |
offset | integer | How many of the most recent entries to skip, for paging backwards |
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… | |
urlKeywords | array | Match against the request URL |
getNetworkErrors Get failed network requests
Only requests that failed or returned a 4xx/5xx status. An empty result means there were no failures, which is a success, not an error.
| Parameter | Type | Description |
|---|---|---|
allTabs | boolean | Read every connected tab at once instead of just the current one. |
limit | integer | Maximum entries to return |
offset | integer | How many of the most recent entries to skip, for paging backwards |
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… | |
urlKeywords | array | Match against the request URL |
getSelectedElement Get selected element
The DOM element the user has selected in the Chrome DevTools Elements panel, with its attributes and markup.
| Parameter | Type | Description |
|---|---|---|
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… |
getPageInfo Get current page
Which page the browser is currently on. Call this before reading telemetry so you know what the logs describe. If connectedTabs is above 1, call listBrowserTabs before assuming this is the page the user means.
getConnectionStatus Check browser connection
Whether the Chrome extension is connected and how much telemetry has been captured. Call this first when something returns nothing.
takeScreenshot Take a screenshot
Captures the visible area of the current tab and returns the image directly, plus the path it was saved to and the url captured. Pass tabId to capture a different tab.
| Parameter | Type | Description |
|---|---|---|
name | string | Filename to save as, relative to the screenshot directory |
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… |
refreshBrowser Reload the page
Reloads the inspected tab. Useful for capturing a clean reproduction after calling wipeLogs.
| Parameter | Type | Description |
|---|---|---|
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… |
getBrowserStorage Inspect browser storage
Lists localStorage, sessionStorage and cookie entries for the current page. Values are withheld unless includeValues is set, because they routinely contain session tokens.
| Parameter | Type | Description |
|---|---|---|
includeValues | boolean | Return the actual values. Only set this when the user has asked for them — these are credentials. |
kinds | array | Which stores to read. Defaults to localStorage and sessionStorage. |
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… |
wipeLogs Clear captured telemetry
Discards captured console and network entries for every tab, or one tab if you name it. Use before reproducing a problem so the next read contains only relevant output.
| Parameter | Type | Description |
|---|---|---|
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… |
runAccessibilityAudit Run an accessibility audit
Lighthouse accessibility audit of the current page: contrast, labels, semantics and screen-reader support. Takes up to a minute and launches a separate headless browser.
| Parameter | Type | Description |
|---|---|---|
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… | |
url | string | Page to audit. Defaults to the page currently open in the browser. Pages on localhost or a private network can only be audited while open in a connected tab. |
runPerformanceAudit Run a performance audit
Lighthouse performance audit of the current page, including Core Web Vitals. Takes up to a minute and launches a separate headless browser.
| Parameter | Type | Description |
|---|---|---|
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… | |
url | string | Page to audit. Defaults to the page currently open in the browser. Pages on localhost or a private network can only be audited while open in a connected tab. |
runSEOAudit Run an SEO audit
Lighthouse SEO audit of the current page: metadata, indexability and crawlability. Takes up to a minute and launches a separate headless browser.
| Parameter | Type | Description |
|---|---|---|
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… | |
url | string | Page to audit. Defaults to the page currently open in the browser. Pages on localhost or a private network can only be audited while open in a connected tab. |
runBestPracticesAudit Run a best-practices audit
Lighthouse best-practices audit of the current page: security, deprecated APIs and modern-web hygiene. Takes up to a minute and launches a separate headless browser.
| Parameter | Type | Description |
|---|---|---|
tabId | Which browser tab to use, from listBrowserTabs. Omit to use the current tab — the one DevTools was most recently opened on, which is right in almost every session. Only pass this when a result repor… | |
url | string | Page to audit. Defaults to the page currently open in the browser. Pages on localhost or a private network can only be audited while open in a connected tab. |