Overview

PATAPIM embeds browser panels using Electron’s WebContentsView API with Chrome DevTools Protocol (CDP). An MCP server lets Claude Code automate browser interactions.

MCP Server

Stdio-based MCP server auto-registered in ~/.claude.json on startup. Also registers for Codex and Gemini CLI.

Available Tools

ToolDescription
browser_navigateNavigate to URL
browser_clickClick element by selector or text
browser_fillFill input fields
browser_screenshotCapture screenshot
browser_scrollScroll page
browser_waitWait for elements
browser_press_keySend key presses
browser_evaluateExecute JavaScript

Device Emulation

Emulate devices: iPhone, iPad, Android, desktop. Uses Chromium’s native device emulation.

Limits

  • Maximum 10 concurrent MCP browsers with idle cleanup
  • Authentication via X-PATAPIM-TOKEN header
  • Downloads saved to ~/.patapim/downloads/

Security

Sandboxed web preferences with contextIsolation enabled and nodeIntegration disabled. Popup handling for OAuth flows (Google, Firebase).