How do I configure custom Puppeteer options?
Set the `PUPPETEER_ARGS` environment variable to a JSON string of Puppeteer launch options, such as `{"browser": "firefox"}` or `{"defaultViewport": {"width": 1280, "height": 800}}`.
@afshawnlotfi
基本信息
Configurable Puppeteer MCP Server
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"puppeteer": {
"command": "npx",
"args": [
"-y",
"github:afshawnlotfi/mcp-configurable-puppeteer"
],
"env": {
"PUPPETEER_ARGS": "{\"browser\": \"firefox\"}"
}
}
}
}Navigate to any URL in the browser
Capture screenshots of the entire page or specific elements
Click elements on the page
Hover elements on the page
Fill out input fields
Select an element with SELECT tag
Execute JavaScript in the browser console
Configurable Puppeteer MCP Server is a Model Context Protocol server that provides browser automation capabilities using Puppeteer with configurable launch options. It enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment, with customization through environment variables.
Use the NPX command npx -y github:afshawnlotfi/mcp-configurable-puppeteer in your MCP client configuration. Optionally set the PUPPETEER_ARGS environment variable to a JSON string of custom Puppeteer launch options (e.g., to use Firefox or set viewport size).
Set the `PUPPETEER_ARGS` environment variable to a JSON string of Puppeteer launch options, such as `{"browser": "firefox"}` or `{"defaultViewport": {"width": 1280, "height": 800}}`.
Tools include `puppeteer_navigate`, `puppeteer_screenshot`, `puppeteer_click`, `puppeteer_hover`, `puppeteer_fill`, `puppeteer_select`, and `puppeteer_evaluate`.
Screenshots are accessible via the resource `screenshot://<name>`, where `<name>` is the name provided during capture.
The server provides console logs at `console://logs` (text format) and screenshots at `screenshot://<name>` (PNG images).
Use the `puppeteer_evaluate` tool with the `script` input containing the JavaScript code to execute.
MCP server for fetch web page content using Playwright headless browser.
Browse the web, directly from Cursor etc.
BitBrowser MCP simple to use, no complicated procedures required. Supports a variety of intelligent agent services.
Helps AI assistants access text content from bot-protected websites. MCP server that fetches HTML/markdown from sites with anti-automation measures using Scrapling.
Capture screenshots of webpages as images or PDFs with Screenshot Scout.
评论