How to connect an AI agent to your logged-in Chrome on macOS without Full Disk Access

My AI agent needed to work inside my logged-in Chrome on macOS. It could not connect, and its own suggestion was to give it Full Disk Access.

I said no. With Full Disk Access an agent can read almost everything on the Mac, including Mail and Messages.

Why can't chrome-devtools-mcp connect to Chrome on macOS?

Two recent security changes collide here:

  1. Chrome's new remote debugging toggle (chrome://inspect/#remote-debugging) no longer serves the old HTTP endpoint. A request to http://127.0.0.1:9222/json/version now returns 404. Instead, Chrome only opens a raw WebSocket address with a UUID in it.
  2. To find that UUID, chrome-devtools-mcp tries to read a local file called DevToolsActivePortinside Chrome's Application Support folder. macOS blocks other apps from reading that folder with "Operation not permitted".

How do you get the WebSocket address without Full Disk Access?

The workaround takes 15 seconds and needs no Full Disk Access.

macOS blocks the terminal from reading Chrome's folder, but Chrome itself can still read its own files. So you open that file directly in a Chrome tab:

file:///Users/<you>/Library/Application%20Support/Google/Chrome/DevToolsActivePort
Chrome tab with the DevToolsActivePort file open: port 9222 on the first line, /devtools/browser/ and a hidden UUID on the second

Chrome prints two lines: the port (9222) and /devtools/browser/<UUID>. Pass the full address into your MCP config:

--wsEndpoint=ws://127.0.0.1:9222/devtools/browser/<UUID>

The UUID changes when you fully restart Chrome, not when you close tabs.

What is the security trade-off?

It is still a real security trade-off. The agent now drives a browser where I am logged in everywhere. I would much rather trust it with one browser window than with my entire disk, but you still have to watch what it clicks.

Why does a marketer care?

Why I care about this as a marketer: most of our daily tools live behind a login, from LinkedIn to ad accounts. An agent is only useful in marketing if it can actually work inside the browser you already use.