Skip to main content

Python-native Playwright MCP server

Project description

playwright-mcp-python

Python-native MCP server for browser automation with Playwright.

This package is designed as a Python implementation of the Playwright MCP tool contract. It exposes the same tool names and input schemas as pinned @playwright/mcp@0.0.75, while running through the official Python MCP SDK and Python Playwright.

Install

pip install playwright-mcp-python
python -m playwright install chromium

Run

Local browser launch:

playwright-mcp-python --browser chromium

Connect to an existing Chrome DevTools Protocol endpoint:

playwright-mcp-python --cdp-endpoint http://localhost:9222

Compatibility Target

  • Tool names: captured from @playwright/mcp@0.0.75
  • Input schemas: captured from @playwright/mcp@0.0.75
  • Transport: MCP over stdio
  • Browser backend: Python Playwright, Chromium-first

Verification

pytest tests/conformance -v -m 'not upstream_live'
pytest tests/conformance/test_upstream_live.py -v -m upstream_live

The live upstream tests compare this package against pinned Microsoft Playwright MCP for tool registry/schema parity and normalized behavior on core browser actions.

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

playwright_mcp_python-0.1.0.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

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

playwright_mcp_python-0.1.0-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file playwright_mcp_python-0.1.0.tar.gz.

File metadata

  • Download URL: playwright_mcp_python-0.1.0.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for playwright_mcp_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aad49e138ad8a651fe1ae79fb7f70b09615aa8cb1acfc5a62b7d5de63ca1282d
MD5 b8923c804aca6c906c9560a4f853dd9c
BLAKE2b-256 6f0d460dff6daaefa8d5fee836670f36e4f08fd2f0c913841d6e6d1d7defc125

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwright_mcp_python-0.1.0.tar.gz:

Publisher: publish-to-pypi.yml on raka334/playwright-mcp-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file playwright_mcp_python-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for playwright_mcp_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51ba274c2a828ced38ebe7abead6ab268266fc2212fdcae02585d602f9351014
MD5 cc6f3e2756fc87911cf652cb9dc417bf
BLAKE2b-256 0686a777daf5ca9d7055e9606b62ba64f60f8a514bebf1ddfba2d1a51f1e1c16

See more details on using hashes here.

Provenance

The following attestation bundles were made for playwright_mcp_python-0.1.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on raka334/playwright-mcp-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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