mcp-browser-automation
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-browser-automationGo to example.com and take a screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-browser-automation
An MCP (Model Context Protocol) server for generic browser automation using Playwright. Exposes a headless Chromium instance as a set of callable tools so that MCP clients — such as AI coding assistants — can navigate pages, inspect elements, execute JavaScript, capture screenshots, and monitor console logs and network traffic.
Requirements
Node.js 18+
npm
Related MCP server: LCBro
Installation
npm install
npx playwright install chromiumUsage
npm run build
npm startOr for development with hot reload:
npm run devThe server listens on stdin/stdout using the MCP stdio transport. Configure your MCP client to launch it as a subprocess.
Claude Desktop:
{
"mcpServers": {
"browser-automation": {
"command": "npx",
"args": ["github:ritesh-jain/MCP-Browser-Automation"]
}
}
}Opencode:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"mcp-browser-automation": {
"type": "local",
"enabled": true,
"command": [
"npx",
"github:ritesh-jain/MCP-Browser-Automation"
]
}
}
}Tools
Tool | Description |
| Navigate to a URL. Supports custom viewport and mobile emulation. |
| Take a full-page screenshot (saved to |
| Retrieve browser console logs. Optionally clear after read. |
| Retrieve network requests and responses. Optionally clear after read. |
| Execute arbitrary JavaScript in the page context. |
| Click, type, fill, or select on a CSS selector. |
| Return tag name, id, class, inner text, outer HTML, and computed styles for an element. |
Project Structure
src/
types.ts Shared type definitions
McpServer.ts MCP protocol layer — tool registration and dispatch
BrowserManager.ts Playwright orchestration — browser lifecycle and page interactions
index.ts Entry pointHow It Works
index.tscreates anMcpBrowserServerand connects viaStdioServerTransport.An MCP client discovers tools via the
ListToolsrequest and calls them viaCallToolRequest.McpBrowserServerlazily initializes the browser on the first tool call and delegates toBrowserManager.The browser stays open across calls, enabling multi-step interactions on the same page.
License
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ritesh-jain/MCP-Browser-Automation'
If you have feedback or need assistance with the MCP directory API, please join our Discord server