infy-mcp-playwright
v1.1.15
Published
MCP Playwright server for web app testing automation via HTTP API
Maintainers
Readme
infy-mcp-playwright
MCP Playwright server for web app testing automation. Exposes an HTTP API to run Playwright tests (navigation, clicks, link checks, screenshots).
Install
npm install infy-mcp-playwrightOr install globally:
npm install -g infy-mcp-playwrightStart the server
Local project:
npm startGlobal CLI:
infy-mcp-playwrightThe server prints:
MCP Server Running on Port 3000Set PORT to change the listen port (default: 3000). Set HEADLESS=false to open a visible browser window.
Run a test request
curl -X POST http://localhost:3000/run-test \
-H "Content-Type: application/json" \
-d '{
"url": "https://perfectqaservices.com",
"checkLinks": {
"selector": "a"
}
}'Request body options
| Field | Description |
|-------|-------------|
| url | Page URL to open (required) |
| type | { selector, value } — fill an input |
| press | Keyboard key (e.g. "Enter") |
| click | { selector } — click an element |
| checkLinks | { selector } — visit each matching link and report status |
Programmatic API
const { runTest } = require('infy-mcp-playwright');
const result = await runTest({
url: 'https://example.com',
checkLinks: { selector: 'a' }
});Publish to npm
- Log in:
npm login - Dry-run:
npm pack --dry-run - Publish:
npm publish
License
ISC
