# BetterWright

> A persistent Playwright browser for AI agents with configurable network controls.

- **URL**: https://followmcp.com/en/servers/betterwright
- **Category**: Browser
- **Origin**: Community
- **Stars**: 357
- **FMRS Score**: 52/100 (Grade D)
- **Source**: https://github.com/BetterWright/betterwright
- **Transports**: stdio (local process)
- **Runtimes**: Bun 1.4+
- **Auth**: No credential needed

## Overview
BetterWright gives AI agents a Playwright JavaScript browser whose tabs and page state can persist across calls. Its stdio MCP server exposes browser execution, UI batches, downloads, recording, diagnostics, and human handoff. The project also offers a CLI, JavaScript/TypeScript SDK, and optional built-in agent. The server manifest was not provided, so exact tool names and client compatibility cannot be confirmed.

## Best for
- AI agent workflows that need persistent Playwright sessions and can configure their network access scope.
- Teams connecting browser access through stdio MCP, the CLI, or the JavaScript/TypeScript SDK.

## Not for
- Users who require a manifest listing exact tools and client compatibility.
- Deployments that require private and local network access to be blocked by default without additional configuration.
- Use cases that treat the snippet sandbox as a security boundary against hostile JavaScript or require guaranteed CAPTCHA acceptance or undetectability.

## Required permissions
- Access to the websites the user authorizes for automation; the default network policy permits public, private, and loopback destinations.
- Credential filling may access configured vault records and fills them only for matching URLs.
- A local Bun CLI/MCP process; managed browser use requires an explicit BetterChromium download, or configuration of a supplied browser.

## Risks
- Private and loopback network access is allowed by default. Review the network policy before use on sensitive networks and consider `--block-private-network` and/or `--block-loopback`.
- Remote CDP/provider browsers do not receive the local transport's metadata and DNS-rebinding protections.
- The snippet sandbox is not a security boundary against hostile JavaScript.
- Credentials are encrypted at rest, URL-gated, and redacted from results, but filled secrets remain in the matched page DOM; an unrestricted shell or compromised host can bypass local vault protections.
- Browser configuration does not guarantee undetectability or CAPTCHA acceptance. Treat page content as untrusted and authorize consequential actions in the host.
