Back to Home
null-runner icon

chrome-mcp-docker

Verified Safe

by null-runner

Overview

Provides a persistent, stable Chrome DevTools environment for AI coding assistants to perform UI debugging and web interactions.

Installation

Run Command
docker run --rm -i --network host -e CHROME_HOST=localhost -e CHROME_PORT=9222 nullrunner/chrome-mcp-docker:latest

Environment Variables

  • CHROME_HOST
  • CHROME_PORT

Security Notes

The server runs inside a Docker container and connects to a separate Chrome container. It uses `puppeteer-core` to interact with Chrome via the DevTools Protocol (CDP). The `Host` header spoofing (setting 'Host: localhost' when connecting to Chrome) is a necessary workaround for Docker's networking on `host.docker.internal` and is not a general security vulnerability. The `page.evaluate()` function is used internally by specific tools (e.g., `get_computed_styles`, `scroll`) for controlled operations, not exposed as a generic `eval` tool, limiting direct arbitrary code execution. Chrome runs with `--no-sandbox` in Docker, which is common but reduces internal browser isolation if a Chrome vulnerability were exploited. Overall, the design prioritizes isolated and controlled browser interaction.

Similar Servers

Stats

Interest Score35
Security Score9
Cost ClassHigh
Avg Tokens30000
Stars1
Forks0
Last Update2025-12-10

Tags

ChromeDevToolsMCPDockerAI Agent