
tontoko/fast-playwright-mcp
Browser automationこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
tontoko/fast-playwright-mcp は [https://github.com/tontoko/fast-playwright-mcp.] からインポートされた MCP サーバーの候補です
概要
tontoko/fast-playwright-mcp は [https://github.com/tontoko/fast-playwright-mcp.] からインポートされた MCP サーバーの候補です
概要(AI 翻訳)
##ファスト プレイライト MCP
このMCPサーバーはMicrosoftのフォークです。
Playwrightでブラウザの自動化機能を提供するモデルコンテキストプロトコル(MCP)サーバー。 LLM は、構造化されたアクセシビリティのスナップショットを使用して、スクリーンショットや視覚的に調整されたモデルの必要性を迂回することで、Web ページと対話することができます。
主要機能
- 高速かつ軽量。 Playwrightのアクセシビリティツリーを使用して、ピクセルベースの入力ではなく、
- LLMフレンドリー。 ビジョンモデルを必要としないため、構造化されたデータに純粋に動作します。
- 決定ツールアプリケーション。 スクリーンショットベースのアプローチで共通する曖昧さを避けます。
速いサーバー特徴(このフォーク)
- トークン最適化。 応答コンテンツを制御するための[
expectation]パラメータをサポートするすべてのツール: - [
includeCode: false- トークンを減らすためにPlaywrightコード生成を抑制 - [
includeSnapshot: false- ページのスナップショットを最小限の応答(70-80%トークン削減)にスキップする - [
includeConsole: false- コンソールメッセージを除外する - [[
includeTabs: false] - [includeTabs: false]] - [[[[includeTabs: false]] - [[[[[includeTabs: false]]] - [[[[includeTabs: false]]]]] - [[[[[[[includeTabs: false]]]] - [[[[[[[[includeTabs: false]]]]]] - [[[[[[[[[[[[[includeTabs: false]]]]]]] - [[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]] - [[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]] - 画像圧縮。スクリーンショットツールは[
imageOptionsをサポートしています: - [
format: 'jpeg'- PNGではなくJPEGを使用する - [
quality: 1-100] - 圧縮画像(例:).
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Fast Playwright MCP
This MCP server is a fork of the Microsoft one.
A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.
Key Features
- Fast and lightweight. Uses Playwright’s accessibility tree, not pixel-based input.
- LLM-friendly. No vision models needed, operates purely on structured data.
- Deterministic tool application. Avoids ambiguity common with screenshot-based approaches.
Fast Server Features (This Fork)
- Token Optimization. All tools support an
expectationparameter to control response content:includeCode: false- Suppress Playwright code generation to reduce tokensincludeSnapshot: false- Skip page snapshot for minimal responses (70-80% token reduction)includeConsole: false- Exclude console messagesincludeTabs: false- Hide tab information
- Image Compression. Screenshot tool supports
imageOptions:format: 'jpeg'- Use JPEG instead of PNGquality: 1-100- Compress images (e.g., 50 for 50% quality)maxWidth: number- Resize images to max width
- Batch Execution. Use
browser_batch_executefor multiple operations:- Significant token reduction by eliminating redundant responses
- Per-step and global expectation configuration
- Error handling with
continueOnErrorandstopOnFirstErroroptions
- Snapshot Control. Limit snapshot size with
snapshotOptions:selector: string- Capture only specific page sections (recommended over maxLength)format: "aria"- Accessibility tree format for LLM processing
- Diff Detection. Track only changes with
diffOptions:enabled: true- Show only what changed from previous state (massive token saver)format: "minimal"- Ultra-compact diff output- Perfect for monitoring state changes during navigation or interactions
- Diagnostic System. Advanced debugging and element discovery tools:
browser_find_elements- Find elements using multiple search criteria (text, role, attributes)browser_diagnose- Comprehensive page analysis with performance metrics and troubleshooting- Enhanced error handling with alternative element suggestions
- Page structure analysis (iframes, modals, accessibility metrics)
- Performance monitoring with execution time under 300ms
- Enhanced Selector System. Unified element selection with multiple strategies:
- Selector Arrays: All element-based tools now support multiple selectors with automatic fallback
- 4 Selector Types:
ref: System-generated element IDs from previous tool results (highest priority)role: ARIA roles with optional text matching (e.g.,{role: "button", text: "Submit"})
インストール
npx @tontoko/fast-playwright-mcp@latest設定
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@tontoko/fast-playwright-mcp@latest"
]
}
}
}