PyMCP_Browser
Browser-control API exposing a typed FastAPI REST surface and an MCP (Model Context Protocol) server over the same engine. Supports Playwright, Patchright, and Camoufox backends with stealth, macro recording, and IMAP/SMTP helpers built in.
Install
pip install PyMCP_Browser
Optional engines:
pip install "PyMCP_Browser[patchright]"
pip install "PyMCP_Browser[camoufox]"
pip install "PyMCP_Browser[all-engines]"
After install, fetch the browser binaries:
playwright install chromium
Quick start
Run the REST + MCP server:
pymcp-v2 serve
Or invoke as a module:
python -m pymcp_browser.v2 serve
python -m pymcp_browser.v2 mcp # MCP-only mode
Features
- Multiple stealth engines — Playwright, Patchright, Camoufox (opt-in via extras).
- REST + MCP — same engine, two transports.
- Macro recording / replay — JSONL macros captured live, replayed deterministically.
- Session pool — bounded concurrent sessions with idle TTL.
- Stealth out-of-the-box —
tf-playwright-stealth+browserforgefingerprints. - Account helpers — IMAP/SMTP/OTP utilities for sign-up automation flows.
Configuration
Copy .env.example to .env and tune. See CLAUDE.md for architecture notes.
License
MIT
Metadata
Release files for PyMCP-Browser 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pymcp_browser-2.0.0.tar.gz | 210.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymcp_browser-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 471.6 kB
Release files / pymcp_browser-2.0.0.tar.gz
| Download URL | pymcp_browser-2.0.0.tar.gz |
|---|---|
| Size | 210.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7483488dec0ec2bf93804507d5d9e949b19a05a1c32d01c537961776c009cf6
|
|
BLAKE2b-256 checksum How to use checksums |
36367272a1a3791603d2ea62d252f98428acfc7ac61da73bb382ea93dd485709
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / pymcp_browser-2.0.0-py3-none-any.whl
| Download URL | pymcp_browser-2.0.0-py3-none-any.whl |
|---|---|
| Size | 261.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04d54fa634f35119216a650b7885efa6bc20ece406c26c1fa1eae1be3ca219b3
|
|
BLAKE2b-256 checksum How to use checksums |
8f807158f7d8bddf07c6d484a48c78e7c3cc7a4c0a7d68aeec082d8eb2ff6039
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for PyMCP-Browser 2.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.