The Puppeteer Real Browser MCP Server allows AI assistants like Claude to control a real web browser, enabling them to navigate websites, fill forms, extract content, and perform complex web automation tasks while avoiding bot detection.
First, make sure Node.js (version 18 or higher) is installed on your system
node --version
Configure Claude Desktop:
For Windows:
1. Navigate to: %APPDATA%\Claude\
2. Open or create claude_desktop_config.json
3. Add this configuration:
{
"mcpServers": {
"puppeteer-real-browser": {
"command": "npx",
"args": ["puppeteer-real-browser-mcp-server@latest"]
}
}
}
For Mac:
1. Go to: ~/Library/Application Support/Claude/
2. Open or create claude_desktop_config.json
3. Add the same configuration as above
For Linux:
1. Navigate to: ~/.config/Claude/
2. Open or create claude_desktop_config.json
3. Add the same configuration as above
Restart Claude Desktop completely
Use the claude mcp add
command:
claude mcp add puppeteer-real-browser -- npx puppeteer-real-browser-mcp-server@latest
For custom Chrome path or proxy settings:
claude mcp add puppeteer-real-browser \
-e CHROME_PATH="/path/to/chrome" \
-e PROXY_URL="http://proxy:8080" \
-- npx puppeteer-real-browser-mcp-server@latest
Configure via Cursor IDE settings:
Ctrl+Shift+P
or Cmd+Shift+P
)Or manually create configuration:
Create .cursor/mcp.json
in your project directory or ~/.cursor/mcp.json
in your home directory:
{
"mcpServers": {
"puppeteer-real-browser": {
"command": "npx",
"args": ["puppeteer-real-browser-mcp-server@latest"]
}
}
}
After installation, you can ask Claude to perform various web-based tasks:
Initialize browser and navigate:
Initialize a browser and navigate to google.com
Fill forms:
Fill in the search form with 'test query'
Extract content:
Get all the product names from this e-commerce page
Handle captchas:
Handle any captchas that appear on this page
You can customize browser behavior when initializing:
Headless mode:
Initialize a browser with headless mode enabled
Using a proxy:
Initialize a browser with proxy server https://proxy.example.com:8080
Custom Chrome path (if detection fails):
Initialize browser with custom Chrome path at C:\Program Files\Google\Chrome\Application\chrome.exe
Tool | Description |
---|---|
browser_init |
Initialize browser with stealth features |
navigate |
Go to a specific URL |
get_content |
Extract HTML or text content |
browser_close |
Close the browser instance |
Tool | Description |
---|---|
click |
Click on elements |
type |
Enter text into forms |
wait |
Wait for elements or time |
find_selector |
Find elements containing specific text |
Tool | Description |
---|---|
random_scroll |
Perform natural-looking scrolling |
solve_captcha |
Attempt to solve captchas |
Chrome not found:
CHROME_PATH
environment variable/Applications/Google Chrome.app/
sudo apt-get install -y google-chrome-stable
ECONNREFUSED errors on Windows:
CHROME_PATH
to your Chrome locationtaskkill /f /im chrome.exe
127.0.0.1 localhost
Permission denied errors:
sudo npm install -g puppeteer-real-browser-mcp-server
Claude doesn't see the MCP server:
For more detailed troubleshooting, check the documentation on the GitHub repository.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "puppeteer-real-browser" '{"command":"npx","args":["puppeteer-real-browser-mcp-server@latest"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"puppeteer-real-browser": {
"command": "npx",
"args": [
"puppeteer-real-browser-mcp-server@latest"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"puppeteer-real-browser": {
"command": "npx",
"args": [
"puppeteer-real-browser-mcp-server@latest"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect