Skip to main content
Glama
Tuanm
by Tuanm

Browser MCP

CI

A Chrome/Edge extension that turns the browser into an MCP server. It connects directly to a code-mcp-gateway (wss://code-mcp.tuanm.dev/ws/<id>) and answers MCP requests in place — no local server required.

flowchart LR
  A["AI agent"] -->|"MCP JSON-RPC"| G["code-mcp-gateway"]
  G -->|"wss /ws/<id>"| E["Extension (MV3)"]
  E -->|"CDP / tabs"| P["Pages"]

Latest build: browser-mcp-extension.zip

Install

Requires Chrome or Edge >= 111.

  1. Open chrome://extensions, enable Developer mode, click Load unpacked, select packages/browser-extension. (Or download the zip above.)

  2. Click the toolbar icon, enter the gateway Device ID and Token, click Connect. The popup shows Connected (gateway).

The token must match the one configured for the device on the gateway. Leave it empty and anyone reaching the gateway can control the browser.

Related MCP server: Chrome MCP Server

Tools (47)

Element discovery uses the @ref system: snapshot returns an interactive element tree with [ref=eN] markers; every interaction tool accepts a ref or a CSS selector.

  • Discoverysnapshot, find, get, is

  • Interactionclick, dblclick, type, fill, check, uncheck, select, hover, focus, press, drag, scroll, upload

  • Navigationnavigate, reload, back, forward, close, tabs, window

  • Page readsextract, execute, screenshot (image block), pdf, wait, highlight

  • State & debuggingstore, cookies, storage, console, errors, network, status, file_read

  • Emulation & controlemulate, set, perms, auth, dialog, frames, touch, download

Local server

Optional. Needed for the file store (file_read, downloads/uploads > 512 KB) or a local MCP HTTP endpoint:

bun browser-mcp.ts                  # http://127.0.0.1:7777/mcp
bun browser-mcp.ts --token <s>      # require auth on /mcp + /files

Local clients use http://127.0.0.1:7777/mcp — see mcp-client.example.json. Verify: curl -s http://127.0.0.1:7777/health.

CLI

bun browser-mcp.ts --gateway <domain> --token <s> --id <device-id>

Flag

Description

Default

--port <n>

Listen port

7777 or $PORT

--bind <addr>

Bind address

127.0.0.1

--token <s>

Require auth on /mcp and /files/*

none

--extension-token <s>

Require this token from the extension

none

--gateway <domain>

Link the MCP endpoint through a code-mcp-gateway

none

--id <uuid>

Gateway device id (overridden by the popup ID)

random

--files-dir <path>

Where downloaded/uploaded files are stored

./files

--allow-any-origin

DEV ONLY: skip the extension Origin check

off

Security

  • /browser/ws accepts only chrome-extension:// origins; /mcp and /files/* reject browser origins other than localhost (CSRF).

  • --token gates /mcp and /files/* (?token= or Bearer); --extension-token gates the extension bridge.

  • File IDs are 12-char random hex, validated and sanitized; uploads capped at 500 MiB, screenshots 8 MiB inline.

  • Binds to 127.0.0.1 by default; binding to 0.0.0.0 without --token prints a warning.

Development

bun run check   # syntax check
bun run test    # test suite
bun run build   # build dist/browser-extension.zip
bun browser-mcp.ts  # run the server
F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An extension-based MCP server that enables AI assistants to control your browser, leveraging existing sessions and login states for automation and content analysis. It provides over 20 tools for semantic tab search, interactive element manipulation, and network monitoring directly within your daily Chrome environment.
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    An extension-based MCP server that enables AI assistants to control your existing Chrome browser, leveraging your active login states and settings for automation. It provides over 20 tools for tasks like semantic tab search, screen capture, network monitoring, and direct element interaction.
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables AI to control browsers via natural language for web automation, testing, and data scraping. Supports Chrome-based browsers and integrates with any MCP-compatible AI tool.
    2

View all related MCP servers

Related MCP Connectors

  • Live browser debugging for AI assistants — DOM, console, network via MCP.

  • AI-powered browser automation — navigate, click, fill forms, and extract data from any website.

  • Screenshot, diff, audit and sitemap-capture any web page — 5 MCP tools for AI agents.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tuanm/browser-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server