# Ai Browser

> Ai Browser is an MCP server for browser automation. A visible Electron browser that agents drive through a semantic tree, not screenshots. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** macOS, Windows, CLI
- **Repository:** https://github.com/glittering/ai-browser
- **MCP Registry name:** io.github.Glittering/ai-browser
- **Categories:** [browser automation](https://ai-powered.com/categories/browser-automation)
- **Listing updated:** 2026-11-15

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add ai-browser -- npx -y @glittering0717/ai-browser
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "ai-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@glittering0717/ai-browser"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ai-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@glittering0717/ai-browser"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ai-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@glittering0717/ai-browser"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add ai-browser -- npx -y @glittering0717/ai-browser
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.ai-browser]
command = "npx"
args = ["-y", "@glittering0717/ai-browser"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "ai-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@glittering0717/ai-browser"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "ai-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@glittering0717/ai-browser"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "ai-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@glittering0717/ai-browser"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "ai-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@glittering0717/ai-browser"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ai-browser": {
      "command": "npx",
      "args": [
        "-y",
        "@glittering0717/ai-browser"
      ]
    }
  }
}
```

## Tools

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_screenshot` (name suggests: reads): Takes a diagnostic screenshot for cases the semantic tree cannot see.

## 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.

## Alternatives

- [Agent Browser](https://ai-powered.com/mcp/agent-browser-3): Agent Browser is an open-source MCP server for browser automation.
- [Agentic Browser](https://ai-powered.com/mcp/agentic-browser): Agentic Browser is an open-source MCP server for browser automation.
- [Browser Use](https://ai-powered.com/mcp/browser-use): Browser Use is a freemium MCP server for browser automation.
- [Browserr](https://ai-powered.com/mcp/browserr): Browserr is an open-source MCP server for browser automation.
- [Clawdcursor](https://ai-powered.com/mcp/clawdcursor): Clawdcursor is an open-source MCP server for browser automation.
- [agent-in-browser](https://ai-powered.com/mcp/agent-in-browser): agent-in-browser is an open-source MCP server for browser automation.
- [Abrasio](https://ai-powered.com/mcp/abrasio): Abrasio is a freemium MCP server for browser automation.
- [navette — the browser for agents](https://ai-powered.com/mcp/navette-the-browser-for-agents): navette — the browser for agents is an open-source MCP server for browser automation.

---
Source: https://ai-powered.com/mcp/ai-browser
