Feedback

mcp-server-playwright — by hdcola

@hdcola Claim

Basic information

Runtime
node
License
MIT
Transports
stdio
Author
hdcola
Submitted by
Community
Quality
10

About mcp-server-playwright

# mcp-server-playwright

mcp-server-playwright is a MCP server in the Browser Automation category listed in the AddMCP.net directory, published by hdcola. Supported transport: stdio. Runtime: node. License: MIT. Source code is hosted on github.com.

Setup

{
    "mcpServers": {
        "mcp-server-playwright": {
            "command": "bun",
            "args": [
                "yourpath/mcp-server-playwright/src/index.ts"
            ],
            "env": {
                "CHROME_PATH": "",
                "MUSER_DATA_DIR": ""
            }
        }
    }
}

mcp-server-playwright — by hdcola config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "mcp-server-playwright": {
            "command": "bun",
            "args": [
                "yourpath/mcp-server-playwright/src/index.ts"
            ],
            "env": {
                "CHROME_PATH": "",
                "MUSER_DATA_DIR": ""
            }
        }
    }
}

mcp-server-playwright — by hdcola tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is mcp-server-playwright?

mcp-server-playwright is an experimental MCP server that uses Playwright to control a browser, enabling AI-driven browser automation. It provides a set of tools to open, close, and navigate browser pages programmatically.

How to use mcp-server-playwright?

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.

Key features of mcp-server-playwright

  • 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.

Use cases of mcp-server-playwright

  • Automate web browsing tasks via AI assistants.
  • Extract readable content from web pages programmatically.
  • Control multiple browser tabs for testing or scraping.
  • Integrate browser actions into MCP-powered workflows.

Frequently asked questions

1 What runtime dependencies does it require?

It requires bun and pnpm installed on your system. The server is run with bun.

2 How do I configure the Chrome browser path?

Set the CHROME_PATH environment variable in the MCP configuration to the path of your Chrome executable. Also set MUSER_DATA_DIR to your Chrome user data directory.

3 What tools are available?

Tools include: open-browser, close-page, close-browser, navigate-to-page, open-new-page, and get-page-content. Each tool has its own parameters as described in the README.

4 Is this project production-ready?

No, it is described as an experimental project aimed at implementing browser control through AI.

5 Where does the browser data live?

The user data directory is specified via the MUSER_DATA_DIR environment variable, which points to the Chrome user data path on your local machine.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬