
ma-pony/mcp-playwright
Browser automationThis page was translated automatically. Technical details may differ from the original. View the original
Playwright MCP Server 一个基于 FastMCP 框架的专业级 Playwright 浏览器自动化 MCP 服务器,为 LLM 应用提供强大的网页交互和数据提取能力。
Overview
一个基于 FastMCP 框架的专业级 Playwright 浏览器自动化 MCP 服务器,为 LLM 应用提供强大的网页交互和数据提取能力。 - : 完整的 Playwright 浏览器控制能力 - : 支持 Chromium、Firefox、WebKit - : 独立的浏览器会话,支持并发操作 - : 智能的生命周期管理和资源清理 - : 完善的错误处理和超时控制 - : 清晰的代码架构和职责分离 - : 完整的 TypeScript 风格类型注解 - : 基于 asyncio 的并发安全实现 - : 使用 FastMCP 的生命周期机制 - : 结构化的日志记录和监控 - : 创建/关闭会话、页面导航 - : 点击、输入、等待元素 - : 文本内容、属性值、页面信息 - : 截图、JavaScript 执行 - : 会话状态、健康检查 - : 模块化设计、依赖注入、统一配置 - : 资源管理、异步安全、优雅关闭 - : 插件架构、会话隔离、类型安全 - create_browser_session - 创建新的浏览器会话 - close_browser_session - 关闭当前浏览器会话 - navigate_to_url - 导航到指定URL - click_element - 点击页面元素 - fill_input - 填写输入框 - wait_for_selector - 等待元素出现 - get_text_content - 获取元素文本内容 - get_element_attribute - 获取元素属性值 - get_page_title - 获取页面标题 - get_page_url - 获取当前页面URL
Install
This server does not publish a one-line install command.
Open the repository installation guide New to MCP? Start with the mcpskill.org guide →Configuration
{
"mcpServers": {
"playwright": {
"command": "mcp-playwright"
}
}
}