Real-time mobile and desktop browser remote control MCP server and DevTools CDP bridge for AI agents
pip install devdroid==1.0.1 Copy PIP instructions
devdroid/ ├── ext/ # Chrome Extension source │ ├── manifest.json # Manifest V3 configuration & permissions │ ├── background.js # Background service worker (CDP & webRequest engine) │ ├── command_runner.js # Command dispatcher & screenshot handler │ ├── webrequest_handler.js # Network event processor │ ├── popup.html # Mobile-responsive control popup │ ├── popup.js # Popup controller & local export history │ ├── popup.css # Popup styling │ ├── options.html # Full-tab settings page for configuring server URL │ └── options.js # Settings page logic │ ├── py/ # Python Backend & MCP implementation │ ├── server.py # FastAPI HTTP bridge between extension and agents │ ├── devdroid_mcp.py # FastMCP server with 125+ browser automation tools │ ├── storage.py # Timestamped capture file rotation │ ├── logger.py # Terminal logger styled with easygradients │ ├── client.py # HTTP client for CDP execution │ └── cdp_specs.py # CDP domain specifications │ ├── js/ # Node.js Backend & MCP implementation │ ├── server.js # Express HTTP bridge equivalent to server.py │ ├── index.js # Official @modelcontextprotocol/sdk MCP server │ ├── storage.js # Capture file rotation (Node.js) │ ├── client.js # HTTP client for CDP execution (Node.js) │ ├── tools_def.js # MCP tool schemas │ └── package.json # NPM package specification │ ├── captured/ # Auto-rotated JSONL capture dumps (created on first event) │ └── capture_YYYYMMDD_HHMMSS.jsonl │ ├── tests/ # Complete unit test suite (Node.js & Python) ├── pyproject.toml # PyPI package build configuration ├── devdroid.zip # Packaged extension ready to load └── .github/workflows/ └── release.yml # Automated release workflow (GitHub, NPM, PyPI) Architecture +-----------------------+ HTTP Poll & Post +------------------------+ | Browser Extension | | Bridge API Server | | (Desktop / Mobile) | /api/poll & /api/execute | (Python or Node.js) | +-----------------------+ +------------------------+ ^ | STDIO (MCP) v +------------------------+ | AI Coding Agent | | (Claude Code, Cursor, | | Windsurf, Cline, OMP) | +------------------------+ The Bridge Server runs on port 8765 (can be started directly by the AI agent via the start_api_server tool). The Extension connects to the Bridge Server URL (e.g. http://YOUR_IP:8765/api/log). Captured network and console events stream into rotating, timestamped JSONL files in captured/. When the AI agent calls any browser tool, the command is queued via POST /api/execute. The extension fetches the command from GET /api/poll, executes it in the browser tab via chrome.debugger or DOM APIs, and posts the output back to POST /api/execute_result. The MCP server returns the result directly to the AI agent. 1. Extension (ext/) Key Features Control Mode (CDP): Connects to the browser tab using the Chrome Debugger API to enable navigation, DOM querying, mouse clicks, key events, and screenshot capture. Active Tab Tracking: Listens to tab switches and immediately directs automation to the currently focused tab. Native Tab Creation: open_new_tab(url) creates a native tab directly using chrome.tabs.create. Loop Prevention: Automatically filters out its own network calls to the bridge server, preventing infinite logging loops. Memory Capping: Buffers up to 5,000 requests locally, preventing mobile browsers from running out of memory. Local JSONL Export: Exports recorded requests and console messages directly to a timestamped .jsonl file with one click, requiring no backend server. Full-Tab Settings (options.html): Mobile browser popups close when opening the on-screen keyboard. Tapping "Change API URL" opens a standard browser tab where you can type and paste server addresses without interruption. How to Install the Extension Open Chrome, Brave, Kiwi, or Lemur. Navigate to chrome://extensions and enable Developer Mode. Click Load unpacked and select the ext/ directory, or drag and drop devdroid.zip. Click the DevDroid icon, tap Change API URL, enter your server address, and save. Enable Control Mode (CDP) and click Start Capture. 2. Server Management from MCP Agents do not need to manually run an external server process beforehand. The MCP server bundles the HTTP bridge directly and can spin it up on demand:
Both servers provide identical endpoints on port 8765. Choose whichever runtime fits your environment.
captured/capture_YYYYMMDD_HHMMSS.jsonl Each line is a self-contained JSON object with timestamp, tabId, method, and parameters (request/response headers, body, cookies). A new file is automatically started each session or hour to prevent massive single files.
pip install devdroid devdroid-server Running the Node.js Server (Standalone) npm install -g devdroid devdroid-server 4. MCP Servers (js/index.js and py/devdroid_mcp.py) Both MCP servers expose 125+ tools over standard I/O (STDIO) for AI coding agents.
Compatible with Claude Code, Cursor, Windsurf, Cline, and Roo:
{ "mcpServers": { "devdroid": { "command": "npx", "args": ["-y", "devdroid"], "env": { "DEVDROID_SERVER_URL": "http://127.0.0.1:8765" } } } } Python Configuration { "mcpServers": { "devdroid": { "command": "devdroid", "env": { "DEVDROID_SERVER_URL": "http://127.0.0.1:8765" } } } } Contributing Contributions are welcome. Please open an issue or submit a pull request.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.




