Skip to main content

Browser-control API (REST + MCP) — Playwright/Patchright/Camoufox engines with macro recording, stealth, IMAP/SMTP helpers, and a typed FastAPI surface.

Project description

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-boxtf-playwright-stealth + browserforge fingerprints.
  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymcp_browser-2.0.0.tar.gz (210.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymcp_browser-2.0.0-py3-none-any.whl (261.3 kB view details)

Uploaded Python 3

File details

Details for the file pymcp_browser-2.0.0.tar.gz.

File metadata

  • Download URL: pymcp_browser-2.0.0.tar.gz
  • Upload date:
  • Size: 210.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for pymcp_browser-2.0.0.tar.gz
Algorithm Hash digest
SHA256 e7483488dec0ec2bf93804507d5d9e949b19a05a1c32d01c537961776c009cf6
MD5 8ef4092ad9b8c85395f32f41ee2ebb43
BLAKE2b-256 36367272a1a3791603d2ea62d252f98428acfc7ac61da73bb382ea93dd485709

See more details on using hashes here.

File details

Details for the file pymcp_browser-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: pymcp_browser-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 261.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for pymcp_browser-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04d54fa634f35119216a650b7885efa6bc20ece406c26c1fa1eae1be3ca219b3
MD5 cb5bcd2333bdd686e32e9aeb1fbe90b4
BLAKE2b-256 8f807158f7d8bddf07c6d484a48c78e7c3cc7a4c0a7d68aeec082d8eb2ff6039

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page