Use Claude Chrome Extension from Cursor A developer created a repository that enables Cursor to use the Claude Chrome extension to analyze the currently selected browser tab and return the response to Cursor for code editing. The tool uses macOS Accessibility to read Claude's response from the browser, allowing Cursor to access authenticated sessions that are otherwise unavailable. It is designed for macOS with Chromium-based browsers and the Claude extension installed. I find Claude Chrome's extension to be much more powerful than Cursor's current browser integration. Especially if I need to debug something that requires being logged in to a system that uses SSO for example. This repository will allow you to use Claude's Chrome extension from Cursor against the currently selected tab in your already-open default browser. I created this so that I could take advantage of Claude's Chrome extension from Cursor: Cursor calls a local helper script, the script activates the existing default Chromium browser session, opens the Claude side panel, sends a prompt, reads Claude's final response through macOS Accessibility, and returns that response to Cursor so Cursor can continue coding or editing files. Open the relevant page in your default browser and make sure it is the currently selected tab. Then ask Cursor to use the Claude Chrome extension. Then prompt in Cursor: /use-claude-extension to analyze the the logs for the current run of the do something job. And make suggestions to improve the @do something.py job. The Cursor agent will then activate your system browser and in the currently open tab use the Claude Chrome extension. Cursor will wait for the response from the Claude Chrome extension using the script included in this repository. Cursor is excellent at editing code in a repository, but sometimes the information needed to make the right code change only exists in an authenticated browser session. This project lets a Cursor agent ask Claude's Chrome extension to inspect the currently selected browser tab , then brings Claude's answer back into Cursor so the agent can use that information to modify code. It intentionally does not use claude --chrome , Playwright, or a newly launched browser. It uses your existing default browser window, current tab, installed Claude Chrome extension, and logged-in browser session. - Resolves your macOS default browser. - Activates the existing browser window. - Uses the currently selected tab. - Opens the Claude Chrome extension side panel. - Sends a prompt from Cursor to Claude in the browser. - Waits for Claude's final response. - Reads the response through macOS Accessibility. - Returns the response to Cursor so Cursor can continue the coding task. . ├── README.md ├── claude-current-tab.zsh └── cursor/ ├── install.sh ├── bin/ │ └── claude-current-tab.zsh ├── rules/ │ └── use-claude-chrome-extension.mdc └── commands/ └── use-claude-extension.md claude-current-tab.zsh — the original helper script. cursor/bin/claude-current-tab.zsh — bundled helper script used by the installer. cursor/rules/use-claude-chrome-extension.mdc — Global Cursor rule that teaches Cursor when and how to use this workflow. cursor/commands/use-claude-extension.md — optional Cursor slash command, available as /use-claude-extension after installation. cursor/install.sh — one-step installer for the helper command, Global Cursor rule, and slash command. The Cursor rule and slash command both invoke this helper command after install: ~/.local/bin/claude-current-tab - macOS. - Cursor. - A Chromium-compatible default system browser, such as Brave Browser or Google Chrome. - The Claude Chrome extension installed in that default browser/profile. - The Claude extension shortcut for toggling the side panel must be available. In the tested setup, the extension command is toggle-side-panel and is bound to Cmd+E . - The browser tab you want Claude to analyze must already be the currently selected tab in the default browser. - The local helper script must be executable. Safari and Firefox cannot host the Claude Chrome extension, so they cannot be used for this workflow. From the root of this repository: ./cursor/install.sh The installer is safe to re-run. It installs: ~/.local/bin/claude-current-tab ~/.cursor/rules/use-claude-chrome-extension.mdc ~/.cursor/commands/use-claude-extension.md Then reload or restart Cursor so it picks up the new rule and command. Verify the helper can read your current default-browser tab: ~/.local/bin/claude-current-tab --print-context You should see JSON containing the default browser, bundle id, active tab URL, and active tab title. If you prefer not to use install.sh , install the pieces manually. From the root of this repository: chmod +x cursor/bin/claude-current-tab.zsh mkdir -p ~/.local/bin ln -sf "$ pwd /cursor/bin/claude-current-tab.zsh" ~/.local/bin/claude-current-tab Make sure ~/.local/bin is on your PATH . If needed, add this to your shell profile: export PATH="$HOME/.local/bin:$PATH" Verify: ~/.local/bin/claude-current-tab --print-context mkdir -p ~/.cursor/rules cp cursor/rules/use-claude-chrome-extension.mdc ~/.cursor/rules/ mkdir -p ~/.cursor/commands cp cursor/commands/use-claude-extension.md ~/.cursor/commands/ After installing the rule and command, reload or restart Cursor. The slash command should be available in Cursor chat as: /use-claude-extension Because this workflow controls the existing browser UI and reads the Claude side panel through macOS Accessibility, you must grant the required macOS permissions. Open: System Settings → Privacy & Security → Accessibility Enable Accessibility access for every app that may run the helper script: Cursor — required when a Cursor agent runs the workflow. Terminal , iTerm , Warp , or any other terminal app you use to run the helper manually.- Any separate local agent or harness app that may launch the script. macOS may also show Automation prompts asking whether Cursor or your terminal can control System Events and your browser. Allow those prompts. If you use debug screenshots with --debug-screenshots , also open: System Settings → Privacy & Security → Screen Recording Enable Screen Recording for the app running the helper, such as Cursor or Terminal. If the workflow opens the Claude side panel but fails to type into it, or if it sends a prompt but cannot read the response, the most likely cause is missing Accessibility permission for the app that launched the helper. Expected workflow: - You open the relevant page in the currently selected tab of your default browser. - Cursor sees your request to use the Claude Chrome extension. - Cursor runs: ~/.local/bin/claude-current-tab --response-only "