Playwright-MCP-Server provides web browsing capabilities for AI assistants through Playwright automation. It offers tools for navigating websites, extracting visible content, identifying interactive elements, and performing mouse actions. The server is containerized with Docker for easy deployment and uses the Model Context Protocol SDK to expose browser functionality as tools and resources. This implementation is particularly valuable for workflows requiring web scraping, content extraction, and automated browser interactions without leaving the conversation interface.
Navigate to a specified URL. Arguments: { url: string }. Returns: Navigation result.
Retrieve content from the entire page. Arguments: None. Returns: All text content from the page.
Retrieve currently visible content. Arguments: { minVisiblePercentage?: number }. Returns: Visible text content.
Get position information of interactive elements (buttons, links, etc.) on the page. Arguments: None. Returns: Coordinates and boundary information of interactive elements.
Move mouse cursor to specified coordinates. Arguments: { x: number, y: number }. Returns: Operation result.
Execute mouse click at specified coordinates. Arguments: { x: number, y: number, button?: 'left' | 'right' | 'middle', clickCount?: number }. Returns: Click operation result.
Execute mouse wheel scrolling. Arguments: { deltaY: number, deltaX?: number }. Returns: Scroll operation result.
Execute drag and drop operation. Arguments: { sourceX: number, sourceY: number, targetX: number, targetY: number }. Returns: Drag and drop operation result.
Echo tool for testing. Arguments: { message: string }. Returns: Sent message.
No reviews yet. Be the first to review!
Sign in to join the conversation
Our bundler currently only supports TypeScript-based servers. Check back soon!