Skip to main content
Glama

firefox-devtools-mcp

Dockerfile1.28 kB
# Build stage FROM node:22-bookworm AS builder # Install build dependencies RUN apt-get update && \ apt-get install -y python3 make g++ && \ rm -rf /var/lib/apt/lists/* WORKDIR /app # Copy package files COPY package*.json ./ # Install dependencies RUN npm ci # Copy source code COPY . . # Build the project RUN npm run build # Production stage FROM node:22-bookworm # Install Firefox ESR for RDP debugging RUN apt-get update && \ apt-get install -y firefox-esr && \ rm -rf /var/lib/apt/lists/* WORKDIR /app # Copy package files COPY package*.json ./ # Install production dependencies only RUN npm ci --only=production && npm cache clean --force # Copy built files from builder stage COPY --from=builder /app/dist ./dist # Create non-root user RUN groupadd -g 1001 -r nodejs && \ useradd -r -g nodejs -u 1001 nodejs # Change ownership of the app directory RUN chown -R nodejs:nodejs /app USER nodejs # Set environment variables ENV NODE_ENV=production \ RDP_HOST=127.0.0.1 \ RDP_PORT=6000 \ FIREFOX_HEADLESS=true \ AUTO_LAUNCH_FIREFOX=false \ VIEWPORT=1280x720 # MCP server runs on stdio (no port exposure needed) # If Firefox RDP is needed from outside: EXPOSE 6000 # Start the MCP server CMD ["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/freema/firefox-devtools-mcp'

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