GitHub - browserstack/mcp-server: BrowserStack's Official MCP Server (original) (raw)

BrowserStack MCP Server

BrowserStack Logo MCP Server Logo

NPM Version

One Platform For All Your Testing Needs

BrowserStack server MCP server

Enable every developer and tester in your team, whether they are testing manually, starting their automation journey, or scaling test automation. BrowserStack MCP Server allows you to use our cutting-edge Test Platform directly from your favourite AI tools.

Why BrowserStack ?

overview

๐Ÿ’ก Usage Examples

๐Ÿ“ฑ Manual App Testing

Use the following prompts to use your mobile apps on BrowserStack's extensive cloud of real devices. Stop using emulators!

Open app on specific device

"open my app on a iPhone 15 Pro Max"

Debug app crashes

"My app crashed on Android 14 device, can you help me debug?"

๐ŸŒ Manual Web Testing

Similar to the app testing, you can use the following prompts to test your websites on BrowserStack's extensive cloud of real browsers and devices. Don't have Edge browser installed on your machine ? We've got you covered!

Test your local websites

"open my website hosted on localhost:3001 on Edge"

๐Ÿงช Automated Testing (Playwright, Selenium, A11y and more..)

Use the following prompts to run/debug/fix your automated tests on BrowserStack's Test Platform.

Port test suite to BrowserStack

"run my test suite on BrowserStack infra"

Debug test failures

"My test suite failed, can you help me fix the new failures?"

Accessibility testing

"check for accessibility issues on my www.mywebsite.com"

๐Ÿ“‹ Test Management

Use the following prompts to utilise capabilities of BrowserStack's Test Management with MCP server.

Create project & folder structure

"create new Test management project named My Demo Project with two sub folders - Login & Checkout"

Add test cases

"add invalid login test case in Test Management project named My Demo Project"

List added test cases

"list high priority Login test cases from Test Management project - My Demo Project"

Create test run

"create a test run for Login tests from Test Management project - My Demo Project"

Update test results

"update test results as passed for Login tests test run from My Demo Project"

๐Ÿ› ๏ธ Installation

  1. Create a BrowserStack Account
    • Sign up for BrowserStack if you don't have an account already.
    • โ„น๏ธ If you have an open-source project, we'll be able to provide you with a free plan.
      Open Source Plan
    • Once you have an account (and purchased appropriate plan), note down your username and access_key from Account Settings.
  2. Ensure you are using Node version >= 18.0. Check your node version using node --version. Recommended version: v22.15.0 (LTS)
  3. Install the MCP Server
    • VSCode (Copilot - Agent Mode): .vscode/mcp.json:
      {
      "servers": {
      "browserstack": {
      "command": "npx",
      "args": ["-y", "@browserstack/mcp-server@latest"],
      "env": {
      "BROWSERSTACK_USERNAME": "",
      "BROWSERSTACK_ACCESS_KEY": ""
      }
      }
      }
      }
    • In VSCode, make sure to click on Start button in the MCP Server to start the server.Start MCP Server
    • For Cursor: .cursor/mcp.json:
      {
      "mcpServers": {
      "browserstack": {
      "command": "npx",
      "args": ["-y", "@browserstack/mcp-server@latest"],
      "env": {
      "BROWSERSTACK_USERNAME": "",
      "BROWSERSTACK_ACCESS_KEY": ""
      }
      }
      }
      }
    • Claude Desktop: ~/claude_desktop_config.json:
      {
      "mcpServers": {
      "browserstack": {
      "command": "npx",
      "args": ["-y", "@browserstack/mcp-server@latest"],
      "env": {
      "BROWSERSTACK_USERNAME": "",
      "BROWSERSTACK_ACCESS_KEY": ""
      }
      }
      }
      }

Installing via Smithery

To install BrowserStack Test Platform Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @browserstack/mcp-server --client claude

โš ๏ธ Important Notes

๐Ÿ“ Contributing

We welcome contributions! Please open an issue to discuss any changes you'd like to make. ๐Ÿ‘‰ Click here to view our Contributing Guidelines

๐Ÿ“ž Support

For support, please:

๐Ÿš€ More Features Coming Soon

Stay tuned for exciting updates! Have any suggestions? Please open an issue to discuss.

๐Ÿ”— Resources