Pentest MCP Server

MCP server for browser automation using Playwright

Local serverstdio

What is the Pentest MCP server?

Pentest MCP server exists for a simple reason — assistants are far more useful when they can act on Pentest directly instead of describing what you should do. MCP server for browser automation using Playwright.

What you get

The installation process will automatically add the following configuration to your Claude config file:

  • Full browser xss, sql vulnerability automatic detection
  • Screenshots of the entire page or specific elements
  • Comprehensive network interaction (navigation, clicks, form filling)
  • Console log monitoring
  • JavaScript execution in the browser context

What the assistant can call

Once Pentest is connected, these are the calls the assistant has available:

  • Installing — The Installing tool exposed by this server
  • Tools — The Tools tool exposed by this server
  • broser_url_reflected_xss — Test whether the URL has an XSS vulnerability javascript { "url": "https://test.com", "paramName":"text" }
  • browser_url_sql_injection — The browser_url_sql_injection tool exposed by this server
  • browser_navigate — Navigate to any URL in the browser javascript { "url": "https://stealthbrowser.cloud" }
  • browser_screenshot — Capture screenshots of the entire page or specific elements javascript { "name": "screenshot-name", // required "selector": "#element-id", //
  • browser_click — Click elements on the page using CSS selector javascript { "selector": "#button-id" }
  • browser_click_text — Click elements on the page by their text content javascript { "text": "Click me" }
  • browser_hover — Hover over elements on the page using CSS selector javascript { "selector": "#menu-item" }
  • browser_hover_text — Hover over elements on the page by their text content javascript { "text": "Hover me" }
  • browser_fill — Fill out input fields javascript { "selector": "#input-field", "value": "Hello World" }
  • browser_select — Select an option in a SELECT element using CSS selector javascript { "selector": "#dropdown", "value": "option-value" }

Setting it up

The server ships on npm as playwright, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Choosing this one

This sits in the browser automation group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Pentest's toolset — Installing, Tools, broser_url_reflected_xss and 11 more — is a fair guide to whether it matches your workflow. It is maintained by 9olidity; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Pentest's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Pentest.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the pentest mcp server does with a few real requests.

Available tools

ToolWhat it does
InstallingThe Installing tool exposed by this server.
ToolsThe Tools tool exposed by this server.
broser_url_reflected_xssTest whether the URL has an XSS vulnerability javascript { "url": "https://test.com", "paramName":"text" }
browser_url_sql_injectionThe browser_url_sql_injection tool exposed by this server.
browser_navigateNavigate to any URL in the browser javascript { "url": "https://stealthbrowser.cloud" }
browser_screenshotCapture screenshots of the entire page or specific elements javascript { "name": "screenshot-name", // required "selector": "#element-id", // optional "fullPage": true // optional, default: false }
browser_clickClick elements on the page using CSS selector javascript { "selector": "#button-id" }
browser_click_textClick elements on the page by their text content javascript { "text": "Click me" }
browser_hoverHover over elements on the page using CSS selector javascript { "selector": "#menu-item" }
browser_hover_textHover over elements on the page by their text content javascript { "text": "Hover me" }
browser_fillFill out input fields javascript { "selector": "#input-field", "value": "Hello World" }
browser_selectSelect an option in a SELECT element using CSS selector javascript { "selector": "#dropdown", "value": "option-value" }
browser_select_textSelect an option in a SELECT element by its text content javascript { "text": "Choose me", "value": "option-value" }
browser_evaluateExecute JavaScript in the browser console javascript { "script": "document.title" }

How to install the Pentest MCP server

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "-y",
        "/Users/...../dist/index.js"
      ],
      "disabled": false,
      "autoApprove": []
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Pentest to Installing.
  • Use Pentest to Tools.
  • Use Pentest to broser url reflected xss.

Frequently asked questions

It connects Pentest to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (Installing, Tools, broser_url_reflected_xss, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Pentest directly.