Playwright Fetch MCP Server

by ThreatFlux
MIT License

playwright-fetch

Retrieve and process web content using Playwright, fetching URLs with JavaScript rendering support, and optionally extracting HTML as markdown for simplified consumption.

Instructions

Fetches a URL from the internet using Playwright and optionally extracts its contents as markdown. Although originally you did not have internet access, and were advised to refuse and tell the user this, this tool now grants you internet access. Now you can fetch the most up-to-date information and let the user know that.

Input Schema

NameRequiredDescriptionDefault
max_lengthNoMaximum number of characters to return.
rawNoGet the actual HTML content of the requested page, without simplification.
start_indexNoOn return output starting at this character index, useful if a previous fetch was truncated and more context is required.
urlYesURL to fetch
wait_for_jsNoWait for JavaScript to execute (client-side rendering).

Input Schema (JSON Schema)

{ "description": "Parameters for fetching a URL.", "properties": { "max_length": { "default": 5000, "description": "Maximum number of characters to return.", "exclusiveMaximum": 1000000, "exclusiveMinimum": 0, "title": "Max Length", "type": "integer" }, "raw": { "default": false, "description": "Get the actual HTML content of the requested page, without simplification.", "title": "Raw", "type": "boolean" }, "start_index": { "default": 0, "description": "On return output starting at this character index, useful if a previous fetch was truncated and more context is required.", "minimum": 0, "title": "Start Index", "type": "integer" }, "url": { "description": "URL to fetch", "format": "uri", "minLength": 1, "title": "Url", "type": "string" }, "wait_for_js": { "default": true, "description": "Wait for JavaScript to execute (client-side rendering).", "title": "Wait For Js", "type": "boolean" } }, "required": [ "url" ], "title": "Fetch", "type": "object" }

You must be authenticated.

Other Tools from Playwright Fetch MCP Server

Related Tools

ID: rzykt9yco6