Skip to content

Menu

BrowserStack MCP Server logo

BrowserStack MCP Server

Published

At a glance

GitHub repository
browserstack/mcp-server
Watch out for
The remote server has no Local Testing support, so apps behind VPNs, firewalls or on localhost need the local server.

BrowserStack maintains this server in its own GitHub organisation, licensed AGPL-3.0, and ships it as the npm package @browserstack/mcp-server plus a hosted remote endpoint at mcp.browserstack.com/mcp. It connects an agent to the BrowserStack test platform: real devices and browsers for manual sessions, automated test runs, accessibility scans, Test Management, Percy visual testing and load testing.

The remote server speaks streamable HTTP and signs you in with OAuth, so there is no access key to paste. The local server needs your BrowserStack username and access key and a recent Node version (the README asks for at least 22.23.5). The local one matters if you want to test sites on localhost or behind a VPN, which the remote server can't reach.

The interesting part is how tools are exposed. Rather than one tool per workflow, there are five core tools. The agent searches a catalog of BrowserStack capabilities in plain language, reads the details of the one it needs, then runs it. Any call that changes data is refused on the first attempt until you approve it.

How it connects

Your AI app

An assistant or agent that supports MCP

BrowserStack MCP Server

Runs as

  • Remote (HTTP)

Gives the agent

  • Capability catalog
  • Gated execution
  • Live sessions
  • Automated tests
  • Accessibility and Percy
  • Test Management
  • Load testing

BrowserStack

The data or system the tools act on

Your AI app talks to BrowserStack MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Capability catalog
listProducts, describeEntity, searchCapability and describeCapability let the agent find the right BrowserStack action and its parameters without loading every tool up front.
Gated execution
invokeCapability runs a capability and returns the product's response; writes only go through after you approve and the call is repeated with user_permission set to granted.
Live sessions
runBrowserLiveSession and runAppLiveSession open a website or mobile app on a chosen real browser or device; takeAppScreenshot captures app screens.
Automated tests
setupBrowserStackAutomateTests, runAppTestsOnBrowserStack, getFailureLogs and fetchRCA help port a suite to BrowserStack, run it and diagnose failures. RCA fixes come back as proposals only.
Accessibility and Percy
startAccessibilityScan and fetchAccessibilityIssues scan pages for a11y problems, while runPercyScan and fetchPercyChanges handle visual diffs.
Test Management
createProjectOrFolder, createTestCase, listTestCases, createTestRun and updateTestRun manage cases, runs and results.
Load testing
listLoadTests, startLoadTestRun, getLoadTestRunReport, compareLoadTestRuns and getLoadTestQuota run load tests and read their results and VU-hour usage.

Setting it up

You need a BrowserStack account. For the hosted server in Claude Code, run claude mcp add --scope user --transport http browserstack https://mcp.browserstack.com/mcp, then run /mcp in a session and sign in. In Cursor, add "browserstack": { "url": "https://mcp.browserstack.com/mcp" } under mcpServers in ~/.cursor/mcp.json and sign in from Cursor Settings, MCP. In VS Code, run code --add-mcp '{"name":"browserstack","type":"http","url":"https://mcp.browserstack.com/mcp"}', start the server from the MCP view and sign in. Codex uses codex mcp add browserstack --url https://mcp.browserstack.com/mcp followed by codex mcp login browserstack. For local testing, install the local server per BrowserStack's local setup guide with your username and access key from Account Settings, on Node 22.23.5 or newer. Tools that upload a local file or app need MCP_UPLOAD_BASE_DIR set to the directory holding those files.

Run in a terminal
claude mcp add --transport http browserstack https://mcp.browserstack.com/mcp

If the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Open a site running on localhost:3001 in Edge on a real machine, using the local server.
  • Pull failure logs for a broken App Automate build and get a suggested fix to review.
  • Scan a page for WCAG issues during development and list what to fix.
  • Create test cases and a test run in Test Management, then mark results as passed.
  • Start a five-minute load test with 100 virtual users and compare its p95 latency with the previous run.

Limitations and things to watch

  • The remote server has no Local Testing support, so apps behind VPNs, firewalls or on localhost need the local server.
  • Calls that change data require your explicit approval before invokeCapability will run them.
  • Upload tools only read files from the directory set in MCP_UPLOAD_BASE_DIR.
  • BrowserStack says the server supports a subset of the MCP spec and is under active development.
  • The local server requires Node 22.23.5 or newer, plus a paid or open-source BrowserStack plan for most products.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…