# browserstack/mcp-server [Official] [Health: Active]

**Category:** 📂 Browser Automation  
**Repository:** https://github.com/browserstack/mcp-server  
**GitHub Stars:** 154  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-105

## Description
BrowserStack's Official MCP Server

## Tools
Capabilities this server exposes over MCP:

- **accessibilityExpert** — Answer accessibility, a11y, and WCAG questions using BrowserStack's accessibility knowledge base.
- **startAccessibilityScan** — Start an accessibility scan via BrowserStack and retrieve a local CSV report path.
- **createAccessibilityAuthConfig** — Create an authentication configuration for accessibility scans. Supports both form-based and basic authentication.
- **getAccessibilityAuthConfig** — Retrieve an existing authentication configuration by ID. Requires the numeric id returned by createAccessibilityAuthConfig. No tool here lists existing configurations, so if you do not have the id, create one rather than guessing.
- **fetchAccessibilityIssues** — Fetch accessibility issues from a completed scan with pagination support. Use cursor parameter to get subsequent pages of results. Requires the ids of a completed scan, which are returned by startAccessibilityScan. No tool here lists past scans, so if you do not have the ids, start a new scan rather than guessing.
- **setupBrowserStackAutomateTests** — Set 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.
- **percyVisualTestIntegrationAgent** — Integrate 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}"
- **expandPercyVisualTesting** — Set 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}
- **addPercySnapshotCommands** — Adds Percy snapshot commands to the specified test files.
- **listTestFiles** — Lists all test files for a given set of directories.
- **runPercyScan** — Run a Percy visual test scan. Example prompts : Run this Percy build/scan. Never run percy scan/build without this tool
- **fetchPercyChanges** — Retrieves and summarizes all visual changes detected by Percy AI between the latest and previous builds, helping quickly review what has changed in your project.
- **managePercyBuildApproval** — Approve or reject a Percy build
- **runAppLiveSession** — Use 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.
- **runBrowserLiveSession** — Launch a BrowserStack Live session (desktop or mobile).
- **createProjectOrFolder** — Create a project and/or folder in BrowserStack Test Management. Creating a project needs no identifier. Creating a folder inside an EXISTING project needs that project's identifier (PR-*); no tool here lists projects, so use the capability functions to look it up.
- **createTestCase** — Use this tool to create a test case in BrowserStack Test Management. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **updateTestCase** — Update 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. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **listTestCases** — List 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. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **listFolders** — List 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. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **listTestCaseTemplates** — List 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).
- **createTestRun** — Create a test run in BrowserStack Test Management. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **listTestRuns** — List test runs in a project with optional filters (date ranges, assignee, state, etc.) Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **updateTestRun** — Update a test run's metadata and/or add test cases to it. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **addTestResult** — Add a test result to a specific test run via BrowserStack Test Management API. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **uploadProductRequirementFile** — Upload 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. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **createTestCasesFromFile** — Generate test cases from a file in BrowserStack Test Management using the Test Case Generator AI Agent.
- **createLCASteps** — Generate Low Code Automation (LCA) steps for a test case in BrowserStack Test Management using the Low Code Automation Agent. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return.
- **listTestPlans** — List 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. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return. Creating a test plan or sub-plan, and linking or unlinking test runs on one, are not available as tools here: use the capability functions, which reach Test Management's own API for these operations. They ask you to confirm before changing anything.
- **getTestPlan** — Fetch 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. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return. Requires a test plan identifier (TP-*). Call listTestPlans first if you do not have it. Creating a test plan or sub-plan, and linking or unlinking test runs on one, are not available as tools here: use the capability functions, which reach Test Management's own API for these operations. They ask you to confirm before changing anything.
- **listSubTestPlans** — List sub-test-plans under a parent test plan (TP-*) in a Test Management project. Supports pagination. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return. Requires a test plan identifier (TP-*). Call listTestPlans first if you do not have it. Creating a test plan or sub-plan, and linking or unlinking test runs on one, are not available as tools here: use the capability functions, which reach Test Management's own API for these operations. They ask you to confirm before changing anything.
- **getSubTestPlan** — Fetch a sub-test-plan (STP-*) under a parent plan (TP-*). Returns metadata and linked test runs. Requires a project identifier (PR-*). No tool here lists projects, so if you do not have one, use the capability functions to list the Test Management projects, then retry this tool with the identifier they return. Requires a test plan identifier (TP-*). Call listTestPlans first if you do not have it. Creating a test plan or sub-plan, and linking or unlinking test runs on one, are not available as tools here: use the capability functions, which reach Test Management's own API for these operations. They ask you to confirm before changing anything.
- **takeAppScreenshot** — Use this tool to take a screenshot of an app running on a BrowserStack device. This is useful for visual testing and debugging.
- **runAppTestsOnBrowserStack** — Execute 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.
- **setupBrowserStackAppAutomateTests** — Set 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.
- **getFailureLogs** — Fetch logs, or the session video URL, for an Automate/App Automate session. Requires a session id. listSessions lists them for a build; if you do not have the build either, getBuildId or listBuildId resolves one from a project and build name.
- **fetchAutomationScreenshots** — Fetch screenshots captured during an Automate/App Automate session.
- **listSessions** — List sessions for a hashed Automate/App Automate build: session IDs, status, OS, browser/device, dashboard URL.
- **fetchSelfHealedSelectors** — Fetch 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. Requires a session id. listSessions lists them for a build; if you do not have the build either, getBuildId or listBuildId resolves one from a project and build name.
- **prepareSelfHealingPlan** — Build 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`). Requires a session id. listSessions lists them for a build; if you do not have the build either, getBuildId or listBuildId resolves one from a project and build name.
- **fetchBuildInsights** — Fetch build details and quality gate results. Includes hashed_id and session_type for listSessions.
- **fetchRCA** — Fetch 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. Requires test ids. Call listTestIds first if you do not have it.
- **getBuildId** — Get the BrowserStack build ID for a given project and build name, scoped to the current user's builds.
- **listBuildId** — Get the latest build ID for a project and build name, across all users (no user filter).
- **listTestIds** — List all tests of a BrowserStack build (each with its status and session id); optional status filter. Requires a BrowserStack build id. Call getBuildId or listBuildId first if you do not have it.
- **askBrowserStackAI** — (Alpha, limited availability. Enabled per account and per product; if it is not enabled the call returns an entitlement error, nothing runs, and you should complete the task with the individual tools instead. To request access, the user should contact their BrowserStack account owner.) Use this when no other BrowserStack tool here fits the task, or when the ones you tried did not get you there. Prefer a specific tool whenever one fits: it is faster and more predictable than handing the job to an agent. Otherwise, describe what you want in plain language and BrowserStack's agent decides which calls to make, then returns its answer plus the steps it took. Anything that would change data pauses and asks you to confirm it first; deletes are refused outright. Put that confirmation to the user and answer with what THEY say — never decide on their behalf. If it cannot be put to anyone, the run is read-only and everything it wanted to change comes back in `needs_approval` instead. One task per call.
- **listProducts** — List the BrowserStack products this surface can reach: what each one does, the entities it models, and a line saying what each entity is. START HERE — searchCapability needs a product, and this is what tells you which one. If two products could both fit the task, ask the user rather than choosing for them. ALWAYS pass the user's request, in their own words, as `query`: the answer then says outright whether the products clash over the words in it. WHEN IT REPORTS A CLASH — two products claiming the same word for different things — ASK THE USER WHICH PRODUCT THEY MEAN AND WAIT FOR THEIR ANSWER BEFORE SEARCHING OR INVOKING ANYTHING. The response carries the question to put to them and what the shared word means in each product. Choosing for them, or searching each product in turn and merging the results, is the failure this call exists to prevent.
- **describeEntity** — Describe one entity: what it is, what identifies it, what it relates to, and the vocabulary the product uses for it. Read this before filtering or writing, because ids and field values usually have to be resolved first.
- **searchCapability** — Find endpoints this surface can call, by plain language, within ONE product. CALL listProducts FIRST, passing the user's request as its `query`: it names the products, says whether they clash over the words in that request, and gives you the question to ask when they do. You need it anyway — `product` here takes a name exactly as listProducts spells it. Where two products use the same word for different things, ask the USER and wait for an answer rather than picking. Search matches the product's OWN words, not synonyms. When your words are not the product's, the response says so: `weak_match: true` with a `suggested_vocabulary` map of the product's entities and their aliases. Results are still returned, but treat them as unconfirmed — pick the closest entity from that map and search again using its vocabulary, or call describeEntity on it for the fuller picture. That one extra round trip is far cheaper than invoking the wrong capability. Narrowing further with `entity` sharpens results. THIS IS A SHORTLIST, NOT A CONTRACT. Each result carries only what you need to CHOOSE: `name` (the handle), `product`, `mode` (whether it writes), `intent` and `guidance` (what it does and what goes wrong), and `method`/`path` for products that publish no name yet. It does NOT carry parameters or response shapes. Once you have picked one, call describeCapability for its full contract, then invokeCapability. Fetching the contract only for the one you chose is the difference between ~1k and ~8.6k tokens a search. Results are ranked and capped. TO SEE EVERYTHING rather than search, pass query='*' — that lists the product (honouring `entity` and `mode`) in a stable order instead of ranking it, which is what you want when the task is 'what can this product do' rather than a lookup. TO PAGE, send `offset`: every response carries `offset` and, when more matched, `next_offset` — resend the SAME query with that value. `next_offset` is absent on the last page, so walk until it stops rather than comparing counts.
- **describeCapability** — The full contract for ONE capability you picked from searchCapability: its parameters grouped into path_params / query / body under the spec's own names, what it returns, and its declared response shapes fully expanded. Call this after search and before invokeCapability — search deliberately omits all of it, because it is only needed for the one capability you actually call. Identify it by `name`, exactly as search returned it; only when a result carries no `name` (some products publish none yet) pass `method` and `path` instead. Every parameter lists its type, whether it is required, its allowed values where the set is closed, and any limits the product declares — obey those before calling rather than discovering them from a rejected request.
- **invokeCapability** — Call a capability whose contract you have from describeCapability. Pass `name` exactly as given — that is the handle. Only when a result carries no `name` (some products do not publish them yet) pass `method` and `path` instead, exactly as returned. Arguments go in path_params / query / body under the spec's own names. One call makes exactly one request and returns the product's own response untouched; when `completed` is false there is another page, which you fetch by sending the capability's own page parameter. If the mode is 'write' you MUST ask the user first, then resend with user_permission='granted' and a change_summary; both are recorded. Capabilities whose mode is 'destructive' (deletes) are refused outright — archiving, closing and merging are ordinary writes and DO run, so read the mode and intent before confirming with the user.
- **submitFeedback** — Report a blocker, tool error, missing capability, or user feedback to BrowserStack. Never include PII or credentials.

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "mcp-server": {
    "url": "http://mcp.browserstack.com/mcp"
  }
}
```

## Documentation

## What browserstack/mcp-server does

browserstack/mcp-server exposes BrowserStack testing workflows as MCP tools for IDEs, assistants, and other agent clients. It supports manual sessions for web browsers and mobile apps, automated web-test setup through the BrowserStack SDK, accessibility analysis, Percy visual testing, and BrowserStack Test Management.

Accessibility tools can answer WCAG and a11y questions, start scans, configure form-based or basic authentication, and retrieve paginated issues from completed scans. Percy tools integrate visual testing into new or existing projects, add snapshot commands, run scans, summarize visual changes, and approve or reject builds.

Test Management tools cover projects, folders, cases, templates, runs, results, requirement-file uploads, generated test cases, low-code automation steps, and test plans. The server can also list test files and create or update testing resources.

## How it works

The hosted service is available at `https://mcp.browserstack.com/mcp` over Streamable HTTP. It is stateless, so compatible clients can connect directly and authenticate through the client’s sign-in flow. The repository also supports local installation for MCP clients that use a local server process.

Natural-language requests are translated into calls to the relevant BrowserStack tools. Some operations require identifiers returned by earlier calls. For example, creating a Test Management case requires a project identifier, while fetching accessibility issues requires the identifiers from a completed scan. Pagination is supported for accessibility issues and several Test Management listings.

BrowserStack account access is required. Local setup requires Node.js 22 or newer, along with the BrowserStack username and access key from Account Settings.

## Setup and configuration

For the hosted server, add `https://mcp.browserstack.com/mcp` as an MCP server or custom connector. The repository documents setup commands for Claude Code, Codex, VS Code, and Cursor, plus connector setup for Claude Desktop and claude.ai. Other Streamable-HTTP MCP clients can use the same endpoint.

A local installation can be configured through the MCP client’s normal server settings. Ensure the runtime uses Node.js 22 or later and provide the BrowserStack account credentials required by the local setup.

The repository also includes a Kiro power that can be imported from the `integrations/kiro-power` directory or from its GitHub path.

## Tools and capabilities

- Start live BrowserStack sessions for desktop browsers, mobile browsers, and mobile apps.
- Configure and run BrowserStack automated web tests through the BrowserStack SDK.
- Scan websites for accessibility issues and retrieve paginated results.
- Add Percy to projects, expand visual coverage, run scans, inspect changes, and manage build approval.
- Create, update, list, and organize Test Management cases, folders, runs, results, templates, and plans.
- Generate test cases from uploaded product-requirement files and create low-code automation steps.
- List project test files and use BrowserStack accessibility knowledge for a11y and WCAG questions.

## Limitations and notes

The available tools do not list existing accessibility authentication configurations or past accessibility scans. Keep the identifiers returned when creating a configuration or starting a scan. Similarly, several Test Management operations require a project identifier beginning with `PR-*`; use the relevant listing or capability function to find it before retrying.

Test-plan creation, sub-plan creation, and linking or unlinking test runs are handled through Test Management capability functions rather than the dedicated test-plan tools. The test-plan retrieval tool requires a `TP-*` identifier.

When automated-test analysis proposes a code fix, the suggestion is presented for approval; code changes are not applied automatically. Use the dedicated Percy setup tools for visual testing instead of the general BrowserStack Automate setup tool.

_Full upstream README: https://allmcps.com/mcp/mcp-server-105/readme_

