BP

blackwhite084/playwright-plus-python-mcp

Browser automation

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

188 stars 28 forks Качество 64 Тренд 17Apache-2.0

blackwhite084/playwright-plus-python-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/blackwhite084/playwright-plus-python-mcp.

Обзор

blackwhite084/playwright-plus-python-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/blackwhite084/playwright-plus-python-mcp.

Обзор (машинный перевод)

\MCP-сервер с инструментами драматургов\

Компоненты

Ресурсы

Сервер реализует простую систему хранения заметок с:

  • Пользовательская схема note:// URI для доступа к отдельным нотам
  • Каждый ресурс заметок имеет имя, описание и тип мимета текста/обычного

Подсказки

Сервер предоставляет один запрос:

  • summary-notes: Создаёт резюме всех сохранённых заметок
  • Необязательный аргумент «стиль» для управления уровнем детализации (кратко/детализированный)
  • Генерирует подсказку, объединяющую все текущие заметки с предпочтениями по стилю

Инструменты

Сервер реализует следующие инструменты:

  • playwright_navigate: Перемещается на указанный URL. Эта операция автоматически создаёт новую сессию, если активной сессии нет.
  • Требуется аргумент [url (строка).
  • playwright_screenshot: Делает скриншот текущей страницы или конкретного элемента.
  • Требуется аргумент (строка) [name для имени файла скриншота.
  • Опциональный аргумент [selector для указания CSS-селектора для элемента для скриншота. Если селектор не предоставлен, делается полноценный скриншот.
  • playwright_click: Кликает по элементу на странице с помощью CSS-селектора.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

playwright-server MCP server

\A MCP server with playwright tools\

Components

Resources

The server implements a simple note storage system with:

  • Custom note:// URI scheme for accessing individual notes
  • Each note resource has a name, description and text/plain mimetype

Prompts

The server provides a single prompt:

  • summarize-notes: Creates summaries of all stored notes
    • Optional “style” argument to control detail level (brief/detailed)
    • Generates prompt combining all current notes with style preference

Tools

The server implements the following tools:

  • playwright_navigate: Navigates to a specified URL. This operation will automatically create a new session if there is no active session.
    • Requires a url argument (string).
  • playwright_screenshot: Takes a screenshot of the current page or a specific element.
    • Requires a name argument (string) for the screenshot file name.
    • Optional selector argument (string) to specify a CSS selector for the element to screenshot. If no selector is provided, a full-page screenshot is taken.
  • playwright_click: Clicks an element on the page using a CSS selector.
    • Requires a selector argument (string) to specify the CSS selector for the element to click.
  • playwright_fill: Fills out an input field.
    • Requires a selector argument (string) to specify the CSS selector for the input field.
    • Requires a value argument (string) to specify the value to fill.
  • playwright_evaluate: Executes JavaScript code in the browser console.
    • Requires a script argument (string) to specify the JavaScript code to execute.
  • playwright_click_text: Clicks an element on the page by its text content.
    • Requires a text argument (string) to specify the text content of the element to click.
  • playwright_get_text_content: Get the text content of all visiable elements.
  • playwright_get_html_content: Get the HTML content of the page.
    • Requires a selector argument (string) to specify the CSS selector for the element.

Configuration

[TODO: Add configuration details specific to your implementation]

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

"mcpServers": {
  "playwright-server": {
    "command": "uvx",
    "args": [
Открыть полный README на GitHub

Установка

uvx playwright-server
Новичок в MCP? Начните с руководства на mcpskill.org →