browser automation.com
browser automation.com logo

Browser Automation

Integrates Playwright with MCP to enable automated web interactions, scraping, and testing across browsers.

Created byApr 23, 2025

MCP Browser Automation

This is demo project to practice Model Context Protocol based server implemenation for automating browsing with Playwright. It interacts with a Claude Desktop client to accept user prompts and use server to control browser.
<a href="https://glama.ai/mcp/servers/hokppvk1dy"><img width="380" height="200" src="https://glama.ai/mcp/servers/hokppvk1dy/badge" alt="Browser Automation Server MCP server" /></a>

Pre-requisites

  • [Playwright](https://playwright.dev/)
  • [Claude Desktop](https://claude.ai/download)
  • [Node.js](https://nodejs.org/en/download/)

Building

  1. Clone the repository: `git clone https://github.com/hrmeetsingh/mcp-browser-automation.git`
  1. Install dependencies: `npm install`
  1. Verify the output executables are present in `dist` folder

Integration

  1. Create a configuration file in `~/Application\ Support/Claude/claude_desktop_config.json` (This is for macOS)
  1. Copy the following to the file:
  1. Start Claude Desktop

Usage

  1. Open Claude Desktop
  1. Start a new conversation to open a browser and navigate to a URL

Example

  • Added MCP Server options ![Added MCP Server options](./image/AvailableMCPTools.png)
  • Navigating to a URL and doing actions with playwright ![Navigating to a URL and entering text](./image/UsingMCPServer.png)