mcp-server-playwright
Description
# mcp-server-playwright This project is an experimental project aimed at manipulating a browser through MCP using Playwright, in order to implement a feature to control the browser through AI. ## Tools - open-browser(url) : Open a browser with the specified URL(option). -…
About
# mcp-server-playwright This project is an experimental project aimed at manipulating a browser through MCP using Playwright, in order to implement a feature to control the browser through AI. ## Tools - open-browser(url) : Open a browser with the specified URL(option). - close-page(pageNumber: int) : Close a…
Details
- Author
- hdcola
- Downloads
- 146
- Categories
- Automation
Jump to
- Open a browser with an optional URL.
- Close a specific page by page number.
- Close the entire browser.
- Navigate to a specified URL.
- Open a new page in a new tab.
- Get readability content of the current page.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
mcp-server-playwrightCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install dependencies with pnpm install (requires bun and pnpm). Configure your MCP client with the JSON shown in the README, setting the CHROME_PATH and MUSER_DATA_DIR environment variables. Then invoke the available tools through your MCP client.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"mcp-server-playwright": {
"mcp-server-playwright": {
"command": "bun",
"args": [
"yourpath/mcp-server-playwright/src/index.ts"
],
"env": {
"CHROME_PATH": "",
"MUSER_DATA_DIR": ""
}
}
}
}
}
McpServers
{
"mcp-server-playwright": {
"command": "bun",
"args": [
"yourpath/mcp-server-playwright/src/index.ts"
],
"env": {
"CHROME_PATH": "",
"MUSER_DATA_DIR": ""
}
}
}
mcp-server-playwright
This project is an experimental project aimed at manipulating a browser through MCP using Playwright, in order to implement a feature to control the browser through AI.
Tools
- open-browser(url) : Open a browser with the specified URL(option).
- close-page(pageNumber: int) : Close a desiginated page in current browser.
- close-browser() : Close the browser.
- navigate-to-page(url) : Navigate to the specified URL.
- open-new-page(url) : Open a page in a new tab.
- get-page-content() : Get the readability content of the current page.
Usage
Install dependencies
- bun
- pnpm
pnpm install
MCP Configuration
{
"mcpServers": {
"mcp-server-playwright": {
"command": "bun",
"args": ["yourpath/mcp-server-playwright/src/index.ts"],
"env": {
"CHROME_PATH": "your_chrome_path",
"MUSER_DATA_DIR": "your_chrome_user_data_path"
}
}
}
}
Have fun!
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.


