Back to Home
serkan-ozal icon

browser-devtools-mcp

Verified Safe

by serkan-ozal

Overview

This MCP server provides AI coding assistants with comprehensive browser automation and debugging capabilities using Playwright, enabling execution-level and visual debugging for web pages.

Installation

Run Command
node dist/index.js --transport streamable-http --port 3000

Environment Variables

  • PORT
  • SESSION_IDLE_SECONDS
  • SESSION_IDLE_CHECK_SECONDS
  • SESSION_CLOSE_ON_SOCKET_CLOSE
  • CONSOLE_MESSAGES_BUFFER_SIZE
  • HTTP_REQUESTS_BUFFER_SIZE
  • BROWSER_HEADLESS_ENABLE
  • BROWSER_PERSISTENT_ENABLE
  • BROWSER_PERSISTENT_USER_DATA_DIR
  • BROWSER_USE_INSTALLED_ON_SYSTEM
  • BROWSER_EXECUTABLE_PATH
  • OTEL_ENABLE
  • OTEL_SERVICE_NAME
  • OTEL_SERVICE_VERSION
  • OTEL_ASSETS_DIR
  • OTEL_INSTRUMENTATION_USER_INTERACTION_EVENTS
  • OTEL_EXPORTER_TYPE
  • OTEL_EXPORTER_HTTP_URL
  • OTEL_EXPORTER_HTTP_HEADERS
  • AWS_REGION
  • AWS_PROFILE
  • AMAZON_BEDROCK_ENABLE
  • AMAZON_BEDROCK_IMAGE_EMBED_MODEL_ID
  • AMAZON_BEDROCK_TEXT_EMBED_MODEL_ID
  • AMAZON_BEDROCK_VISION_MODEL_ID
  • FIGMA_ACCESS_TOKEN
  • FIGMA_API_BASE_URL

Security Notes

The `run_js-in-sandbox` tool utilizes Node.js `vm.createContext` for code execution, which offers context isolation but is explicitly stated in the documentation as 'NOT a security boundary' and 'intended for trusted automation logic'. It mitigates risks by carefully whitelisting safe built-ins and explicitly blocking dangerous Node.js APIs like `require`, `process`, and `fs`. The `run_js-in-browser` tool executes arbitrary JavaScript within the browser page context using Playwright's `page.evaluate()`, which is an inherent part of browser automation and operates with the permissions of the loaded web page. External API integrations, such as with Figma, rely on sensitive access tokens, which are configured via environment variables to avoid hardcoding.

Similar Servers

Stats

Interest Score42
Security Score8
Cost ClassHigh
Avg Tokens5000
Stars14
Forks2
Last Update2026-01-19

Tags

Browser AutomationWeb DebuggingPlaywrightAI AssistantWeb Testing