Provides browser automation capabilities using Puppeteer, enabling control of browsers, page creation, and execution of arbitrary JavaScript for web scraping, testing, and development tasks.
MCP Fetch
A Model Context Protocol server for browser automation using Puppeteer. Control browsers, create pages, and execute arbitrary JavaScript - all through the MCP interface.
Configuration
Add this to your MCP settings configuration file:
Features
- 🌐 Browser Management: Launch, list, and close browser instances
- 📄 Page Control: Create, list, and close pages (tabs) in browsers
- 🔧 Flexible Execution: Execute arbitrary JavaScript on pages with full Puppeteer API access
- 📋 Comprehensive Docs: Built-in documentation via
get-rules
tool
Available Tools
Browser Management
launch-browser
Launch a new browser instance with customizable settings.
Parameters:
headless
(boolean, optional): Run in headless mode. Default:false
width
(number, optional): Browser window width. Default:1280
height
(number, optional): Browser window height. Default:720
Returns:
list-browsers
List all active browser instances with their details.
Parameters: None
Returns:
close-browser
Close a browser instance and clean up resources.
Parameters:
browserId
(string, required): The ID of the browser to close
Returns:
Page Management
create-page
Create a new page (tab) in a specified browser instance.
Parameters:
browserId
(string, required): The ID of the browser to create a page in
Returns:
list-pages
List all active pages across all browser instances.
Parameters: None
Returns:
close-page
Close a specific page and remove it from active pages.
Parameters:
pageId
(string, required): The ID of the page to close
Returns:
Page Interaction
exec-page
Execute arbitrary JavaScript code on a page with full Puppeteer API access.
Parameters:
pageId
(string, required): The ID of the page to execute code onsource
(string, required): JavaScript code to execute. Has access to thepage
object
Returns:
Example Usage:
Documentation
get-rules
Get comprehensive documentation about this MCP server.
Parameters: None
Returns: Complete documentation including schemas, use cases, and best practices.
Use Cases
Web Development & Debugging
Launch browsers to test your web applications during development. View real-time changes, debug JavaScript, inspect elements, and test responsive designs.
Automated Testing
Run automated tests in headless mode to verify functionality, take screenshots, or perform regression testing.
Web Scraping
Extract data from websites that require JavaScript execution or complex interactions.
Best Practices
- Always close browsers when done to free up system resources
- Use headless mode for automation tasks to improve performance
- Use headed mode (headless: false) for debugging and development
- Store browser and page IDs to manage multiple instances
- Check existing browsers with
list-browsers
before launching new ones - Handle errors gracefully - browsers may crash or become unresponsive
- For exec-page: Always return a value at the end of your code
- For exec-page: Use try-catch blocks for better error handling
Installation
The browser (Chromium) will be automatically downloaded on first use. If you encounter issues, you can manually install it:
Limitations
- Browser instances are stored in memory and will be lost if the MCP server restarts
- Each browser instance consumes system resources (RAM, CPU)
- Puppeteer requires Chromium to be downloaded (happens automatically)
License
MIT
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables browser automation using Puppeteer through the MCP interface. Allows launching browsers, creating pages, and executing arbitrary JavaScript for web scraping, testing, and debugging tasks.
Related MCP Servers
- AsecurityAlicenseAqualityEnables browser automation with Puppeteer, supporting navigation, form interactions, and connection to active Chrome instances for comprehensive web page interaction.Last updated -84,205192TypeScriptMIT License
- -securityAlicense-qualityEnables browser automation using the Selenium WebDriver through MCP, supporting browser management, element location, and both basic and advanced user interactions.Last updated -975232JavaScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to automate web browsers using Puppeteer, allowing navigation, screenshots, form filling, and JavaScript execution in a real browser environment.Last updated -1JavaScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides browser automation capabilities using Puppeteer with configurable options through environment variables, enabling LLMs to interact with web pages, take screenshots, and execute JavaScript in a browser environment.Last updated -74JavaScript