
blackwhite084/playwright-plus-python-mcp
Browser automationЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
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
urlargument (string).
- Requires a
playwright_screenshot: Takes a screenshot of the current page or a specific element.- Requires a
nameargument (string) for the screenshot file name. - Optional
selectorargument (string) to specify a CSS selector for the element to screenshot. If no selector is provided, a full-page screenshot is taken.
- Requires a
playwright_click: Clicks an element on the page using a CSS selector.- Requires a
selectorargument (string) to specify the CSS selector for the element to click.
- Requires a
playwright_fill: Fills out an input field.- Requires a
selectorargument (string) to specify the CSS selector for the input field. - Requires a
valueargument (string) to specify the value to fill.
- Requires a
playwright_evaluate: Executes JavaScript code in the browser console.- Requires a
scriptargument (string) to specify the JavaScript code to execute.
- Requires a
playwright_click_text: Clicks an element on the page by its text content.- Requires a
textargument (string) to specify the text content of the element to click.
- Requires a
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
selectorargument (string) to specify the CSS selector for the element.
- Requires a
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": [
Установка
uvx playwright-server