Claude Code browser MCP

Give Claude Code a browser that stays open.

Local MCP endpoint

http://127.0.0.1:47812/mcp

Start Hronaut once and leave it running. Claude Code can restart or switch repositories without owning the browser. The endpoint listens on loopback; it is not a hosted browser.

Why Hronaut

The browser belongs to you, not the session.

Claude Code can connect to many kinds of MCP servers. Hronaut fits when the browser itself should be a separate app with durable local state, human controls and isolated workspaces. See how task, MCP transport, and browser lifetimes differ →

  • Restart Claude Code, keep the session. Hronaut owns Chromium and its profile. Closing a Claude Code session does not intentionally close the browser or discard its local state.
  • See, pause and take over. Watch each action, pause MCP before a sensitive step, sign in yourself, then let Claude Code continue in the same session.
  • Keep project accounts separate. Each named workspace has its own cookies and site storage. Use a clean workspace per task; reopening one needs its private resume key.
  • Browser data stays on this device. Hronaut is a local Electron/Chromium app with a loopback endpoint. It is not a hosted browser, proxy, CAPTCHA service or multi-browser CI runner.

Need something else? For repeatable, throwaway tests, use a browser owned by your test runner. To inspect the tabs already open in your everyday Chrome, use a tool built to attach to that profile. Compare browser tools →

Step 1 · Connect

Connect Claude Code.

Start Hronaut, then install the plugin. Without the plugin, let Hronaut Home add the server, or run its command from any folder. Either way, Hronaut is available in every repository on this computer.

Plugin · recommended

Install the Hronaut plugin

/plugin marketplace add hronaut/hronaut-claude-plugin
/plugin install hronaut@hronaut

Run both inside Claude Code. On Claude Code 2.1.275 or later, /plugin install hronaut --marketplace hronaut/hronaut-claude-plugin does both in one step. /mcp then shows Hronaut as connected.

The plugin adds Hronaut's MCP server and the Hronaut skill. Claude Code starts the plugin's small open-source bridge, @hronaut/mcp, with npx, so it needs Node.js 20 or later. The bridge reads the owner token from the mcp-token file in Hronaut's profile and talks only to Hronaut on this computer, so there is nothing to paste and the token is never written to Claude Code's settings or shown to the agent. Changed Hronaut's MCP port? Set HRONAUT_MCP_PORT for Claude Code as you do for Hronaut. Added Hronaut with claude mcp add before? Claude Code keeps using that entry instead of the plugin's, so remove it with claude mcp remove hronaut --scope user. Plugin source ↗

Without the plugin

Add Hronaut from Hronaut Home

When Claude Code is on this computer, Set up Claude Code on Hronaut Home adds the server to ~/.claude.json after you confirm, with the profile's token in an Authorization header. Or copy the Claude Code command from Hronaut Home: it reads the owner-only token file and adds the same header, so the token never appears on this page, in chat or in source control.

export HRONAUT_MCP_TOKEN="$(cat '/path/from-hronaut-home')"
claude mcp add --transport http --scope user --header "Authorization: Bearer $HRONAUT_MCP_TOKEN" hronaut http://127.0.0.1:47812/mcp

If the plugin is installed too, Claude Code uses this server instead of the plugin's. Anthropic documents HTTP as the transport for URL-based MCP servers. Official Claude Code MCP documentation ↗

Turned authentication off?

The plugin and Hronaut Home's setup work either way. To add the server by hand to a profile whose Require MCP authentication is off, such as one from before Hronaut 3.5 that kept that setting, this command is enough. While authentication is on, Hronaut rejects a connection without the token.

Authentication off

Add Hronaut without a token

claude mcp add --transport http --scope user hronaut http://127.0.0.1:47812/mcp

Step 2 · Verify

Check that it works.

Use a clean workspace for this check, before Claude Code goes near a signed-in page.

  1. 1

    Claude Code sees Hronaut

    Inside Claude Code, the /mcp panel should show Hronaut connected, with its tools. If you used claude mcp add, claude mcp list and claude mcp get hronaut also show the server with HTTP and the endpoint shown on Hronaut Home.

  2. 2

    Hronaut sees Claude Code

    Open Hronaut Home. Claude Code should appear under Connections.

  3. 3

    Run a first browser task

    Ask: “Create a Hronaut workspace named first-check, open https://example.com inside it, and tell me the page title and workspace ID. Start with clean scratch storage.”

    Expected result: a visible first-check workspace opens Example Domain, and Claude Code reports its workspace ID.

Security

Protect your signed-in sessions.

Trust the server, not the page. Anthropic recommends connecting only MCP servers you trust, because content fetched through tools can carry prompt-injection risk. Hronaut is local and source-available, but websites can still contain malicious instructions. Keep sensitive work in a dedicated workspace and review surprising requests.

Keep authentication on. A new Hronaut profile requires the owner token for MCP, so other processes running as your user cannot drive the browser. A profile from before Hronaut 3.5 keeps the setting it saved: if Require MCP authentication is off in Settings → MCP security, turn it on before you use valuable sign-ins. The plugin and the setup from Hronaut Home pass the token for you.

Take over for human-only steps. Use Hronaut's pause and interaction-lock controls before you enter passwords, security keys, payment details or other human-only information.

Keep going

Next steps.

Give every durable browser job its own named workspace. Then learn how to hand off a login safely or run several agents side by side.

Sources

Hronaut is an independent project and is not affiliated with or endorsed by Anthropic.