@browserstack/mcp-server

中文文档
2.6.5发布于 2026/11/06AGPL-3.0-onlyTypeScriptES Module构建来源已验证近 30 天下载 11万

BrowserStack's Official MCP Server

原始使用文档
文档目录18 节
  1. ⚡️ One Click MCP Setup
  2. 🪄 Agent-assisted setup
  3. 💡 Usage Examples
  4. 📱 Manual App Testing
  5. 🌐 Manual Web Testing
  6. 🧪 Automated Testing (Playwright, Selenium, A11y and more..)
  7. 🌐 Accessibility
  8. 📋 Test Management
  9. ⚡ Load Testing
  10. 🧪 Access BrowserStack AI agents
  11. 🧭 Core Tools
  12. 🚀 Remote MCP Server
  13. Key benefits:
  14. Limitations:
  15. ⚠️ Important Notes
  16. 📝 Contributing
  17. 📞 Support
  18. 🚀 More Features Coming Soon

BrowserStack MCP Server

BrowserStack Logo MCP Server Logo

Comprehensive Test Platform

Manage test cases, execute manual or automated tests, debug issues, and even fix code—directly within tools like Cursor, Claude, or any MCP-enabled client, using plain English.

Test from anywhere:

Easily connect the BrowserStack Test Platform to your favourite AI tools, such as IDEs, LLMs, or agentic workflows.

Test with natural language:

Manage, execute, debug tests, and even fix code using plain English prompts.

Reduced context switching:

Stay in flow—keep all project context in one place and trigger actions directly from your IDE or LLM.

⚡️ One Click MCP Setup

Click on the buttons below to install MCP in your respective IDE or assistant:

Install in VS Code  Add to Copilot  Add to Cursor  Add to Claude  Add to ChatGPT

Note: The hosted Remote MCP server (mcp.browserstack.com) is now fully stateless over Streamable HTTP — any Streamable-HTTP client (Claude, Cursor, VS Code, ChatGPT) connects with no configuration change.

Kiro: a Kiro power for this server lives in integrations/kiro-power. In the Kiro IDE, open the Powers panel → Add Custom Power → Import power from GitHub and enter https://github.com/browserstack/mcp-server/tree/main/integrations/kiro-power, or clone this repository and use Import power from a folder with that directory.

Prerequisites

For manual setup in any MCP client, see Install the MCP server locally or Set up the remote MCP server.

Note : Ensure you are using Node version >= 22

  • Check your node version using node --version. Recommended version: v22.15.0 (LTS)
  • To Upgrade Node :
    1. On macOS (Homebrew) - brew update && brew upgrade node or if using (nvm) - nvm install 22.15.0 && nvm use 22.15.0 && nvm alias default 22.15.0
    1. On Windows (nvm-windows) : nvm install 22.15.0 && nvm use 22.15.0
  • 👉 Or directly download the Node.js LTS Installer

🪄 Agent-assisted setup

Most AI agents can add the BrowserStack MCP server, connect to it, and walk you through sign-in without manual config. Paste this prompt into your agent:

Add the BrowserStack MCP server to this agent, following the setup guide at
https://www.browserstack.com/docs/browserstack-mcp-server/get-started/remote-mcp-server
and using the server URL https://mcp.browserstack.com/mcp. Once it is added, start the
BrowserStack sign-in flow so I can log in.

To add it yourself, use your client's command or menu:

ClientCommand or configuration
Claude Codeclaude mcp add --scope user --transport http browserstack https://mcp.browserstack.com/mcp, then run /mcp in a session and sign in
Claude Desktop / claude.aiSettings → Connectors → Add custom connector, with the URL https://mcp.browserstack.com/mcp
ChatGPTInstall the BrowserStack plugin
Codexcodex mcp add browserstack --url https://mcp.browserstack.com/mcp, then codex mcp login browserstack to sign in
VS Code / GitHub Copilotcode --add-mcp '{"name":"browserstack","type":"http","url":"https://mcp.browserstack.com/mcp"}', then start the server from the MCP view and sign in
CursorAdd "browserstack": { "url": "https://mcp.browserstack.com/mcp" } under mcpServers in ~/.cursor/mcp.json, then sign in from Cursor Settings → MCP
Any other MCP clientPoint it at https://mcp.browserstack.com/mcp

💡 Usage Examples

📱 Manual App Testing

Test mobile apps on real devices across the latest OS versions. Reproduce bugs and debug crashes without setup hassles. Below are some sample prompts to use your mobile apps on BrowserStack's extensive cloud of real devices

# 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?"
  • Unlike emulators, test your app's real-world performance on actual devices. With advanced App-Profiling features, you can debug crashes and performance issues in real-time.
  • Access all major devices and OS versions from our device grid, We have strict SLAs to provision our global datacenters with newly released devices on launch day.

🌐 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 websites
"open my website hosted on localhost:3001 on Edge"
"open browserstack.com on latest version of Chrome"
  • Test websites across different browsers and devices. We support every major browser across every major OS.
  • Seamlessly test websites hosted locally on your machine, no need to deploy to a remote server!

🧪 Automated Testing (Playwright, Selenium, A11y and more..)

Auto-analyze, diagnose, and even fix broken test scripts right in your IDE or LLM. Instantly fetch logs, identify root causes, and apply context-aware fixes. No more debugging loops. Below are few example prompts to run/debug/fix your automated tests on BrowserStack's Test Platform.

Note: When fetching Root Cause Analysis (RCA) for a test, the server returns the suggested fix as a proposal only. It never applies code changes automatically — your assistant must present the suggestion and wait for your explicit approval before editing any files.

#Port test suite to BrowserStack
"Setup test suite to run on BrowserStack infra"

#Run tests on BrowserStack
“Run my tests on BrowserStack”

#AI powered debugging of test failures
"My App Automate tests have failed, can you help me fix the new failures?"

  • Fix test failures reported by your CI/CD pipeline by utilising our industry leading Test Observability features. Find more info here.
  • Run tests written in Jest, Playwright, Selenium, and more on BrowserStack's Test Platform

🌐 Accessibility

Catch accessibility issues early with automated, local a11y scans. Get one-click, AI-suggested fixes. No docs hunting, no CI surprises. Ensure WCAG and ADA compliance with our Accessibility Testing tool

#Scan accessibility issues while development
"Scan & help fix accessibility issues for my website running locally on localhost:3000"

#Scan accessibility issues on production site
“Run accessibility scan & identify issues on my website - www.bstackdemo.com”

📋 Test Management

Create and manage test cases, create test plans and trigger test runs using natural language. Below are a few example 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"

⚡ Load Testing

Run and analyse load tests at scale without leaving your IDE or chat — find tests, start and stop runs, read reports and AI Insights, compare runs, and check your VU-hours. Works with API (JMeter, k6, Gatling, Locust), browser (Playwright, Selenium, WebdriverIO, Nightwatch) and hybrid load tests on BrowserStack's Load Testing. These go through the core tools.

# Find a test
"find my load test called checkout-api"

# Run it
"run checkout-api for 5 minutes with 100 virtual users"

# Check on it
"is my checkout-api run finished yet?"

# Read the results
"what was the p95 response time and error rate of the last checkout-api run?"

# Compare two runs of the same test
"did the latest checkout-api run regress compared with the previous one?"

# Check quota before a big run
"how many VU-hours do I have left, and what would a 30-minute run with 500 VUs cost?"

🧪 Access BrowserStack AI agents

Generate test cases from PRDs, convert manual tests to low-code automation, and auto-heal flaky scripts powered by BrowserStack’s AI agents, seamlessly integrated into your workflow. Below are few example prompts to access Browserstack AI agents

#Test case generator agent
"With Browserstack AI, create relevant test cases for my PRD located at /usr/file/location"


#Low code authoring agent
“With Browserstack AI, automate my manual test case X, added in Test Management”


#Self healing agent
“Help fix flaky tests in my test script with Browserstack AI self healing”

🧭 Core Tools

Five core tools let your AI assistant find and run any BrowserStack workflow. Your assistant loads every tool an MCP server exposes at the start of each session, so one tool per workflow would fill your context window and slow down the whole session. Instead, your assistant uses the core tools to search a catalog of BrowserStack tools in plain language and run the one it needs.

ToolDescription
listProductsLists the BrowserStack products in the catalog, with a short summary of what each product covers
describeEntityExplains one entity: its aliases, ID format, parent and related entities, and the capabilities that act on it
searchCapabilityFinds the capabilities that match a plain-language request, with everything your assistant needs to run each one
describeCapabilityReturns the full details of one capability, such as its parameters, request body and response format
invokeCapabilityRuns one capability and returns the product's response unchanged. Changes to data need your approval

See Core tools for parameters and how changes to data are approved.

All tools — See docs/TOOLS.md for every tool organised by product, or BrowserStack MCP tools & workflows for product workflows.

File & app uploads: tools that upload a local file/app (uploadProductRequirementFile, takeAppScreenshot, runAppTestsOnBrowserStack, runAppLiveSession) require the MCP_UPLOAD_BASE_DIR env var set to a directory containing those files; uploads are restricted to it.

🚀 Remote MCP Server

Remote MCP comes with all the functionalities of an MCP server without the hassles of complex setup or local installation.

Key benefits:

  • ✅ Works seamlessly in enterprise networks without worrying about firewalls or binaries or where local installation is not allowed.

  • ✅ Secure OAuth integration – no password sharing or manual credential handling.

Limitations:

  • ❌ No Local Testing support (cannot test apps behind VPNs, firewalls, or localhost). If you have to do Local Testing, you would have to use a BrowserStack Local MCP server.
  • ❌ Latency can be slightly higher, but nothing considerable — you generally won’t notice it in normal use.

⚠️ Important Notes

  • The BrowserStack MCP Server is under active development and currently supports a subset of the MCP spec. More features will be added soon.
  • Tool invocations rely on the MCP Client which in turn relies on an LLM, hence there can be some non-deterministic behaviour that can lead to unexpected results. If you have any suggestions or feedback, please open an issue to discuss.

📝 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.

版本与发布记录

@browserstack/mcp-server 共发布 193 个版本,首次发布于 2025/04/22;过去 12 个月发布了 155 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.6.5latest2026/11/062 天前
2.6.5-beta.1beta2026/11/062 天前
2.7.0-beta.12026/11/062 天前
2.6.12026/11/044 天前
2.6.02026/11/044 天前
2.6.0-beta.12026/11/044 天前

关于 @browserstack/mcp-server 的常见问题

@browserstack/mcp-server 是什么?

BrowserStack's Official MCP Server

如何安装 @browserstack/mcp-server?

在项目目录运行 npm install @browserstack/mcp-server,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 browserstack-mcp-server,可以用 npx browserstack-mcp-server 直接运行。

@browserstack/mcp-server 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@browserstack/mcp-server 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@browserstack/mcp-server 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.9.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@browserstack/mcp-server 可以商用吗?

@browserstack/mcp-server 使用 AGPL-3.0-only 许可。最严格的 Copyleft:除分发外,通过网络向用户提供基于它的服务也需要开源对应源码。闭源 SaaS 使用前务必评估。以上为概括,不构成法律意见,请以许可原文为准。

@browserstack/mcp-server 的下载量有多少?

根据 npm 官方下载统计,@browserstack/mcp-server 在 2026/10/09 – 2026/11/07 这 30 天内被下载 110,233 次,日均约 3,674 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@browserstack/mcp-server 还在维护吗?

最新版本 2.6.5 发布于 2026/11/06(2 天前);至今共发布 193 个版本,其中过去 12 个月发布了 155 个;首次发布于 2025/04/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。