Skip to main content
Glama

mcp-playwright

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

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

Install Server
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

  • -
    security
    F
    license
    -
    quality
    Provides a server utilizing Model Context Protocol to enable human-like browser automation with Playwright, allowing control over browser actions such as navigation, element interaction, and scrolling.
    Last updated -
    2
    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
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages through structured accessibility snapshots without requiring screenshots or vision models.
    Last updated -
    21
    70,036
    TypeScript
    Apache 2.0
    • Apple
    • Linux
  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol server that provides browser automation capabilities using Playwright, enabling LLMs to interact with web pages, take screenshots, generate test code, scrape web content, and execute JavaScript in real browser environments.
    Last updated -
    31
    10,534
    TypeScript
    MIT License
    • Linux
    • Apple

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/executeautomation/mcp-playwright'

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