Playwright MCP Server

by BhanuTJ93
MIT License
18,115
  • Linux
  • Apple
Integrations
  • Provides browser automation capabilities for GitHub Copilot agents in VS Code, allowing interaction with web pages and automated web testing functions.

  • Mentioned as a sponsor, with integration capabilities for terminal-based browser automation across MacOS, Linux, and Windows.

Warp, терминал искусственного интеллекта для разработчиков

Доступно для MacOS, Linux и Windows

Драматург MCP Сервер 🎭

Сервер Model Context Protocol, который предоставляет возможности автоматизации браузера с помощью Playwright. Этот сервер позволяет LLM взаимодействовать с веб-страницами, делать снимки экрана, генерировать тестовый код, выполнять веб-скрапинг страницы и выполнять JavaScript в реальной среде браузера.

Скриншот

Документация | Справочник API

Установка

Вы можете установить пакет с помощью npm, mcp-get или Smithery:

Использование npm:

npm install -g @executeautomation/playwright-mcp-server

Использование mcp-get:

npx @michaellatman/mcp-get@latest install @executeautomation/playwright-mcp-server

Использование кузнечного дела

Чтобы автоматически установить Playwright MCP для Claude Desktop через Smithery :

npx @smithery/cli install @executeautomation/playwright-mcp-server --client claude
Установка в VS Code

Установите сервер Playwright MCP в VS Code с помощью одной из этих кнопок:

Кроме того, вы можете установить сервер Playwright MCP с помощью VS Code CLI:

# For VS Code code --add-mcp '{"name":"playwright","command":"npx","args":["@executeautomation/playwright-mcp-server"]}'
# For VS Code Insiders code-insiders --add-mcp '{"name":"playwright","command":"npx","args":["@executeautomation/playwright-mcp-server"]}'

После установки сервер ExecuteAutomation Playwright MCP будет доступен для использования с вашим агентом GitHub Copilot в VS Code.

Конфигурация для использования Playwright Server

Вот конфигурация Claude Desktop для использования сервера Playwright:

{ "mcpServers": { "playwright": { "command": "npx", "args": ["-y", "@executeautomation/playwright-mcp-server"] } } }

Тестирование

В этом проекте для тестирования используется Jest. Тесты находятся в каталоге src/__tests__ .

Проведение тестов

Вы можете запустить тесты, используя одну из следующих команд:

# Run tests using the custom script (with coverage) node run-tests.cjs # Run tests using npm scripts npm test # Run tests without coverage npm run test:coverage # Run tests with coverage npm run test:custom # Run tests with custom script (same as node run-tests.cjs)

Отчет о покрытии тестами будет сформирован в каталоге coverage .

Запуск оценок

Пакет evals загружает клиент mcp, который затем запускает файл index.ts, поэтому нет необходимости перестраиваться между тестами. Вы можете загрузить переменные среды, указав префикс команды npx. Полную документацию можно найти здесь .

OPENAI_API_KEY=your-key npx mcp-eval src/evals/evals.ts src/tools/codegen/index.ts

История Звезды

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Сервер Model Context Protocol, который предоставляет возможности автоматизации браузера с помощью Playwright, позволяя LLM взаимодействовать с веб-страницами, делать снимки экрана, генерировать тестовый код, извлекать веб-контент и выполнять JavaScript в реальных браузерных средах.

  1. Драматург MCP Сервер 🎭
    1. Скриншот
    2. Документация | Справочник API
    3. Установка
    4. Конфигурация для использования Playwright Server
    5. Тестирование
    6. История Звезды

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
    Last updated -
    13
    18,115
    3,496
    TypeScript
    MIT License
    • Linux
    • Apple
  • A
    security
    F
    license
    A
    quality
    A server that enables browser automation using Playwright, allowing interaction with web pages, capturing screenshots, and executing JavaScript in a browser environment through LLMs.
    Last updated -
    12
    18,115
    1
    TypeScript
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.
    Last updated -
    3
    Python
    Apache 2.0
  • -
    security
    F
    license
    -
    quality
    A Model Context Protocol server that provides browser automation capabilities using BrowserCat's cloud browser service. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment without needing to install browsers locally.
    Last updated -
    39

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/BhanuTJ93/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server