1. Node.js (version 18 or higher)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
2. Install project dependencies
cd /home/ubuntu/tools/playwright-mcp-mod
npm install
3. Install Playwright browsers and system dependencies
npx playwright install --with-deps
This installs Chromium, Firefox, WebKit and all required system libraries (fonts, graphics libs, etc.).
Optional - for Docker tests:
sudo apt-get install -y docker.io
sudo usermod -aG docker $USER
# Log out and back in for group change to take effect
Verify installation:
npm test