Back to Home
browserstack icon

mcp-server

Verified Safe

by browserstack

Overview

The BrowserStack MCP server enables AI tools and IDEs to manage test cases, execute manual or automated tests on real devices and browsers, debug issues, perform root cause analysis, and implement visual testing and accessibility scans, all through natural language prompts.

Installation

Run Command
node dist/index.js

Environment Variables

  • BROWSERSTACK_USERNAME
  • BROWSERSTACK_ACCESS_KEY
  • NODE_ENV
  • REMOTE_MCP
  • USE_OWN_LOCAL_BINARY_PROCESS
  • BROWSERSTACK_LOCAL_OPTION_<KEY>

Security Notes

The server demonstrates good security practices such as sanitizing URL parameters to prevent command injection (`sanitizeUrlParam`), validating URLs and payload sizes in network requests (`apiClient.validateUrl`), and sourcing credentials from environment variables rather than hardcoding. It uses `execSync` and `childProcess.spawn` for system commands (`pgrep`, `taskkill`, `open`, `start`, `xdg-open`) and `browserstack-local` binary management, where arguments are generally fixed or carefully constructed, reducing direct shell injection risk. File system access for listing test files (`listTestFiles`) is an expected feature for a development tool but could potentially expose local file paths if the base directory input is not adequately constrained by the invoking client. The `rejectUnauthorized: false` for custom CA certificates in `apiClient` is a configuration-dependent risk. Overall, while interacting with the local system and external APIs, the implementation shows a conscious effort towards security.

Similar Servers

Stats

Interest Score55
Security Score8
Cost ClassHigh
Avg Tokens15000
Stars113
Forks31
Last Update2025-12-11

Tags

BrowserStackTestingAutomationMCPAI-powered DebuggingVisual TestingAccessibilityTest ManagementContinuous Testing