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, la terminal de IA para desarrolladores

Disponible para MacOS, Linux y Windows

Servidor MCP de dramaturgo 🎭

Un servidor de Protocolo de Contexto de Modelo que proporciona funciones de automatización del navegador mediante Playwright. Este servidor permite a los LLM interactuar con páginas web, tomar capturas de pantalla, generar código de prueba, extraer fragmentos web de la página y ejecutar JavaScript en un entorno de navegador real.

Captura de pantalla

Documentación | Referencia de API

Instalación

Puede instalar el paquete utilizando npm, mcp-get o Smithery:

Usando npm:

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

Usando mcp-get:

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

Uso de herrería

Para instalar Playwright MCP para Claude Desktop automáticamente a través de Smithery :

npx @smithery/cli install @executeautomation/playwright-mcp-server --client claude
Instalación en VS Code

Instale el servidor Playwright MCP en VS Code usando uno de estos botones:

Alternativamente, puede instalar el servidor Playwright MCP usando la CLI de VS Code:

# 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"]}'

Después de la instalación, el servidor ExecuteAutomation Playwright MCP estará disponible para su uso con su agente GitHub Copilot en VS Code.

Configuración para utilizar Playwright Server

Aquí está la configuración de Claude Desktop para utilizar el servidor Playwright:

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

Pruebas

Este proyecto utiliza Jest para las pruebas. Las pruebas se encuentran en el directorio src/__tests__ .

Ejecución de pruebas

Puede ejecutar las pruebas utilizando uno de los siguientes comandos:

# 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)

El informe de cobertura de la prueba se generará en el directorio coverage .

Ejecución de evaluaciones

El paquete evals carga un cliente mcp que ejecuta el archivo index.ts, por lo que no es necesario reconstruir entre pruebas. Puede cargar variables de entorno prefijando el comando npx. Puede encontrar la documentación completa aquí .

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

Historia de las estrellas

You must be authenticated.

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

Un servidor de protocolo de contexto de modelo que proporciona capacidades de automatización del navegador mediante Playwright, lo que permite a los LLM interactuar con páginas web, tomar capturas de pantalla, generar código de prueba, extraer contenido web y ejecutar JavaScript en entornos de navegador reales.

  1. Servidor MCP de dramaturgo 🎭
    1. Captura de pantalla
    2. Documentación | Referencia de API
    3. Instalación
    4. Configuración para utilizar Playwright Server
    5. Pruebas
    6. Historia de las estrellas

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