pagesnap-mcp
pagesnap-mcp
기존 PageSnap 세션 팩을 감싸는 MCP 서버로, LLM이 세션을 나열하고 로케이터를 읽어 Playwright, Selenium 또는 Cypress로 매핑할 수 있게 합니다.
이 도구는 캡처 도구가 아닙니다. 브라우저를 열지 않고, URL을 자동 스캔하거나 브라우저를 내려받지 않습니다. Playwright는 의존성이 아닙니다.
캡처는 pagesnap-playwright 또는 pagesnap-selenium에서 수행됩니다. 이 서버를 세션 팩(flow.md + yaml + 선택적으로 PROMPT.md)의 부모 폴더로 지정하세요.
실행 방법
npm install
npm run build
node dist/index.js이 프로세스는 stdio를 통해 MCP로 통신하며 stdin을 대기합니다. 터미널에서 멈춘 것처럼 보일 수 있지만 이는 정상입니다. Ctrl+C로 종료하세요. 선택적 환경 변수: PAGESNAP_SESSIONS_DIR(기본값 ./sessions)은 PageSnap 세션 폴더의 부모 디렉터리입니다.
Related MCP server: Playwright MCP
Cursor MCP 설정
예시: .cursor/mcp.json. PAGESNAP_SESSIONS_DIR을 PageSnap 세션 부모 폴더(예: 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"
}
}
}
}이 서버는 이미 디스크에 존재하는 팩만 읽습니다. 캡처 도구가 아닙니다.
도구
토큰 효율적 처리: list_sessions와 read_session은 먼저 키와 요약만 반환합니다. YAML 파일 본문은 덤프하지 않습니다.
list_sessions: 인자 없음. PAGESNAP_SESSIONS_DIR에서 세션을 나열합니다.
read_session: { session }. flow.md, yaml 파일 이름, 파싱된 컨트롤(최대 200개)을 반환합니다.
map_locator: { by, value, name?, framework? }. 스니펫, 점수, 안정성을 반환합니다. framework: playwright|selenium|cypress(기본값 playwright).
get_prompt: { session, framework? }. PROMPT.md가 있으면 그 내용을, 없으면 합성된 프롬프트를 반환합니다.
로케이터
YAML by 값: testid, role, label, id, name, placeholder, linkText, css, xpath. 점수는 PageSnap과 동일합니다: testid 98, role 95, label/id 90, name 88, placeholder 85, linkText 75, css 60, xpath 40. Playwright에서 testid는 항상 page.getByTestId(...)로 매핑됩니다. Sauce Demo는 Playwright testIdAttribute를 통해 data-test를 사용하지만, 여전히 getByTestId를 생성해야 합니다. role이 없는 일반 data-testid 노드도 getByTestId로 매핑하며, getByRole('generic')으로 매핑하지 않습니다.
테스트
npx vitest run라이선스
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