H/Ai Browser
Share VS Code's built-in browser with Claude Code, Copilot, Codex and other agents
- Pricing
- Free
- Platforms
- vscode, CLI
- Runs
- Locally
- Version
- 0.0.13
- Listing updated
- 3 days ago
About H/Ai Browser
H/Ai Browser is a free MCP server for browser automation. It runs locally on your machine and is started by your AI client.
H/Ai Browser is a VS Code extension with an MCP server bundled inside it, so an agent can drive the same integrated browser tab you are looking at. Its standout feature is click-to-source: pick an element on the page and jump to the JSX line that rendered it. That needs a small dev plugin, hai-browser-vite or hai-browser-next, added to your framework config.
It needs VS Code 1.119 or later, VSCodium or Windsurf; Cursor and Antigravity are not yet supported. The workspace must be trusted. Claude Code is connected from a prompt or the H/Ai: Connect Claude Code command, GitHub Copilot in VS Code picks it up with no setup, and other agents use a copy-setup command.
The agent API binds to 127.0.0.1 with a per-window token, and browser_evaluate stays off unless you turn on haiBrowser.allowEvaluate. The marketplace lists it as free and in preview.
Install
Run in a terminal
claude mcp add hai-browser -- npx -y hai-browser-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"hai-browser": {
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"hai-browser": {
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"hai-browser": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"hai-browser": {
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"hai-browser": {
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Tools this server provides (1)
Taken from the project documentation; the running server may differ.
- browser_evaluate
- Runs JavaScript in the page; off unless haiBrowser.allowEvaluate is enabled.
What it does
- Shared browser tab
- Agents use VS Code's integrated browser.
- Click-to-source
- Jump from a page element to its JSX line.
- Local-only API
- Binds to 127.0.0.1 with a per-window token.
- Gated evaluate
- browser_evaluate is off by default.
- Multiple agents
- Claude Code, Copilot, Codex, Gemini CLI and Cline.
Good for
- Let an agent test a page you are building
- Find the component behind a UI element
- Debug front-end issues alongside an agent
- Share one browser tab between you and an agent
Pricing
Free
Free VS Code extension (preview)
Prices change. Check marketplace.visualstudio.com before you buy.
H/Ai Browser FAQ
Which editors work?
VS Code 1.119+, VSCodium or Windsurf; Cursor and Antigravity are not yet supported.
Is it free?
The marketplace page shows it as free.
Does it run remotely?
No, everything runs locally.
How do I enable click-to-source?
Install hai-browser-vite or hai-browser-next and add it to your config.
Is H/Ai Browser free?
Yes. H/Ai Browser is free to use.
How do I add H/Ai Browser to Claude Code?
Run this command in your terminal: claude mcp add hai-browser -- npx -y hai-browser-mcp
What are the best alternatives to H/Ai Browser?
The closest alternatives to H/Ai Browser are REA, Browser Use, Scrapling MCP Server, Codebase Memory and GitHub.
Alternatives to H/Ai Browser

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Browser Use
MCP serverBrowser agents and cloud browsers for AI, with an MCP server for web tasks
- 7 tools
- Remote
- Freemium
- 121K GitHub stars
- Browser automation

Scrapling MCP Server
MCP serverMCP server for AI clients to scrape sites with HTTP and stealth browser sessions
Runs locally- 17 tools
- Open source
- 104K GitHub stars
- Web search and scraping

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools