mcp-server
Verified Safeby 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
node dist/index.jsEnvironment 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
inspector
A desktop application for testing, debugging, and managing Model Context Protocol (MCP) servers, including OAuth flow debugging, AI model evaluation, and tool/resource interaction.
flowlens-mcp-server
Provides coding agents with full browser context from recorded user flows for debugging and regression testing.
octomind-mcp
Enables AI agents to programmatically create, execute, and manage end-to-end tests on the Octomind platform.
mcp-jest
Automated testing, discovery, and validation framework for Model Context Protocol (MCP) servers.