What is Playwright Fetch MCP Server?
A Model Context Protocol server that uses Playwright browser automation to fetch and extract JavaScript-rendered web content. It converts HTML to clean markdown for easier consumption by large language models. Created by Wyatt Roersma.
How to use Playwright Fetch MCP Server?
Install via uv or Docker, then configure it as an MCP server in your client (e.g., Claude.app or VS Code). Use the playwright-fetch tool with a required url argument and optional parameters like max_length, start_index, raw, and wait_for_js.
Key features of Playwright Fetch MCP Server
- Full browser automation with Playwright for JavaScript rendering
- Automatic identification and extraction of main content areas
- Conversion of HTML to clean, readable markdown
- Supports pagination for large content
- Respects
robots.txt directives (configurable)
- Proxy support via
--proxy-url command-line option
- Available as a pre-built Docker image
Use cases of Playwright Fetch MCP Server
- Fetching content from modern single-page applications (SPAs)
- Extracting readable text from JavaScript-heavy documentation sites
- Automating web research for LLM applications requiring rendered page data
- Testing and debugging web scraping workflows with a visible browser option
评论