Token导航 LogoToken导航TokenDH.com
MCP Playwright Demo logo
浏览器工具未说明官方级别未说明来源级核验

MCP Playwright Demo

MCP Server

通过MCP协议和Playwright实现AI控制的浏览器自动化工具,适用于网页交互、测试和数据收集。

工具数

7

提示词数

0

GitHub Stars

0

资源数

0
AI控制开发工具Python浏览器自动化

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

jheelum35

提供方

jheelum35

最后核验

2026/5/17 20:23

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

MCP-Playwright-Demo

🚀 AI + MCP + Playwright Tool

Where AI stops talking and starts interacting with real web pages.

This project demonstrates how MCP (Model Context Protocol) allows an AI to safely control a browser via Playwright — clicking buttons, filling forms, reading content, and executing JavaScript — without giving direct system access.

✨ Why This Matters

AI can interact with real web pages ✅

Controlled, permission-based automation ✅

Today it’s a demo for simple browsing tasks, tomorrow it can handle QA workflows, scraping, testing, and cloud automation ✅

ComponentRole
playwright_mcp.pyMCP server exposing browser tools
MCPBridge that lets AI call async Python functions
AI ClientThe “brain” that triggers web interactions

@mcp.tool() async def navigate(url: str) -> str: """Navigate to the given URL""" await _ensure_browser() await page.goto(url, wait_until="domcontentloaded") title = await page.title() return f"Navigated to: {url}\nPage title: {title}"

Other tools include:

click(selector) → click elements

fill(selector, value) → fill input fields

evaluate_js(script) → run JS on the page

get_text() → get page content

get_current_url() → get URL

get_page_title() → get title

Setup Instructions

Install Python

https://www.python.org/downloads/

Install dependencies

pip install playwright fastmcp

python -m playwright install

Run MCP Server

python playwright_mcp.py

Configure AI Client

{ "mcpServers": { "playwright-mcp-server": { "command": "python", "args": ["playwright_mcp.py"] } } }

🌍 Potential Use Cases

Web QA Automation

Form filling and data submission

Scraping / data collection

Cross-browser testing

目录标签

目录标签

AI控制开发工具Python浏览器自动化本地部署网页交互测试工具数据收集

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

工具数量(toolCount,工具数)

7

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明none部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP