playwright-min-network-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@playwright-min-network-mcp Start monitoring network requests"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
playwright-min-network-mcp
A minimal network monitoring MCP tool for Playwright browser automation. Just 5 simple tools to capture, filter, and analyze network traffic during web automation with MCP context efficiency.
graph LR
A[Claude AI] --> B[🔍 Network MCP<br/>monitoring only]
A --> C[🎮 Playwright MCP<br/>operation only]
B --> D[Chrome Browser<br/>CDP: 9222]
C --> D
style B fill:#fff3e0
style C fill:#f3e5f5
style D fill:#e1f5feflowchart TD
Start([Start]) --> A[🔍 Network MCP startup]
A --> B[🌐 Launch browser<br/>CDP: 9222 waiting]
B --> C[🎮 Playwright MCP startup]
C --> D[🎮 Connect to existing browser via CDP]
D --> E[Both MCPs sharing browser state]
E -->|🔍 Network MCP| F[🔍 Start network monitoring]
E -->|🎮 Playwright MCP| G[🎮 Execute browser operations]
subgraph Browser["🌐"]
F --> H[🔍 Record requests/responses]
G --> I[🎮 Page navigation & clicks]
end
H --> J[🔍 Get monitoring results]
I --> K[🎮 Operation complete]
J --> End([Complete])
K --> End
style A fill:#fff3e0
style B fill:#f0f8ff,stroke:#4682b4,stroke-width:2px
style C fill:#f3e5f5
style D fill:#f3e5f5
style E fill:#e8f5e8
style Browser fill:#f0f8ff,stroke:#4682b4,stroke-width:3px
style F fill:#fff3e0
style G fill:#f3e5f5
style H fill:#fff3e0
style I fill:#f3e5f5
style J fill:#fff3e0
style K fill:#f3e5f5Features
📡 Network Capture: Real-time request/response monitoring via Chrome DevTools Protocol
🔍 Smart Filtering: Content-type, URL patterns, and HTTP method filtering
⚡ MCP Context Safe: 512B previews + 50KB detail limits prevent token overflow
🔄 Dynamic Updates: Change filters without browser restart
🤝 Playwright Integration: Works seamlessly with Playwright MCP
Related MCP server: browser-mcp-server
Prerequisites
1. Install Playwright
This tool requires Playwright to be installed for browser automation:
npm install playwright
# Install browser binaries
npx playwright install chromium2. Install Network Monitor MCP
npm install playwright-min-network-mcpQuick Start
Basic MCP Configuration
Add to your .mcp.json:
{
"mcpServers": {
"network-monitor": {
"command": "npx",
"args": ["playwright-min-network-mcp"]
}
}
}Combined with Playwright MCP
{
"mcpServers": {
"network-monitor": {
"command": "npx",
"args": ["playwright-min-network-mcp"]
},
"playwright": {
"command": "npx",
"args": ["@playwright/mcp", "--cdp-endpoint", "http://localhost:9222"]
}
}
}Usage Examples
Basic Workflow
// 1. Start monitoring (launches visible Chrome browser)
{
"tool": "start_monitor"
}
// 2. Use Playwright MCP to interact with web pages
// The browser will automatically connect to the same CDP endpoint
// 3. Retrieve captured network requests (compact overview with 512B previews)
{
"tool": "get_recent_requests",
"arguments": {
"count": 50
}
}
// 4. Get detailed request info by UUID (limited to 50KB, headers optional)
{
"tool": "get_request_detail",
"arguments": {
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"include_headers": false
}
}
// 5. Stop monitoring when done
{
"tool": "stop_monitor"
}Filtering Examples
// Include everything (CSS, JS, images, etc.)
{"tool": "start_monitor", "arguments": {"filter": {"content_types": "all"}}}
// Custom content types
{"tool": "start_monitor", "arguments": {"filter": {"content_types": ["application/json", "text/css"]}}}
// Update filters without restarting browser
{"tool": "update_filter", "arguments": {"filter": {"content_types": ["application/json"], "url_include_patterns": ["api/"], "methods": ["POST"]}}}API Reference
Tools
start_monitor: Launch browser and start monitoring
update_filter: Change filters without browser restart
stop_monitor: Stop monitoring
get_recent_requests: Get compact overview with 512B previews
get_request_detail: Get full details by UUID (50KB limit)
Default Filtering
Captures API and form data by default:
application/json,application/x-www-form-urlencoded,multipart/form-data,text/plainExcludes CSS, JS, images (use
content_types: "all"to include)
Output Format
Compact overview (get_recent_requests) with 512B request/response body previews:
{
"total_captured": 156,
"showing": 30,
"requests": [
{
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"method": "POST",
"status": 200,
"url": "https://api.github.com/graphql",
"mimeType": "application/json",
"requestBodyPreview": "{\"query\": \"query GetRepository...",
"requestBodySize": 2048,
"responseBodyPreview": "{\"data\": {\"repository\": {...",
"responseBodySize": 4096,
"timestamp": 1641472496000,
"responseTimestamp": 1641472496123
}
]
}Full request details (via get_request_detail with UUID, limited to 50KB):
{
"id": "request-123",
"uuid": "123e4567-e89b-12d3-a456-426614174000",
"url": "https://api.github.com/graphql",
"method": "POST",
"headers": undefined,
"timestamp": 1641472496000,
"type": "request",
"body": "{\"query\": \"query GetRepository($owner: String!, $name: String!) { ... }\"}",
"response": {
"status": 200,
"headers": undefined,
"mimeType": "application/json",
"body": "{\"data\": {\"repository\": {...}}} \n... [truncated from 67647 bytes]"
},
"responseTimestamp": 1641472496123
}Requirements
Node.js ≥18.0.0
Playwright (
npm install playwright && npx playwright install chromium)
Development
# Clone and install
git clone https://github.com/bun913/playwright-min-network-mcp.git
cd playwright-min-network-mcp
npm install
# Build
npm run build
# Test
npm run test:ci
# Development mode
npm run dev
# Debug with MCP Inspector
npm run debugLicense
MIT License - see LICENSE file for details.
Available Tools
5 toolsget_recent_requestsA
Get recent network requests compact overview with 512B request/response body previews. Shows both request and response body previews separately.
Inputs: count, include_headers.
get_request_detailA
Get full details for a specific request by UUID. Returns complete request/response data with 50KB body limit and optional headers to prevent MCP context overflow.
Inputs: uuid (required), include_headers.
start_monitorA
Start network monitoring with a new browser instance. Default: captures API and form data only (JSON, form submissions). Use "all" to include static files.
Inputs: filter, cdp_port, max_buffer_size.
stop_monitorB
Stop network monitoring
Inputs: no named parameters.
update_filterA
Update network monitoring filter settings without restarting the browser. Preserves the current browsing session.
Inputs: filter (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a distinct role: start_monitor initiates, update_filter configures, get_recent_requests and get_request_detail serve different retrieval needs (compact vs. detailed by UUID), and stop_monitor terminates. Even the two retrieval tools are clearly separated by preview length and lookup method.
All tool names follow a consistent verb_noun pattern: start_monitor, update_filter, stop_monitor, get_request_detail, get_recent_requests. The verbs are clear and the naming is uniform.
Five tools is exactly the right scope for a network monitoring MCP. Each tool covers a necessary part of the workflow without redundancy or bloat.
The tool set covers the full monitor lifecycle: start, configure, query, and stop. Missing features like clearing logs or exporting data are minor and don't create dead ends for the primary use case.
Maintenance
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Screenshot, diff, audit and sitemap-capture any web page — 5 MCP tools for AI agents.
Capture, inspect & debug HTTPS traffic across iOS, Android, browsers & backends — 304 MCP tools.
One MCP for the Web. Easily search, crawl, navigate, and extract websites without getting blocked.…
Related MCP Servers
- AlicenseBqualityDmaintenance🚀 Active Fork of executeautomation/mcp-playwright This repository is an actively maintained continuation of the original MCP Playwright server: >👉 https://github.com/executeautomation/mcp-playwright A Model Context Protocol server that provides browser automation capabilities using Playwright.3213,875 npm1MIT
- AlicenseBqualityDmaintenanceA universal browser automation MCP server using Playwright, enabling programmatic control of Chrome with 63 tools for navigation, interaction, media control, and CDP-based diagnostics.6328 npm3MIT
- AlicenseNot gradedqualityCmaintenanceCaptures browser network traffic, analyzes API patterns, and exposes analysis tools through an MCP server for AI-assisted workflows.1MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive browser automation MCP server using Playwright, offering 50+ tools for page control, element interaction, content extraction, and more across multiple browser engines.35 npm1MIT