
Playwrite_MCP
3 years
Works with Finder
0
Github Watches
0
Github Forks
0
Github Stars
MCP Playwright Server
A custom Playwright MCP (Multi-Client Protocol) server implementation that enables distributed test execution and browser automation across multiple clients.
Features
- Distributed test execution across multiple clients
- Browser automation using Playwright
- Custom tool implementations for various browser operations
- Request/Response handling for MCP protocol
- Support for multiple browser contexts and pages
Project Structure
├── mcp-playwright/
│ ├── src/
│ │ ├── tools/ # Tool implementations
│ │ │ ├── api/ # API-related tools
│ │ │ ├── browser/ # Browser automation tools
│ │ │ └── codegen/ # Code generation tools
│ │ ├── index.ts # Main entry point
│ │ ├── requestHandler.ts # MCP request handling
│ │ ├── toolHandler.ts # Tool management
│ │ └── types.ts # Type definitions
│ └── __tests__/ # Test files
├── package.json
└── tsconfig.json
Installation
- Clone the repository:
git clone https://github.com/DreViz/Playwrite_MCP.git
cd Playwrite_MCP
- Install dependencies:
npm install
Usage
To start the MCP server:
npm run mcp
This will start the Playwright MCP server that can handle requests from multiple clients.
Tools
The server implements various tools for browser automation:
-
Browser Tools:
- Navigation
- Screenshots
- Console logging
- User agent management
- Page interactions
-
API Tools:
- Request handling
- Response processing
-
CodeGen Tools:
- Test recording
- Code generation
Development
Prerequisites
- Node.js (v14 or higher)
- npm (v6 or higher)
Setup Development Environment
- Install development dependencies:
npm install
- Run tests:
npm test
Docker Support
The project includes Docker support for containerized execution:
- Build the image:
docker build -t mcp-playwright .
- Run the container:
docker run -p 3000:3000 mcp-playwright
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
相关推荐
🧑🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.
🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.
⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
Run existing Model Context Protocol (MCP) stdio-based servers in AWS Lambda functions
A plugin-based gateway that orchestrates other MCPs and allows developers to build upon it enterprise-grade agents.
PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
Easily create LLM tools and agents using plain Bash/JavaScript/Python functions.
😎简单易用、🧩丰富生态 - 大模型原生即时通信机器人平台 | 适配 QQ / 微信(企业微信、个人微信)/ 飞书 / 钉钉 / Discord / Telegram / Slack 等平台 | 支持 ChatGPT、DeepSeek、Dify、Claude、Gemini、xAI、PPIO、Ollama、LM Studio、阿里云百炼、火山方舟、SiliconFlow、Qwen、Moonshot、ChatGLM、SillyTraven、MCP 等 LLM 的机器人 / Agent | LLM-based instant messaging bots platform, supports Discord, Telegram, WeChat, Lark, DingTalk, QQ, Slack
Reviews

user_WqoXqPoU
As a dedicated user of Playwrite_MCP by DreViz, I must say this application is superb for content creation. The intuitive interface and seamless functionality make writing a pleasure. Highly recommend it to anyone needing a reliable tool for their writing projects!