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

MCP Macaco Playwright is a comprehensive browser automation server that provides AI agents with web interaction capabilities through the Model Context Protocol.
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.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
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.
It is a browser automation server that provides AI agents with web interaction capabilities through the Model Context Protocol.
It supports Chrome DevTools Protocol connections to existing browser instances for advanced debugging and control scenarios.
It can capture visual screenshots and accessibility-based page snapshots.
README.md · 437ea1d4beb1 · 采集于 2026-11-13 08:19:37 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Enhanced Playwright Tools for Model Context Protocol (MCP) with Chrome DevTools Protocol (CDP) Support
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.
npm install mcp-macaco-playwright
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" },
});
browser_navigateNavigate to a specific URL.
Parameters:
url (string, required): The URL to navigate toExample:
await client.callTool({
name: "browser_navigate",
arguments: { url: "https://github.com" },
});
browser_navigate_backGo back to the previous page in browser history.
Parameters: None
Example:
await client.callTool({
name: "browser_navigate_back",
arguments: {},
});
browser_navigate_forwardGo forward to the next page in browser history.
Parameters: None
Example:
await client.callTool({
name: "browser_navigate_forward",
arguments: {},
});
browser_snapshotCapture an accessibility snapshot of the current page for analysis and interaction.
Parameters: None
Example:
await client.callTool({
name: "browser_snapshot",
arguments: {},
});
browser_take_screenshotTake 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 screenshotelement (string, optional): Human-readable element descriptionref (string, optional): Element reference from snapshotfullPage (boolean, optional): Capture full scrollable pageExample:
await client.callTool({
name: "browser_take_screenshot",
arguments: {
type: "png",
fullPage: true,
filename: "homepage.png",
},
});
browser_clickClick on a specific element on the page.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotExample:
await client.callTool({
name: "browser_click",
arguments: {
element: "Sign in button",
ref: "button-signin-123",
},
});
browser_double_clickPerform a double-click on an element.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotExample:
await client.callTool({
name: "browser_double_click",
arguments: {
element: "File icon",
ref: "file-icon-456",
},
});
browser_right_clickPerform a right-click to open context menu.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotExample:
await client.callTool({
name: "browser_right_click",
arguments: {
element: "Image thumbnail",
ref: "img-thumb-789",
},
});
browser_typeType text into an editable element.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshottext (string, required): Text to typesubmit (boolean, optional): Press Enter after typingslowly (boolean, optional): Type character by characterExample:
await client.callTool({
name: "browser_type",
arguments: {
element: "Search input field",
ref: "search-input-123",
text: "playwright automation",
submit: true,
},
});
browser_press_keyPress 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" },
});
browser_select_optionSelect options in a dropdown menu.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotvalues (array, required): Array of values to selectExample:
await client.callTool({
name: "browser_select_option",
arguments: {
element: "Country dropdown",
ref: "country-select-456",
values: ["United States"],
},
});
browser_check_checkboxCheck or uncheck a checkbox element.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotchecked (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_radioSelect a radio button.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotExample:
await client.callTool({
name: "browser_select_radio",
arguments: {
element: "Payment method: Credit Card",
ref: "payment-radio-cc",
},
});
browser_clear_inputClear the content of an input field.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotExample:
await client.callTool({
name: "browser_clear_input",
arguments: {
element: "Email input field",
ref: "email-input-123",
},
});
browser_get_textExtract text content or attribute values from elements.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotattribute (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_elementsGet multiple elements matching a selector.
Parameters:
selector (string, required): CSS selector to find elementsattribute (string, optional): Attribute to extract from each elementExample:
await client.callTool({
name: "browser_get_elements",
arguments: {
selector: ".product-card h3",
attribute: "textContent",
},
});
browser_scroll_toScroll to a specific element or coordinate position.
Parameters:
element (string, optional): Human-readable element descriptionref (string, optional): Element reference from page snapshotx (number, optional): X coordinate to scroll toy (number, optional): Y coordinate to scroll tobehavior (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_elementSet focus on a specific element.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotExample:
await client.callTool({
name: "browser_focus_element",
arguments: {
element: "Search input",
ref: "search-input-456",
},
});
browser_blur_elementRemove focus from a specific element.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotExample:
await client.callTool({
name: "browser_blur_element",
arguments: {
element: "Email input",
ref: "email-input-789",
},
});
browser_wait_forWait for specific conditions to be met.
Parameters:
time (number, optional): Time to wait in secondstext (string, optional): Text to wait for to appeartextGone (string, optional): Text to wait for to disappearExample:
await client.callTool({
name: "browser_wait_for",
arguments: {
text: "Loading complete",
time: 5,
},
});
browser_tab_listList all open browser tabs.
Parameters: None
Example:
await client.callTool({
name: "browser_tab_list",
arguments: {},
});
browser_tab_newOpen a new browser tab.
Parameters:
url (string, optional): URL to navigate to in the new tabExample:
await client.callTool({
name: "browser_tab_new",
arguments: { url: "https://example.com" },
});
browser_tab_closeClose 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_selectSwitch to a specific tab by index.
Parameters:
index (number, required): Index of the tab to selectExample:
await client.callTool({
name: "browser_tab_select",
arguments: { index: 0 },
});
browser_network_requestsGet all network requests made since page load.
Parameters: None
Example:
await client.callTool({
name: "browser_network_requests",
arguments: {},
});
browser_console_messagesGet all console messages from the page.
Parameters: None
Example:
await client.callTool({
name: "browser_console_messages",
arguments: {},
});
browser_connect_cdpConnect to an existing browser instance via CDP.
Parameters:
endpoint (string, required): CDP endpoint URLtimeout (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_endpointsDiscover 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_cdpDisconnect from the current CDP connection.
Parameters: None
Example:
await client.callTool({
name: "browser_disconnect_cdp",
arguments: {},
});
browser_evaluateExecute JavaScript code in the browser context.
Parameters:
script (string, required): JavaScript code to executeExample:
await client.callTool({
name: "browser_evaluate",
arguments: {
script: "document.title",
},
});
browser_handle_dialogHandle browser dialogs (alert, confirm, prompt).
Parameters:
action (string, required): Action to take ('accept' or 'dismiss')text (string, optional): Text to enter for prompt dialogsExample:
await client.callTool({
name: "browser_handle_dialog",
arguments: {
action: "accept",
text: "User input",
},
});
browser_upload_fileUpload files to file input elements.
Parameters:
element (string, required): Human-readable element descriptionref (string, required): Element reference from page snapshotfiles (array, required): Array of file paths to uploadExample:
await client.callTool({
name: "browser_upload_file",
arguments: {
element: "File upload input",
ref: "file-input-123",
files: ["/path/to/document.pdf"],
},
});
browser_save_pdfSave the current page as a PDF.
Parameters:
filename (string, optional): Custom filename for the PDFformat (string, optional): Page format (e.g., 'A4', 'Letter')landscape (boolean, optional): Use landscape orientationExample:
await client.callTool({
name: "browser_save_pdf",
arguments: {
filename: "report.pdf",
format: "A4",
landscape: false,
},
});
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);
// 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",
},
});
// 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",
},
});
// 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: {},
});
If you encounter CDP connection problems:
Start Chrome with debugging enabled:
google-chrome --remote-debugging-port=9222 --remote-debugging-address=0.0.0.0
Verify the endpoint is accessible:
curl http://localhost:9222/json/version
Check for firewall or network restrictions
npx playwright installnpx playwright install-depsApache License 2.0 - see LICENSE file for details.
Contributions are welcome! Please see the contributing guidelines for more information.
For issues and questions:
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MCP Macaco Playwright from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-macaco-playwright)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

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

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

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