Skip to main content
Glama

Patchright Lite MCP Server

by dylangroos
Dockerfile966 B
FROM node:20-slim WORKDIR /app # Install Python and browser dependencies RUN apt-get update && apt-get install -y \ python3 \ python3-pip \ python3-venv \ chromium \ libnss3 \ libatk1.0-0 \ libatk-bridge2.0-0 \ libcups2 \ libdrm2 \ libxkbcommon0 \ libxcomposite1 \ libxdamage1 \ libxfixes3 \ libxrandr2 \ libgbm1 \ libasound2 \ && rm -rf /var/lib/apt/lists/* # Copy Node.js files and install dependencies COPY package*.json ./ RUN npm ci # Create temp directory for screenshots RUN mkdir -p /tmp/patchright-mcp # Install patchright and ensure Chromium is installed RUN npm install -g patchright RUN npx patchright install chromium # Copy the rest of the application COPY . . # Build TypeScript RUN npm run build # Set environment variable (for production use set this via -e flag) ENV NODE_ENV=production # Run the MCP server when the container starts ENTRYPOINT ["node", "dist/index.js"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dylangroos/patchright-mcp-lite'

If you have feedback or need assistance with the MCP directory API, please join our Discord server