LogoSTMCP
Download
Playwright MCP Server

Playwright MCP Server

A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, generate test code, web scraps the page and execute JavaScript in a real browser environment.

Tools

Browser Tools (19 tools)
  • playwright_navigate - Navigate to a specified URL
  • playwright_screenshot - Take screenshots of pages or elements
  • playwright_click - Click page elements
  • playwright_iframe_click - Click elements within iframes
  • playwright_fill - Fill input fields
  • playwright_select - Select dropdown menu options
  • playwright_hover - Hover over elements
  • playwright_evaluate - Execute JavaScript code
  • playwright_close - Close the browser
  • playwright_expect_response - Wait for HTTP responses
  • playwright_assert_response - Validate HTTP responses
  • playwright_custom_user_agent - Set custom User Agent
  • playwright_get_visible_text - Get visible page text
  • playwright_get_visible_html - Get page HTML content
  • playwright_go_back - Browser back navigation
  • playwright_go_forward - Browser forward navigation
  • playwright_drag - Drag and drop elements
  • playwright_press_key - Keyboard key operations
  • playwright_save_as_pdf - Save page as PDF
API Tools (5 tools)
  • playwright_get - Execute HTTP GET requests
  • playwright_post - Execute HTTP POST requests
  • playwright_put - Execute HTTP PUT requests
  • playwright_delete - Execute HTTP DELETE requests
  • playwright_patch - Execute HTTP PATCH requests
Code Generation Tools (4 tools)
  • start_codegen_session - Start code generation session
  • end_codegen_session - End code generation session
  • get_codegen_session - Get code generation session info
  • clear_codegen_session - Clear code generation session

JSON Config

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@executeautomation/playwright-mcp-server"]
    }
  }
}

Information