ai-browser
MCP server by Glittering Community
Opens a visible Electron browser that an AI agent controls through 17 MCP tools. Agents read pages as a semantic accessibility tree instead of screenshots, and a person can click in the same window at any time.
Install ai-browser
Built from the published package, never by AI.
claude mcp add ai-browser -- npx -y @glittering0717/ai-browserRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ai-browser": {
"args": [
"-y",
"@glittering0717/ai-browser"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"ai-browser": {
"args": [
"-y",
"@glittering0717/ai-browser"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ai-browser": {
"args": [
"-y",
"@glittering0717/ai-browser"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add ai-browser -- npx -y @glittering0717/ai-browser{
"mcpServers": {
"ai-browser": {
"args": [
"-y",
"@glittering0717/ai-browser"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add ai-browser npx -y @glittering0717/ai-browserGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the ai-browser block.
About
AI Browser is an Electron app that opens a visible browser window an AI agent can drive. It exposes 17 browse_* tools through an MCP server and a raw WebSocket JSON-RPC API on localhost port 9223. Agents read pages as a semantic tree with role, label, value, states and actions, and they click or type by data-ai-id. Reading does not use screenshots or OCR.
The window is not headless. It renders and stays interactive, so a person can click an article in it while the agent is paused, and the agent picks up the new tab on its next read. The source describes it as a browser for agent users who want to watch or share a real window. It can be installed as a macOS arm64 package, a Windows x64 installer, or through npx.
Written from the project's README and checked against it.
Tools it gives your assistant
browse_navigateLoads a URL in your tab or a given tab.browse_get_treeReads the page as a semantic tree plus page context such as modals and messages.browse_actClicks, types, focuses, hovers, scrolls, uploads or drags on a data-ai-id element.browse_diffTakes a snapshot baseline and reports added, removed or changed paths with values.browse_capabilitiesProbes what a page affords and which route to take on it.browse_downloadsLists a tab's downloads with their on-disk paths.browse_evaluateRuns a JavaScript expression in page context, capped at 5000 characters.browse_waitPolls until a button is enabled, a modal appears, or text or a URL matches.browse_tabsLists, opens, closes and switches tabs, and can show a tab in the window.browse_networkLists, inspects and clears network requests, with headers and bodies.
What you need
- Node.js 18 or later for the npx route
- A desktop session, since it is a GUI app
- macOS arm64 or Windows x64 for the prebuilt packages
- About 100 MB download for the Electron engine on first run
Try asking
- Open example.com and summarize the main article on the page
- Navigate to the login page and check whether I am logged in
- Click the export button, then list the downloaded files in this tab
Good to know
- Not headless: the browser window opens and is visible.
- The WebSocket API has no token, so any local process running as you can connect.
- browse_screenshot is a diagnostic tool, not the read path.
- The macOS app is not notarized and the Windows installer is not code-signed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to ai-browser
All alternatives →Browser Use runs an AI model in a real browser, where it completes web tasks by writing Python against Chrome DevTools Protocol. It is for developers who want to fill forms, navigate sites and extract data locally or on Browser Use Cloud.
Pomerado builds MCP integrations for websites, including sites without an API, from a plain language task description. It is for people who want their agent to use a site reliably without computer use.
Selenide MCP server runs browser automation for AI assistants. It is built on the Selenide Java testing framework, which wraps Selenium WebDriver 4.0+. It suits developers who want AI agents to drive UI tests.
SeleniumBase is a Python browser automation framework for stealth browsing, end-to-end testing and web scraping. It uses CDP Mode to work with Chromium-based browsers, and it is aimed at software teams.
Camofox Browser MCP exposes the camofox-browser REST API as MCP tools for AI coding assistants. It proxies to an already-running camofox-browser server, so agents can browse sites that block standard automation.
Cline is an open source coding agent that edits files, runs commands, and uses the browser. It works in a terminal CLI, a macOS and Windows desktop app, VS Code, JetBrains IDEs, and an SDK for developers building their own agents.
Compare with browser-use, Pomerado or Selenide
ai-browser: common questions
Does AI Browser read pages with screenshots?
No. Pages are read as a semantic accessibility tree, and the source states there is no OCR. browse_screenshot exists only as a diagnostic for cases the tree cannot show.
Can a person and an agent use the same browser?
Yes. The agent drives the browser and then waits, while a person can click in the same real window. The agent continues on the page the person chose.
Is AI Browser a headless browser?
No. The source says the window really opens, renders and stays interactive.
How do I install ai-browser?
In Claude Code run claude mcp add ai-browser -- npx -y @glittering0717/ai-browser. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is ai-browser the official server?
ai-browser is a community project by Glittering, not verified by a company domain.
Is ai-browser free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is ai-browser safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to ai-browser?
Similar MCP servers: browser-use, Pomerado, Selenide, SeleniumBase MCP.
Does ai-browser work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
