puppeteer-mcp-server
The Puppeteer MCP Server provides browser automation capabilities using Puppeteer, allowing interaction with both new and existing Chrome windows. It supports various browser operations and offers intelligent Chrome tab management.
How do I install the Puppeteer MCP Server?
You can install it globally via npm using npm install -g puppeteer-mcp-server
or run it directly with npx puppeteer-mcp-server
.
Can I connect to an existing Chrome instance?
Yes, you can connect to an existing Chrome instance by enabling remote debugging and using the puppeteer_connect_active_tab
tool.
What are the security considerations when using remote debugging?
Ensure remote debugging is enabled only on trusted networks, use a unique debugging port, and close the port when not in use to prevent unauthorized access.
How can I log and debug operations?
The server uses Winston for logging, storing logs in the logs/
directory with daily rotation and retention policies.
What error handling features are available?
The server provides detailed error messages and logs errors with timestamps, messages, and stack traces for troubleshooting.