browserstack-mcp
Installation
SKILL.md
BrowserStack MCP
BrowserStack runs real browsers on real macOS, Windows, iOS and Android machines. Two of its products matter here: Live, an interactive session for a human, and Automate, WebDriver sessions a script drives. The MCP server wraps both, plus accessibility scans, Percy and test management. This skill says when to reach for it, what was learned using it, and how to set it up.
When to use it
- Before stating how Safari, Firefox, Edge or a mobile browser behaves. Run it there, at least on the oldest and the newest version that matter. Engine source, specs and caniuse explain a result but are not one: WebKit source once "proved" that Safari drops a read-only date field from the Tab order, and real Safari 16.5 to 27 kept it there.
- Before using a feature newer than the oldest browser the product supports. Decide first what a reader of that browser gets, something that still works, and check it there and in the newest, for real.
- After UI work that depends on the engine or the OS. Native controls (search, date, datalist), fonts and text metrics, scrollbars, focus rings, IME, touch and the on-screen keyboard all differ outside Chrome.
- When the user wants to see a page in another browser or OS. Show screenshots per browser in one gallery, or open a Live session for the user.
- For an accessibility scan of a page, with
startAccessibilityScan. Like Live sessions, it opens the tunnel for localhost URLs itself.
Check in local Chrome first (the chrome-mcp skill), it answers in seconds. BrowserStack is for what Chrome cannot tell.
Live or Automate
runBrowserLiveSessionopens a Live session and returns a link for a human: the agent never sees that screen. Use it to hand the user a browser. For localhost URLs it starts the BrowserStack Local tunnel itself.- Automate from a script is how the agent checks things itself. A small WebDriver script in the scratchpad opens the page, runs code, measures and saves screenshots, which you then
Read.fetchAutomationScreenshotscan return a session's screenshots as images too, but it collects them from the WebDriverGET /screenshotcalls in the session log, so it works for WebDriver (Selenium) sessions and not for Playwright.getFailureLogsreturns a session's logs and video URL.