Skip to main content

auto-browser-client

Python SDK and MCP stdio bridge for the Auto Browser REST API.

SDK

from auto_browser_client import AutoBrowserClient

client = AutoBrowserClient("http://localhost:8000", token_file="data/api-token")
session = client.create_session(start_url="https://example.com")
client.navigate(session["id"], "https://example.com/dashboard")
client.close_session(session["id"])

A local controller with no API_BEARER_TOKEN saves its generated token to data/api-token in the auto-browser folder; token_file reads it once, when the client is built (a relative path is relative to where your code runs). Pass token= instead for a token you set. A missing file raises FileNotFoundError, an empty one ValueError.

Every method has an async_ twin (await client.async_create_session(...)), and the client works as a sync or async context manager. HTTP errors raise AutoBrowserError, which carries status_code and the controller's detail.

A controller with REQUIRE_OPERATOR_ID=true rejects requests that don't name an operator. A named credential (API_BEARER_TOKENS) names one through the token; with the shared token, pass operator_id. Any other headers go in headers:

from auto_browser_client import AutoBrowserClient, AutoBrowserError

client = AutoBrowserClient(
    "http://localhost:8000",
    token="secret",
    operator_id="alice",
)
try:
    client.observe(session_id, preset="text")
except AutoBrowserError as exc:
    print(exc.status_code, exc.detail)

MCP stdio bridge

This package also ships the auto-browser-mcp console script, which bridges stdio MCP clients (Claude Desktop, Cursor, ...) to a running Auto Browser controller:

auto-browser-mcp --base-url http://127.0.0.1:8000/mcp \
  --token-file /ABSOLUTE/PATH/TO/auto-browser/data/api-token

--token-file (or AUTO_BROWSER_TOKEN_FILE) is read on every request, so the bridge can start before the controller has written it. --bearer-token (or AUTO_BROWSER_BEARER_TOKEN) wins when it is set.

A bridge older than the one that added --token-file ignores AUTO_BROWSER_TOKEN_FILE, so every tool call fails with HTTP 401: use uvx auto-browser-mcp@latest, or set AUTO_BROWSER_BEARER_TOKEN to the file's contents.

Or zero-install via uv: uvx auto-browser-mcp (resolved through the auto-browser-mcp metapackage).

The server itself is Docker-first — see the Auto Browser repository to run it.

Metadata

Release files for auto-browser-client 1.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auto-browser-client 1.16.0
File Size Uploaded Provenance Actions
auto_browser_client-1.16.0.tar.gz 41.7 kB With provenance Details for auto_browser_client-1.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for auto-browser-client 1.16.0
File Interpreter ABI Platform Actions
auto_browser_client-1.16.0-py3-none-any.whl Python 3 none any Details for auto_browser_client-1.16.0-py3-none-any.whl

Total release size: 60.2 kB

Release files / auto_browser_client-1.16.0.tar.gz

Download URL auto_browser_client-1.16.0.tar.gz
Size 41.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9a17b136b6955b0ca86da39d0ec2ac74da72e1d223f1c155f42c53240c22165e
BLAKE2b-256 checksum
How to use checksums
c5d06f8a220178ccadf083044d76862ae9d67fa85183e294ca162d29e8b03d37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / auto_browser_client-1.16.0-py3-none-any.whl

Download URL auto_browser_client-1.16.0-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f8f3078e54b59cae87ba6a6b517cecff0c76e97f7f2aa737894c93506796319
BLAKE2b-256 checksum
How to use checksums
e04aa46b0a801a92ad8d325ca7ff48ad0de03121a9e025d957ec12bc640e92d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for auto-browser-client 1.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for auto_browser_client-1.16.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.16.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page