H/Ai Browser MCP server
Commit Nov 13, 2026Allows AI agents to control the VS Code integrated browser through actions like clicking, typing, and inspecting network logs.
Also known as SnapBlock/hai-browser, hai-browser, hai-browser-mcp
- Stars
- 1
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- 0.0.13
- Last commit
- Nov 13, 2026
- License
- MIT
What is H/Ai Browser MCP?
H/Ai Browser allows AI agents to control the VS Code integrated browser through actions like clicking, typing, and inspecting network logs.
Summary generated from the project's README
About H/Ai Browser MCP server
H/Ai Browser provides a bridge between AI agents and the integrated browser within VS Code. It enables clients like Claude Code, Gemini CLI, Codex CLI, and Cline to interact directly with shared browser tabs. Users can perform complex web interactions such as clicking elements, typing text, filling out forms, and managing multiple tabs. The server also provides technical visibility by allowing agents to inspect console logs, network logs, and specific HTML elements.
To use this server, you must have the H/Ai Browser extension active in your VS Code environment. While the extension offers automated setup commands like H/Ai: Connect Claude Code, developers can also manually configure their clients using npx. This setup allows an AI to see snapshots and screenshots of the current page state to better understand the visual context of the web application being tested or navigated.
What you can do with it
- 1Automated Web NavigationAn AI agent can navigate through different web pages by managing browser tabs and clicking links.
- 2Web Application DebuggingDevelopers can ask an AI to analyze network traffic and console errors to find bugs in a web app.
- 3Form Interaction TestingYou can instruct an AI client to fill out web forms and submit data to test user flows.
Written from the project's README. Every use case is checked against a quote from it.
How to install H/Ai Browser MCP
Formats verified 10 Nov 2026Add to CursorAdd to GooseInstall H/Ai Browser MCP in Claude Code
$ claude mcp add hai-browser -- npx -y hai-browser-mcpInstall H/Ai Browser MCP in Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"hai-browser": {
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Install H/Ai Browser MCP in VS Code
.vscode/mcp.json
{
"servers": {
"hai-browser": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Install H/Ai Browser MCP in VS Code CLI
$ code --add-mcp '{"name":"hai-browser","type":"stdio","command":"npx","args":["-y","hai-browser-mcp"]}'Install H/Ai Browser MCP in Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"hai-browser": {
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Install H/Ai Browser MCP in Codex
$ codex mcp add hai-browser -- npx -y hai-browser-mcpInstall H/Ai Browser MCP in Codex config.toml
~/.codex/config.toml
[mcp_servers.hai-browser] command = "npx" args = ["-y", "hai-browser-mcp"]
Install H/Ai Browser MCP in Gemini CLI
$ gemini mcp add -s user hai-browser npx -- -y hai-browser-mcpInstall H/Ai Browser MCP in Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"hai-browser": {
"command": "npx",
"args": [
"-y",
"hai-browser-mcp"
]
}
}
}Automated checks
Ran Nov 15, 2026Full report →Not verified yet. A server needs a score of 80, no serious finding, and enough data for us to check. How checks work · What to fix for more points
- Source repository linked and reachablesnapblock/hai-browser is public and reachablegithub.com/snapblock/hai-browser ↗Pass
- Package names this repository as its sourcehai-browser-mcp names snapblock/hai-browser as sourcenpmjs.com/package/hai-browser-mcp ↗Pass
- Build provenance (Sigstore attestation)Sigstore attestation for hai-browser-mcpnpmjs.com/package/hai-browser-mcp/v/0.0.13#provenance ↗Pass
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-11-13github.com/snapblock/hai-browser ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packagehai-browser-mcp looks like @glittering0717/ai-browserFinding
- No critical advisory in the package or its dependenciesthe package checked; no critical advisoryosv.dev ↗Pass
- No hidden instructions to the model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNot checked
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubhai-browser-mcp
MCP server for H/Ai Browser. It lets Claude Code, Codex CLI, Gemini CLI, Cline and other MCP clients drive the browser tab you share from VS Code's Integrated Browser: snapshots, clicks, typing, forms, tabs, screenshots, console and network logs, and the element you picked.
It needs the H/Ai Browser extension running in VS Code. The extension already bundles this server and sets it up for you (H/Ai: Connect Claude Code / H/Ai: Connect Other Agents). Use this package if you prefer to configure your client yourself:
claude mcp add --scope user hai-browser -- npx -y hai-browser-mcp
{ "mcpServers": { "hai-browser": { "command": "npx", "args": ["-y", "hai-browser-mcp"] } } }
See https://github.com/SnapBlock/hai-browser for details.
H/Ai Browser MCP questions
How do I add H/Ai Browser MCP to Claude Code?
Run claude mcp add hai-browser -- npx -y hai-browser-mcp in your terminal. Add --scope user to make it available in every project.
How do I add H/Ai Browser MCP to Cursor?
Open ~/.cursor/mcp.json and add the server under mcpServers, using the Cursor config shown in the install section above.
What do I need to run H/Ai Browser?
You must have the H/Ai Browser extension running in VS Code.
How can I set up the server automatically?
The VS Code extension bundles the server and provides options like 'H/Ai: Connect Claude Code' to set it up for you.
What actions can an AI agent perform in the browser?
AI agents can take snapshots, perform clicks, type, fill forms, manage tabs, take screenshots, and access console and network logs.