Description
Giving claude code access to the browser.
Example location – anything outside ~/.config/BraveSoftware is fine
mkdir -p ~/.local/share/claude-code/brave-persistent
To start from your current cookies, copy once and never touch the source again:
cp -a ~/.config/BraveSoftware/Brave-Browser/Default/. ~/.local/share/claude-code/brave-persistent/
- (On most Linux distros that
~/.config/BraveSoftware/Brave-Browser
path is Brave’s default profile home.)
- (On most Linux distros that
Remove the current entry
claude mcp remove playwright-brave
Re-add with --user-data-dir pointing at the new folder
1 | claude mcp add-json playwright-brave \ |
Test it out:
1 | claude --allowedTools mcp__playwright-brave__browser_navigate -p "can you open a browser using playwright-brave mcp and close any existing tabs" |