MCP Server Policy
PLAYWRIGHT MCP POLICY
Enforce policies on every tool call to the Playwright MCP Server. 25 tools listed, categorised, and ready for rules.
GET STARTED
Download this policy scaffold and add your rules. Intercept enforces them on every tool call before it reaches Playwright.
# Download policy scaffold
curl -o playwright.yaml https://raw.githubusercontent.com/policylayer/intercept/main/policies/playwright.yaml
# Run with Intercept
intercept --policy playwright.yaml -- npx -y @microsoft/playwright-mcp Server documentation: https://github.com/microsoft/playwright-mcp
OTHER TOOLS
25POLICY YAML
This scaffold lists every tool with empty rules. Add conditions — rate limits, argument validation, deny rules — then deploy with Intercept.
version: "1"
description: "Policy for microsoft/playwright-mcp"
default: "allow"
tools:
browser_click:
rules: []
browser_close:
rules: []
browser_console_messages:
rules: []
browser_drag:
rules: []
browser_file_upload:
rules: []
browser_generate_playwright_test:
rules: []
browser_handle_dialog:
rules: []
browser_hover:
rules: []
browser_install:
rules: []
browser_navigate:
rules: []
browser_navigate_back:
rules: []
browser_navigate_forward:
rules: []
browser_network_requests:
rules: []
browser_pdf_save:
rules: []
browser_press_key:
rules: []
browser_resize:
rules: []
browser_select_option:
rules: []
browser_snapshot:
rules: []
browser_tab_close:
rules: []
browser_tab_list:
rules: []
browser_tab_new:
rules: []
browser_tab_select:
rules: []
browser_take_screenshot:
rules: []
browser_type:
rules: []
browser_wait_for:
rules: [] RELATED POLICIES
FREQUENTLY ASKED QUESTIONS
What tools does the Playwright MCP server expose?
The Playwright MCP Server exposes 25 tools across 1 categories: Other. Each tool can be individually controlled with Intercept policies.
How do I enforce policies on Playwright?
Download the policy scaffold, add rules (rate limits, argument validation, deny rules), then run Intercept as a proxy in front of the Playwright MCP server. Every tool call is evaluated against your YAML policy before execution.
Is the Playwright policy free to use?
Yes. All Intercept policies are open source under the Apache 2.0 licence. Download, modify, and deploy without restrictions.
ENFORCE POLICIES ON PLAYWRIGHT
Open source. One binary. Zero dependencies.