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 }。ファイルcontent (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万分の秒は、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