MCP Macaco Playwright

MCP Macaco Playwright

mcp-macaco-playwright•bymacacoai

MCP Macaco Playwright is a comprehensive browser automation server that provides AI agents with web interaction capabilities through the Model Context Protocol.

License: Apache License 2.0•Runtime: Awaiting documentation review•Category: browser automation

WHAT IT DOES

  • •Offers complete browser automation for navigating pages, interacting with elements, and extracting data.
  • •Supports Chrome DevTools Protocol (CDP) connections to existing browser instances.
  • •Captures visual screenshots and accessibility-based page snapshots.

BEST FOR

  • •Automating web form filling and submission workflows.
  • •Extracting data from web pages for scraping workflows.
  • •Connecting to existing browser instances for debugging and control.

ABOUT MCP-MACACO-PLAYWRIGHT

MCP Macaco Playwright is cataloged as an MCP server attributed to macacoai. MCP Macaco Playwright is a comprehensive browser automation server that provides AI agents with web interaction capabilities through the Model Context Protocol. It is categorized under browser automation. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP Macaco Playwright are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What is MCP Macaco Playwright?

It is a browser automation server that provides AI agents with web interaction capabilities through the Model Context Protocol.

Does it support connecting to an existing browser?

It supports Chrome DevTools Protocol connections to existing browser instances for advanced debugging and control scenarios.

What capture capabilities are available?

It can capture visual screenshots and accessibility-based page snapshots.

Upstream README

View this exact version on GitHub

README.md · 437ea1d4beb1 · Fetched 2026-11-13 08:19:37 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Macaco Playwright

Enhanced Playwright Tools for Model Context Protocol (MCP) with Chrome DevTools Protocol (CDP) Support

Overview

MCP Macaco Playwright is a comprehensive browser automation server that provides AI agents with powerful web interaction capabilities through the Model Context Protocol. It combines Playwright's robust browser automation with CDP integration for advanced debugging and control scenarios.

Features

  • Complete Browser Automation: Navigate, interact, and extract data from web pages
  • Chrome DevTools Protocol (CDP) Support: Connect to existing browser instances
  • AI-Optimized: Designed specifically for AI agents and automated workflows
  • Comprehensive Tool Set: 50+ specialized functions for web automation
  • Multi-Browser Support: Chrome, Firefox, Safari, and Edge
  • Screenshot & Snapshot Capabilities: Visual and accessibility-based page capture
  • Form Automation: Complete form filling and submission workflows
  • Network Monitoring: Track requests, responses, and console messages

Installation

npm install mcp-macaco-playwright

Quick Start

import { createConnection } from "mcp-macaco-playwright";

// Create MCP server connection
const server = await createConnection();

// Use with MCP client
await client.callTool({
  name: "browser_navigate",
  arguments: { url: "https://example.com" },
});

Function Reference

Navigation Functions

browser_navigate

Navigate to a specific URL.

Parameters:

  • url (string, required): The URL to navigate to

Example:

await client.callTool({
  name: "browser_navigate",
  arguments: { url: "https://github.com" },
});

browser_navigate_back

Go back to the previous page in browser history.

Parameters: None

Example:

await client.callTool({
  name: "browser_navigate_back",
  arguments: {},
});

browser_navigate_forward

Go forward to the next page in browser history.

Parameters: None

Example:

await client.callTool({
  name: "browser_navigate_forward",
  arguments: {},
});

Page Analysis Functions

browser_snapshot

Capture an accessibility snapshot of the current page for analysis and interaction.

Parameters: None

Example:

await client.callTool({
  name: "browser_snapshot",
  arguments: {},
});

browser_take_screenshot

Take a visual screenshot of the page or specific element.

Parameters:

  • type (string, optional): Image format ('png' or 'jpeg', default: 'png')
  • filename (string, optional): Custom filename for the screenshot
  • element (string, optional): Human-readable element description
  • ref (string, optional): Element reference from snapshot
  • fullPage (boolean, optional): Capture full scrollable page

Example:

await client.callTool({
  name: "browser_take_screenshot",
  arguments: {
    type: "png",
    fullPage: true,
    filename: "homepage.png",
  },
});

Element Interaction Functions

browser_click

Click on a specific element on the page.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot

Example:

await client.callTool({
  name: "browser_click",
  arguments: {
    element: "Sign in button",
    ref: "button-signin-123",
  },
});

browser_double_click

Perform a double-click on an element.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot

Example:

await client.callTool({
  name: "browser_double_click",
  arguments: {
    element: "File icon",
    ref: "file-icon-456",
  },
});

browser_right_click

Perform a right-click to open context menu.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot

Example:

await client.callTool({
  name: "browser_right_click",
  arguments: {
    element: "Image thumbnail",
    ref: "img-thumb-789",
  },
});

Text Input Functions

browser_type

Type text into an editable element.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot
  • text (string, required): Text to type
  • submit (boolean, optional): Press Enter after typing
  • slowly (boolean, optional): Type character by character

Example:

await client.callTool({
  name: "browser_type",
  arguments: {
    element: "Search input field",
    ref: "search-input-123",
    text: "playwright automation",
    submit: true,
  },
});

browser_press_key

Press a specific key on the keyboard.

Parameters:

  • key (string, required): Key name (e.g., 'Enter', 'ArrowLeft', 'a')

Example:

await client.callTool({
  name: "browser_press_key",
  arguments: { key: "Escape" },
});

Form Functions

browser_select_option

Select options in a dropdown menu.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot
  • values (array, required): Array of values to select

Example:

await client.callTool({
  name: "browser_select_option",
  arguments: {
    element: "Country dropdown",
    ref: "country-select-456",
    values: ["United States"],
  },
});

browser_check_checkbox

Check or uncheck a checkbox element.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot
  • checked (boolean, required): Whether to check (true) or uncheck (false)

Example:

await client.callTool({
  name: "browser_check_checkbox",
  arguments: {
    element: "Terms and conditions checkbox",
    ref: "terms-checkbox-789",
    checked: true,
  },
});

browser_select_radio

Select a radio button.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot

Example:

await client.callTool({
  name: "browser_select_radio",
  arguments: {
    element: "Payment method: Credit Card",
    ref: "payment-radio-cc",
  },
});

browser_clear_input

Clear the content of an input field.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot

Example:

await client.callTool({
  name: "browser_clear_input",
  arguments: {
    element: "Email input field",
    ref: "email-input-123",
  },
});

Data Extraction Functions

browser_get_text

Extract text content or attribute values from elements.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot
  • attribute (string, optional): Specific attribute to extract (e.g., 'href', 'src')

Example:

await client.callTool({
  name: "browser_get_text",
  arguments: {
    element: "Product price",
    ref: "price-display-456",
  },
});

browser_get_elements

Get multiple elements matching a selector.

Parameters:

  • selector (string, required): CSS selector to find elements
  • attribute (string, optional): Attribute to extract from each element

Example:

await client.callTool({
  name: "browser_get_elements",
  arguments: {
    selector: ".product-card h3",
    attribute: "textContent",
  },
});

Scrolling and Focus Functions

browser_scroll_to

Scroll to a specific element or coordinate position.

Parameters:

  • element (string, optional): Human-readable element description
  • ref (string, optional): Element reference from page snapshot
  • x (number, optional): X coordinate to scroll to
  • y (number, optional): Y coordinate to scroll to
  • behavior (string, optional): Scroll behavior ('auto' or 'smooth')

Example:

await client.callTool({
  name: "browser_scroll_to",
  arguments: {
    element: "Footer section",
    ref: "footer-section-123",
    behavior: "smooth",
  },
});

browser_focus_element

Set focus on a specific element.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot

Example:

await client.callTool({
  name: "browser_focus_element",
  arguments: {
    element: "Search input",
    ref: "search-input-456",
  },
});

browser_blur_element

Remove focus from a specific element.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot

Example:

await client.callTool({
  name: "browser_blur_element",
  arguments: {
    element: "Email input",
    ref: "email-input-789",
  },
});

Wait Functions

browser_wait_for

Wait for specific conditions to be met.

Parameters:

  • time (number, optional): Time to wait in seconds
  • text (string, optional): Text to wait for to appear
  • textGone (string, optional): Text to wait for to disappear

Example:

await client.callTool({
  name: "browser_wait_for",
  arguments: {
    text: "Loading complete",
    time: 5,
  },
});

Tab Management Functions

browser_tab_list

List all open browser tabs.

Parameters: None

Example:

await client.callTool({
  name: "browser_tab_list",
  arguments: {},
});

browser_tab_new

Open a new browser tab.

Parameters:

  • url (string, optional): URL to navigate to in the new tab

Example:

await client.callTool({
  name: "browser_tab_new",
  arguments: { url: "https://example.com" },
});

browser_tab_close

Close a browser tab.

Parameters:

  • index (number, optional): Index of tab to close (closes current if not specified)

Example:

await client.callTool({
  name: "browser_tab_close",
  arguments: { index: 1 },
});

browser_tab_select

Switch to a specific tab by index.

Parameters:

  • index (number, required): Index of the tab to select

Example:

await client.callTool({
  name: "browser_tab_select",
  arguments: { index: 0 },
});

Network and Console Functions

browser_network_requests

Get all network requests made since page load.

Parameters: None

Example:

await client.callTool({
  name: "browser_network_requests",
  arguments: {},
});

browser_console_messages

Get all console messages from the page.

Parameters: None

Example:

await client.callTool({
  name: "browser_console_messages",
  arguments: {},
});

Chrome DevTools Protocol (CDP) Functions

browser_connect_cdp

Connect to an existing browser instance via CDP.

Parameters:

  • endpoint (string, required): CDP endpoint URL
  • timeout (number, optional): Connection timeout in milliseconds (default: 30000)

Example:

await client.callTool({
  name: "browser_connect_cdp",
  arguments: {
    endpoint: "ws://localhost:9222",
    timeout: 30000,
  },
});

browser_get_cdp_endpoints

Discover available CDP endpoints from running browsers.

Parameters:

  • port (number, optional): CDP port to check (default: 9222)
  • host (string, optional): Host to check (default: 'localhost')

Example:

await client.callTool({
  name: "browser_get_cdp_endpoints",
  arguments: {
    port: 9222,
    host: "localhost",
  },
});

browser_disconnect_cdp

Disconnect from the current CDP connection.

Parameters: None

Example:

await client.callTool({
  name: "browser_disconnect_cdp",
  arguments: {},
});

JavaScript Evaluation Functions

browser_evaluate

Execute JavaScript code in the browser context.

Parameters:

  • script (string, required): JavaScript code to execute

Example:

await client.callTool({
  name: "browser_evaluate",
  arguments: {
    script: "document.title",
  },
});

Dialog Handling Functions

browser_handle_dialog

Handle browser dialogs (alert, confirm, prompt).

Parameters:

  • action (string, required): Action to take ('accept' or 'dismiss')
  • text (string, optional): Text to enter for prompt dialogs

Example:

await client.callTool({
  name: "browser_handle_dialog",
  arguments: {
    action: "accept",
    text: "User input",
  },
});

File Functions

browser_upload_file

Upload files to file input elements.

Parameters:

  • element (string, required): Human-readable element description
  • ref (string, required): Element reference from page snapshot
  • files (array, required): Array of file paths to upload

Example:

await client.callTool({
  name: "browser_upload_file",
  arguments: {
    element: "File upload input",
    ref: "file-input-123",
    files: ["/path/to/document.pdf"],
  },
});

PDF Functions

browser_save_pdf

Save the current page as a PDF.

Parameters:

  • filename (string, optional): Custom filename for the PDF
  • format (string, optional): Page format (e.g., 'A4', 'Letter')
  • landscape (boolean, optional): Use landscape orientation

Example:

await client.callTool({
  name: "browser_save_pdf",
  arguments: {
    filename: "report.pdf",
    format: "A4",
    landscape: false,
  },
});

Configuration

The MCP server can be configured with various options:

const config = {
  browser: {
    headless: false,
    viewport: { width: 1280, height: 720 },
    cdpEndpoint: "ws://localhost:9222", // Optional CDP connection
  },
  capabilities: ["core", "vision"], // Enable specific tool capabilities
};

const server = await createConnection(config);

Common Usage Patterns

Web Scraping Workflow

// Navigate to page
await client.callTool({
  name: "browser_navigate",
  arguments: { url: "https://example.com" },
});

// Take snapshot to analyze page structure
await client.callTool({
  name: "browser_snapshot",
  arguments: {},
});

// Extract data from elements
await client.callTool({
  name: "browser_get_text",
  arguments: {
    element: "Product title",
    ref: "product-title-123",
  },
});

Form Automation Workflow

// Navigate to form page
await client.callTool({
  name: "browser_navigate",
  arguments: { url: "https://example.com/contact" },
});

// Fill form fields
await client.callTool({
  name: "browser_type",
  arguments: {
    element: "Name input",
    ref: "name-input-123",
    text: "John Doe",
  },
});

// Submit form
await client.callTool({
  name: "browser_click",
  arguments: {
    element: "Submit button",
    ref: "submit-btn-456",
  },
});

CDP Integration Workflow

// Connect to existing browser
await client.callTool({
  name: "browser_connect_cdp",
  arguments: { endpoint: "ws://localhost:9222" },
});

// Work with existing tabs
await client.callTool({
  name: "browser_tab_list",
  arguments: {},
});

// Disconnect when done
await client.callTool({
  name: "browser_disconnect_cdp",
  arguments: {},
});

Troubleshooting

CDP Connection Issues

If you encounter CDP connection problems:

  1. Start Chrome with debugging enabled:

    google-chrome --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0
    
  2. Verify the endpoint is accessible:

    curl http://localhost:9222/json/version
    
  3. Check for firewall or network restrictions

Browser Launch Issues

  • Ensure Playwright browsers are installed: npx playwright install
  • Check system dependencies: npx playwright install-deps
  • Verify sufficient system resources for browser instances

License

Apache License 2.0 - see LICENSE file for details.

Contributing

Contributions are welcome! Please see the contributing guidelines for more information.

Support

For issues and questions:

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP Macaco Playwright from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-macaco-playwright)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related browser automation MCP Servers

Alternative and complementary servers in the same category

View all in browser automation →

A Model Context Protocol (MCP) server for controlling Chrome with debugging capabilities, userscript injection, and extension support.

Repository stats unavailable
Browser & Scraping
Web Browser MCP Server
web-browser-mcp-server•blazickjp

An MCP server that lets AI assistants browse websites and extract content using optional CSS selectors.

Repository stats unavailable
Browser & Scraping
Steel MCP Server
steel-mcp-server•steel-dev

An MCP server that reads pages, fills forms, takes screenshots, and hands the browser to a person for logins or CAPTCHAs.

Repository stats unavailable
Browser & Scraping