pagesnap-mcp
pagesnap-mcp
Servidor MCP que envuelve paquetes de sesiones PageSnap existentes para que un LLM pueda listar sesiones, leer localizadores y mapearlos a Playwright, Selenium o Cypress.
Esto NO es una herramienta de captura. No abre un navegador, no escanea URLs automáticamente ni descarga navegadores. Playwright no es una dependencia.
La captura ocurre en pagesnap-playwright o pagesnap-selenium. Apunta este servidor a un directorio principal de paquetes de sesión (flow.md más yaml y opcionalmente PROMPT.md).
Cómo ejecutarlo
npm install
npm run build
node dist/index.jsEl proceso se comunica mediante MCP a través de stdio y queda a la espera en stdin. Parece colgado en una terminal; es lo esperado. Detenlo con Ctrl+C. Env opcional: PAGESNAP_SESSIONS_DIR (por defecto ./sessions) es el directorio principal de las carpetas de sesiones de PageSnap.
Related MCP server: Playwright MCP
Configuración MCP de Cursor
Ejemplo de .cursor/mcp.json. Apunta PAGESNAP_SESSIONS_DIR a un directorio principal de sesiones de PageSnap, p. ej. playwright-ts-framework/snapshots:
{
"mcpServers": {
"pagesnap": {
"command": "node",
"args": [
"/absolute/path/to/pagesnap-mcp/dist/index.js"
],
"env": {
"PAGESNAP_SESSIONS_DIR": "/absolute/path/to/playwright-ts-framework/snapshots"
}
}
}
}Este servidor solo lee paquetes que ya están en el disco. No es una herramienta de captura.
Herramientas
Eficiencia de tokens: list_sessions y read_session devuelven la clave del primer nivel y resúmenes. No se vuelcan los cuerpos de los archivos YAML.
list_sessions: sin argumentos. Sesiones de PAGESNAP_SESSIONS_DIR.
read_session: { session }. lectura de flow.md, nombres de archivos yaml, controles analizados (máximo 200).
map_locator: { by, value, name?, framework? }. fragmento, puntuación, estabilidad. framework: playwright|selenium|cypress (por defecto playwright).
get_prompt: { session, framework? }. PROMPT.md si existe; de lo contrario, un prompt sintetizado.
Localizadores
Valores de by en YAML: testid, role, label, id, name, placeholder, linkText, css, xpath.
Scores según PageSnap: testid 98, role 95, label/id 90, name 88, placeholder 85, linkText 75, css 60, xpath 40.
Playwright testid siempre se asigna a page.getByTestId(...). Sauce Demo usa data-test a través de la propied Attribute de Playwright; sigue emitiendo getByTestId. Los nodos genéricos sin rol data-testid se siguen mapeando a getByTestId, nunca a getByRole('generic').
Tests
npx vitest runLicencia
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables browser automation and web interaction through structured accessibility snapshots using Playwright. Provides fast, deterministic web page interaction without requiring screenshots or vision models.5,618,931
- AlicenseNot gradedqualityDmaintenanceProvides browser automation capabilities for LLMs using Playwright, leveraging structured accessibility snapshots to interact with web pages without needing vision models. It enables tasks like web navigation, data extraction, and automated testing through a lightweight and deterministic toolset.16Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI agents to understand web page structure and content through structured data extraction and element discovery using Playwright, eliminating the need for screenshots.47MIT
- AlicenseAqualityBmaintenanceDrives a real Chromium browser to extract a page's DOM into compact Semantic JSON with Playwright-native locators, enabling AI agents to generate consistent, accurate Playwright tests.4273MIT
Related MCP Connectors
Screenshots, PDFs and Markdown from any URL or HTML for AI agents, via the SnapForge API
E2LLM gives your AI eyes and hands in a real browser: structured perception (SiFR) plus action.
AI-powered browser automation — navigate, click, fill forms, and extract data from any website.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/fredoz0999/pagesnap-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server