★ 32953 TypeScript Apache-2.0 sse 更新 2小时前

Playwright

Playwright MCP server

安装配置

{
    "mcpServers": {
        "playwright": {
            "command": "npx",
            "args": [
                "@playwright/mcp@latest"
            ]
        }
    }
}

README 摘要

## Playwright MCP A Model Context Protocol (MCP) server that provides browser automation capabilities using [Playwright](https://playwright.dev). This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models. ### Playwright MCP vs Playwright CLI This package provides MCP interface into Playwright. If you are using a **coding agent**, you might benefit from using the [CLI+SKILLS](https://github.com/microsoft/playwright-cli) instead. - **CLI**: Modern **coding agents** increasingly favor CLI–based workflows exposed as SKILLs over MCP because CLI invocations are more token-efficient: they avoid loading large tool schemas and verbose accessibility trees into the model context, allowing agents to act through concise, purpose-built commands. This makes CLI + SKILLs better suited for high-throughput coding agents that must balance browser automation with large codebases, tests, and reasoning within limited context windows.**Learn more about [Playwright CLI with SKILLS](https://github.com/microsoft/playwright-cli)**. - **MCP**: MCP remains relevant for specialized agentic loops that benefit from persistent state, rich introspection, and iterative reasoning over page structure, such as exploratory automation, self-healing tests, or long-running autonomous workflows where maintaining continuous browser context outweighs token cost concerns. ### Key Features - **Fast and lightweight**. Uses Playwright's accessibility tree, not pixel-based input. - **LLM-friendly**. No vision models needed, operates purely on structured data. - **Deterministic tool application**. Avoids ambiguity common with screenshot-based approaches. ### Requirements - Node.js 18 or newer - VS Code, Cursor, Windsurf, Claude Desktop, Goose, Junie or any other MCP client ### Getting started First, install the Playwright MCP server with your client. **Standard config** works in most of the tools: ```js { "mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@latest" ] } } } ``` [](https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522playwright%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522%2540playwright%252Fmcp%2540latest%2522%255D%257D) [](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522playwright%2522%252C%2522command%2522%253A%2522npx%2522%252C%2522args%2522%253A%255B%2522%2540playwright%252Fmcp%2540latest%2522%255D%257D) Amp Add via the Amp VS Code extension settings screen or by updating your settings.json file: ```json "amp.mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@latest" ] } } ``` **Amp CLI Setup:** Add via the `amp mcp add`command below ```bash amp mcp add playwright -- npx @playwright/mcp@latest ``` Antigravity Add via the Antigravity settings or by updating your configuration file: ```json { "mcpServers": { "playwright": { "command": "npx", "args": [ "@playwright/mcp@latest" ] } } } ``` Claude Code Use the Claude Code CLI to add the Playwright MCP server: ```bash claude mcp add playwright npx @playwright/mcp@latest ``` Claude Desktop Follow the MCP install [guide](https://modelcontextprotocol.io/quickstart/user), use the standard config above. Cline Follow...

相关 MCP

Github

GitHub's official MCP Server

★ 30131 Go sse 待补充
mcp sse Go

Fast

🚀 The fast, Pythonic way to build MCP servers and clients.

★ 25289 Python sse 待补充
mcp Python sse

Activepieces

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI W...

★ 22382 TypeScript sse 待补充
mcp sse TypeScript

GitHub MCP Server

连接 GitHub 仓库、Issues、Pull Requests 和代码搜索的 MCP 服务,适合代码协作和项目问答。

★ 15800 TypeScript stdio 有配置
github code repository

Toolbox

MCP Toolbox for Databases is an open source MCP server for databases.

★ 15325 Go sse 有配置
mcp sse Go