accessibilityExpert
🚨 REQUIRED: Use this tool for any accessibility/a11y/WCAG questions. Do NOT answer accessibility questions directly - always use this tool.
Put BrowserStack's real devices behind the client you write in: set up the SDK in your project, scan a page that sits behind a login for WCAG issues, review Percy's visual diffs, and pull logs, screenshots and root-cause analysis when a build goes red.
LABSCO SUMMARY
Several tools do something with the result rather than just fetching it. The self-healing pair hands back locator pairs bundled with the source so your editor changes only the call sites that matter instead of running a blind find-and-replace, and the root-cause tool suggests fixes it never applies on its own. The counterpart is that the setup tools write into your project — one of them edits the test files you point it at — so aim them at a checkout you are willing to have changed.
BrowserStack's own server over its cloud: 44 tools spanning Automate and App Automate runs, Percy visual testing, accessibility scans and Test Management.
A BrowserStack account, with BROWSERSTACK_USERNAME and BROWSERSTACK_ACCESS_KEY in the environment, and Node 18 or newer — the project recommends the current LTS. A checkout the setup tools may write into, and a compiled .apk or .ipa for the app-side tools. AGPL-3.0, which is worth knowing if you redistribute it.
One command plus a key — npx -y @browserstack/mcp-server@latest, then supply credentials
USE CASES
Open a live session with the build installed on the device the report names, drive it by hand, and capture what you see on the way through.
Store the sign-in once as a form-based or basic-auth configuration, start the scan against that configuration, then page through the issues it found with a cursor.
Resolve the build by project and name, list the tests that failed in it, pull the logs for one of them, and ask for the root-cause analysis before touching any code.
Take the locator pairs BrowserStack healed during the run, for one session or for a whole build, and turn them into an edit plan that names the exact call sites — the plan is context for your editor, not a patch that applies itself.
Upload the document, generate cases from it into a folder, then read back what landed so the ones worth keeping can be edited and the rest dropped.
Run the Percy build, read back the changes it detected against the previous build, and approve or reject the build once you have looked at them.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
accessibilityExpert🚨 REQUIRED: Use this tool for any accessibility/a11y/WCAG questions. Do NOT answer accessibility questions directly - always use this tool.
addPercySnapshotCommandsAdds Percy snapshot commands to the specified test files.
addTestResultAdd a test result to a specific test run via BrowserStack Test Management API.
createAccessibilityAuthConfigCreate an authentication configuration for accessibility scans. Supports both form-based and basic authentication.
createLCAStepsGenerate Low Code Automation (LCA) steps for a test case in BrowserStack Test Management using the Low Code Automation Agent.
createProjectOrFolderCreate a project and/or folder in BrowserStack Test Management.
createTestCaseUse this tool to create a test case in BrowserStack Test Management.
createTestCasesFromFileGenerate test cases from a file in BrowserStack Test Management using the Test Case Generator AI Agent.
createTestRunCreate a test run in BrowserStack Test Management.
expandPercyVisualTestingSet up or expand Percy visual testing configuration with comprehensive coverage for existing projects that might have Percy integrated. This supports both Percy Web Standalone and Percy Automate. Example prompts: Expand percy coverage for this project {project_name}
fetchAccessibilityIssuesFetch accessibility issues from a completed scan with pagination support. Use cursor parameter to get subsequent pages of results.
fetchAutomationScreenshotsFetch and process screenshots from a BrowserStack Automate session
fetchBuildInsightsFetches insights about a BrowserStack build by combining build details and quality gate results.
fetchPercyChangesRetrieves and summarizes all visual changes detected by Percy AI between the latest and previous builds, helping quickly review what has changed in your project.
fetchRCAFetch AI Root Cause Analysis for the current user's failed BrowserStack Automate/App-Automate tests. Suggests fixes only; never auto-apply, require explicit user approval.
fetchSelfHealedSelectorsFetch BrowserStack self-healed selectors plus the test source code for the run. Provide exactly one of sessionId (single Automate / App-Automate session) or buildUuid (full self-healing report for a build). Pass the returned locator pairs to prepareSelfHealingPlan to plan edits.
getAccessibilityAuthConfigRetrieve an existing authentication configuration by ID.
getBuildIdGet the BrowserStack build ID for a given project and build name, scoped to the current user's builds.
getFailureLogsFetch various types of logs from a BrowserStack session. Supports both automate and app-automate sessions.
getSubTestPlanFetch a sub-test-plan (STP-*) under a parent plan (TP-*). Returns metadata and linked test runs.
getTestPlanFetch a test plan by identifier (TP-*) from BrowserStack Test Management. Returns plan metadata, the full list of linked test runs, total test-case count across runs, and a status summary — suitable for generating test documentation or QA status reports.
listBuildIdGet the latest build ID for a project and build name, across all users (no user filter).
listFoldersList folders in a BrowserStack Test Management project, returning each folder's id and name (plus case counts and sub-folder counts). Pass parent_id to list sub-folders under a specific folder instead of top-level folders.
listSubTestPlansList sub-test-plans under a parent test plan (TP-*) in a Test Management project. Supports pagination.
listTestCasesList test cases in a project, optionally scoped to a specific folder. Omit folder_id to list all test cases in the project; provide folder_id (discoverable via listFolders) to list only that folder's cases. Supports filters: case_type, priority, pagination.
listTestCaseTemplatesList test-case templates with their numeric template_id. Use the id with createTestCase to apply a custom template (the 'template' slug only selects system templates).
listTestFilesLists all test files for a given set of directories.
listTestIdsList test IDs from a BrowserStack Automate build, optionally filtered by status
listTestPlansList test plans in a BrowserStack Test Management project. Returns each plan's identifier (TP-*), name, status, description, dates, and active/closed test-run counts. Supports pagination.
listTestRunsList test runs in a project with optional filters (date ranges, assignee, state, etc.)
managePercyBuildApprovalApprove or reject a Percy build
percyVisualTestIntegrationAgentIntegrate Percy visual testing into new projects and demonstrate visual change detection through a step-by-step simulation. This tool handles initial Percy integration, setup, and creates a working demonstration for new users. Primary tool for prompts like: "Integrate percy for this project", "Integrate percy in this project {project_name}"
prepareSelfHealingPlanBuild a self-healing edit plan that bundles locator pairs with test source code for the calling LLM to apply with its own editing tools. This tool does NOT modify files — it returns structured context so the LLM can edit only the relevant call sites (avoids blind find/replace across shared ids/classes). sessions accepts the canonical shape [{sessionId, locators: [{original, healed, thought?}]}], a single session object, an envelope {sessions: [...]}, the raw report {healing_logs: [...]} (with healed_selectors aliasing locators), and snake_case keys (session_id, original_locator, healed_locator, healing_thought).
runAppLiveSessionUse this tool when user wants to manually check their app on a particular mobile device using BrowserStack's cloud infrastructure. Can be used to debug crashes, slow performance, etc.
runAppTestsOnBrowserStackExecute pre-built native mobile test suites (Espresso for Android, XCUITest for iOS) by direct upload to BrowserStack. ONLY for compiled .apk/.ipa test files. This is NOT for SDK integration or Appium tests. For Appium-based testing with SDK setup, use 'setupBrowserStackAppAutomateTests' instead.
runBrowserLiveSessionLaunch a BrowserStack Live session (desktop or mobile).
runPercyScanRun a Percy visual test scan. Example prompts : Run this Percy build/scan. Never run percy scan/build without this tool
setupBrowserStackAppAutomateTestsSet up BrowserStack App Automate SDK integration for Appium-based mobile app testing. ONLY for Appium based framework . This tool configures SDK for various languages with appium. For pre-built Espresso or XCUITest test suites, use 'runAppTestsOnBrowserStack' instead.
setupBrowserStackAutomateTestsSet up and run automated web-based tests on BrowserStack using the BrowserStack SDK. Use this tool for functional or integration test setup on BrowserStack only. For any visual testing or Percy integration, use the dedicated Percy setup tool. Example prompts: run this test on browserstack; set up this project for browserstack.
startAccessibilityScanStart an accessibility scan via BrowserStack and retrieve a local CSV report path.
takeAppScreenshotUse this tool to take a screenshot of an app running on a BrowserStack device. This is useful for visual testing and debugging.
updateTestCaseUpdate an existing test case in BrowserStack Test Management. Any subset of the following fields may be changed: name, description, preconditions, test_case_steps, owner, priority, case_type, automation_status, status, tags, issues, custom_fields. Only the supplied fields are modified.
updateTestRunUpdate a test run's metadata and/or add test cases to it.
uploadProductRequirementFileUpload files (e.g., PDRs, PDFs) to BrowserStack Test Management and retrieve a file mapping ID. This is utilized for generating test cases from files and is part of the Test Case Generator AI Agent in BrowserStack.
BEFORE YOU INSTALL
44 tools when we connected. Some tools, including createTestCasesFromFile, listTestFiles and runPercyScan, are not available on the hosted https://mcp.browserstack.com/mcp endpoint; the local npx install exposes all 44.
All 4 documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 44 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y @browserstack/mcp-server@latest{
"servers": {
"browserstack": {
"command": "npx",
"args": [
"-y",
"@browserstack/mcp-server@latest"
],
"env": {
"BROWSERSTACK_USERNAME": "<YOUR_BROWSERSTACK_USERNAME>",
"BROWSERSTACK_ACCESS_KEY": "<YOUR_BROWSERSTACK_ACCESS_KEY>"
}
}
}
}{
"mcpServers": {
"browserstack": {
"command": "npx",
"args": [
"-y",
"@browserstack/mcp-server@latest"
],
"env": {
"BROWSERSTACK_USERNAME": "<YOUR_BROWSERSTACK_USERNAME>",
"BROWSERSTACK_ACCESS_KEY": "<YOUR_BROWSERSTACK_ACCESS_KEY>"
}
}
}
}