Stealth Browser Automation MCP Now Available on PyPI for macOS AI Agents

Developers working on autonomous coding agents have long faced the challenge of reliably automating browser actions on macOS, where the operating systemโ€™s sandboxing and IPC mechanisms can quickly become a source of instability.

The launch of stealthmcp, a dedicated Modelโ€‘Controlโ€‘Protocol (MCP) server paired with a transcriptโ€‘driven audit CLI, directly addresses this pain point by offering a lightweight, purposeโ€‘built solution that runs a single browser process while still exposing a full suite of automation tools to AI agents.

Hosted on PyPI under the name stealthmcp, the package provides a readyโ€‘toโ€‘use commandโ€‘line interface that can be registered with any compatible agent framework without requiring a repository clone or hardโ€‘coded absolute paths, thereby simplifying deployment across diverse workstation setups.

Its emergence signals a maturation of the ecosystem around browserโ€‘automation for AI, moving from adโ€‘hoc scripts toward a standardized, communityโ€‘maintained library that can be versioned, installed, and updated with familiar Python tooling.

The project also includes a companion audit tool that records every browser command in a humanโ€‘readable transcript, enabling postโ€‘mortem analysis and compliance checks, which is especially valuable for regulated industries that must audit automated interactions and improve overall reliability for users.

At the core of the stealth-browser component lies a clever avoidance of the classic macOS IPC port collision that occurs when two separate browser binaries attempt to register the same rendezvous socket.

In typical workflows, launching a second instance forces the system to reuse an existing port, which can freeze tab creation, break message passing, and ultimately halt the automation pipeline; stealth-browser sidesteps this by spawning a backgroundโ€‘only process that communicates through a Unix domain socket that is uniquely scoped to each Chrome DevTools Protocol (CDP) port and profile, thereby guaranteeing that each client sees an isolated endpoint while sharing a single daemon under the hood.

This design not only eliminates the race condition but also reduces the overhead of spawning multiple full browser processes, leading to faster startโ€‘up times and lower memory consumption, which is critical for AI agents that may need to spin up several instances in rapid succession to handle parallel tasks.

The architecture thus provides a robust foundation for reliable, concurrent browser automation without sacrificing performance. Moreover, because the socket is created with restrictive permissions (0600) and is bound to a perโ€‘profile namespace, the risk of unauthorized processes intercepting the communication channel is dramatically reduced, adding an extra layer of security that is essential when the automation runs with elevated privileges or interacts with sensitive web content.

Before exposing the stealthโ€‘browser MCP server to any untrusted prompt, developers should conduct a thorough review of the trust model, which defines the boundaries between the agentโ€™s execution environment and the file system as well as the network surface that the server presents.

The model treats the socket endpoint as a privileged interface that should only be reachable by components that have been explicitly authorized through a configuration file or a runtime registration step, and it enforces strict separation between the directory trees that the agent may read or write and the locations that the browser process accesses.