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

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.13.1
File Size Uploaded Provenance Actions
auto_browser_client-1.13.1.tar.gz 26.0 kB With provenance Details for auto_browser_client-1.13.1.tar.gz

Built distribution (wheel)

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

Total release size: 39.4 kB

Release files / auto_browser_client-1.13.1.tar.gz

Download URL auto_browser_client-1.13.1.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
50ca181573deab03a191d1c30ed2ebe021adc301fc4dc5e936528abc06805814
BLAKE2b-256 checksum
How to use checksums
11feef19998f03e5cb7ee91d85f21c07085cca84c4bee05b044b5bfe27be4831
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 4, 2026.

Transparency log

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

Download URL auto_browser_client-1.13.1-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d56fa51bdd7ae355246441c0f4d1ac80c5f582c423b5fa1f4d5526b0ecba057
BLAKE2b-256 checksum
How to use checksums
b5492700bfde2be1a2a1231d3d16a128bb9f09af00ff503365d91a6a2d535ac1
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 4, 2026.

Transparency log

Security for auto-browser-client 1.13.1

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for auto_browser_client-1.13.1.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 4, 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.13.1 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