Ai Browser
A visible Electron browser that agents drive through a semantic tree, not screenshots
Ai Browser is an MCP server for browser automation. It runs locally on your machine and is started by your AI client.
- Platforms
- macOS, Windows, CLI
- Runs
- Locally
- What it can do
- Read-only
- Version
- 2.5.7
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add ai-browser -- npx -y @glittering0717/ai-browserAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"ai-browser": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add ai-browser -- npx -y @glittering0717/ai-browserOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.ai-browser]
command = "npx"
args = ["-y", "@glittering0717/ai-browser"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"ai-browser": {
"command": "npx",
"args": [
"-y",
"@glittering0717/ai-browser"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "ai-browser": { "command": "npx", "args": [ "-y", "@glittering0717/ai-browser" ] } } }Or run: gemini mcp add -s user ai-browser npx -- -y @glittering0717/ai-browser
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "ai-browser": { "command": "npx", "args": [ "-y", "@glittering0717/ai-browser" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "ai-browser": { "command": "npx", "args": [ "-y", "@glittering0717/ai-browser" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "ai-browser": { "command": "npx", "args": [ "-y", "@glittering0717/ai-browser" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "ai-browser": { "command": "npx", "args": [ "-y", "@glittering0717/ai-browser" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "ai-browser": { "command": "npx", "args": [ "-y", "@glittering0717/ai-browser" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "ai-browser": { "command": "npx", "args": [ "-y", "@glittering0717/ai-browser" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "ai-browser": { "command": "npx", "args": [ "-y", "@glittering0717/ai-browser" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Ai Browser
AI Browser is an Electron app that opens a real, visible window and exposes its tabs to an agent. Instead of screenshots or OCR, the agent reads each page as a typed tree of roles, labels, values, states and actions, then clicks or types by element id. Because the window stays interactive, a person can take the mouse at any time, and the agent notices the change on its next read. A screenshot tool exists only as a diagnostic for overlays or canvas content.
It offers two equivalent interfaces: an MCP server with 17 browse tools, and a raw WebSocket JSON-RPC API on ws://localhost:9223. The README's security note says the socket binds to loopback and rejects any handshake carrying an Origin header, so pages inside the browser cannot drive it, but there is no token, so any local process running as you can connect. The OS sandbox is off by default so the app does not quit silently in restricted shells.
Prebuilt packages exist for macOS arm64 and Windows x64, both unsigned, and Linux has none yet. The npm route needs Node 18 or newer and a desktop session.
Tools this server provides (1)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, all 1 tool only read data.
From the server's own tool labels and tool names; not verified by us.
- browse_screenshotName suggests: reads
- Takes a diagnostic screenshot for cases the semantic tree cannot see.
What it does
- Semantic accessibility tree
- Reads pages as structured roles and actions, with no screenshots in the read path.
- Visible window
- A normal Electron window a human can use alongside the agent.
- 17 MCP tools
- Navigate, read and act on tabs through browse tools.
- WebSocket JSON-RPC
- A second interface for scripts on localhost:9223.
- Loopback-only control
- Rejects handshakes that carry an Origin header.
- Reuses a running app
- The MCP server attaches to an already running browser instead of starting another.
Good for
- Let an agent browse and fill forms while you watch
- Hand control to a person mid-task and continue on their page
- Read noisy pages as a compact structured tree
- Automate logged-in sites using a persistent profile
- Script browser steps over a local WebSocket
Ai Browser FAQ
Is Ai Browser headless?
No. The window really opens and stays interactive.
Does Ai Browser use screenshots?
Reading never goes through a screenshot. browse_screenshot exists only as a diagnostic.
Which platforms have packages?
macOS arm64 and Windows x64. Linux has no package yet. Both packages are unsigned.
Is the control socket secured?
It binds to loopback and refuses Origin headers, but there is no token, so local processes running as you can connect.
How do I add Ai Browser to Claude Code?
Run this command in your terminal: claude mcp add ai-browser -- npx -y @glittering0717/ai-browser
What are the best alternatives to Ai Browser?
The closest alternatives to Ai Browser are Agent Browser, Agentic Browser, Browser Use, Browserr and Clawdcursor.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

