Playwright MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Playwright MCPGo to news.ycombinator.com and summarize the top 5 headlines."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Playwright MCP
FastMCP server with Playwright for browser automation and web scraping. Exposes tools over HTTP for use with MCP clients (e.g. GPT-based agents).
Features
HTTP transport – Server runs as an HTTP service; clients connect via URL.
Long-lived browser – One Chromium instance started at server startup (Option A).
Structured logging – Structlog with configurable level and JSON output.
Modular layout – Config, logging, browser, tools, and server are separate; state is injected via lifespan context.
Related MCP server: Playwright MCP Server
Tools
Tool | Description |
| Navigate to a URL |
| Get HTML/text snapshot of the current page |
| List open tabs (pages) |
| Click an element by CSS selector |
| Type text into an element |
| Fill multiple form fields (selector → value map) |
| Extract content (text, HTML, or links) from current page or URL |
| Take a PNG screenshot (base64) of page or element |
Requirements
Python 3.10+
Playwright browsers (install after
pip install)
Setup
# From project root
pip install -e .
python -m playwright install chromiumOptional: copy .env.example to .env and adjust MCP_HOST, MCP_PORT, HEADLESS, LOG_LEVEL, LOG_JSON.
Run
# After pip install -e .
playwright-mcp
# Or
python -m playwright_mcp.mainServer listens at http://127.0.0.1:8000 by default. MCP endpoint is typically at http://127.0.0.1:8000/mcp (see FastMCP HTTP deployment docs).
Project layout
src/playwright_mcp/
├── main.py # Entrypoint
├── config/ # Env-based settings
├── logging_/ # Structlog setup and get_logger
├── browser/ # Lifecycle and BrowserState
├── tools/ # Navigation, interaction, scraping, screenshot
└── server/ # FastMCP app and dependency registrationConfiguration
Env var | Default | Description |
|
| HTTP bind host |
|
| HTTP bind port |
|
| Run browser headless |
|
| Log level (DEBUG, INFO, WARNING, ERROR) |
|
| Output logs as JSON |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA powerful MCP server for browser automation that supports both Playwright and Chrome DevTools Protocol (CDP) with intelligent preprocessing, comprehensive logging, and remote browser management capabilities. Enables users to perform web automation tasks like navigation, content extraction, form interactions, and screenshot capture through natural language.Last updated526MIT
- AlicenseBqualityDmaintenanceEnables web browser automation through Playwright, providing tools for navigation, element interaction, screenshot capture, and accessibility snapshots. Uses streamableHttp transport for seamless integration with MCP clients.Last updated61,184MIT
- AlicenseAqualityDmaintenanceStateful MCP server wrapping Playwright for browser automation. Provides tools to navigate, interact, and extract data from web pages via a persistent browser session.Last updated191,184MIT
- Flicense-qualityBmaintenanceAn MCP server for generic browser automation using Playwright. Enables MCP clients to navigate pages, inspect elements, execute JavaScript, capture screenshots, and monitor console logs and network traffic via a headless Chromium instance.Last updated
Related MCP Connectors
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Patrick-Ogbue/MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server