browser-mcp
Unified MCP server for browser automation (Playwright + CDP + CLI) and bookmark management across Chrome, Firefox, Edge, and Brave, including cross-browser sync, deduplication, and a React dashboard.
README
browser-mcp
<p align="center"> <a href="https://github.com/The-Syntax-Slayer/browser-mcp"><img src="https://img.shields.io/github/stars/The-Syntax-Slayer/browser-mcp?style=flat-square" alt="Stars"></a> <a href="https://github.com/The-Syntax-Slayer/browser-mcp/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="License"></a> <a href="https://python.org"><img src="https://img.shields.io/badge/Python-3.13+-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python"></a> <a href="https://github.com/PrefectHQ/fastmcp"><img src="https://img.shields.io/badge/FastMCP-3.2-7c5cfc?style=flat-square" alt="FastMCP"></a> <a href="https://playwright.dev/"><img src="https://img.shields.io/badge/Playwright-powered-45ba4b?style=flat-square" alt="Playwright"></a> <a href=""><img src="https://img.shields.io/badge/fleet-SOTA-6366f1?style=flat-square" alt="Fleet SOTA"></a> <a href=""><img src="https://img.shields.io/badge/coverage-85%25-success?style=flat-square" alt="Coverage"></a> </p>
Browser automation + bookmark management — over MCP. A unified MCP server for controlling Chrome, Firefox, Edge, and Brave: browse pages, click elements, take screenshots, and manage bookmarks across all major browsers. Ships with a React webapp dashboard.
Features
Browser Automation (Playwright + CDP + CLI)
| Tool | Description |
|---|---|
browse_page(url) |
Navigate and extract visible text |
click_element(selector) |
Click elements by CSS selector |
extract_text(selector) |
Extract text from any element |
fill_input(selector, text) |
Type into input fields |
press_key(key) |
Press keyboard keys |
screenshot() |
Viewport PNG screenshot |
browse_url_cli(url, browser) |
Headless CLI mode (no Playwright overhead) |
list_browsers() |
Detect installed browsers and profiles |
Bookmark Management (4 Browsers)
17 operations across Chrome, Firefox, Edge, and Brave:
- CRUD: list, get, add, edit, delete bookmarks
- Search: full-text search by title/URL
- Cross-browser sync: migrate bookmarks between any two browsers
- Deduplication: find duplicate URLs (Firefox)
- Tag management: list, find similar, merge, clean up tags (Firefox)
- Age analysis: find old or forgotten bookmarks, get stats (Firefox)
- Link checking: detect broken links (Firefox)
- Export: bookmarks to JSON/CSV (Firefox)
Bookmarks are read/written directly to the browser's native storage:
- Firefox: SQLite (
places.sqlite) with brute-force unlock for read-while-running - Chrome/Edge/Brave: Chromium
BookmarksJSON file
Webapp Dashboard (React + Vite)
A full React SPA on port 10781 with:
- Dashboard: health status, installed browser detection
- Bookmarks panel: list bookmarks by browser with live search
Quick Start
git clone https://github.com/The-Syntax-Slayer/browser-mcp
cd browser-mcp
just
Opens an interactive recipe dashboard. Otherwise:
# Install dependencies
uv sync
# Install Playwright browsers
playwright install chromium
# Start backend (port 10780)
uv run browser-mcp --serve
# Start frontend (port 10781) — separate terminal
cd webapp && npm install && npm run dev
For more details: INSTALL.md
Tools Reference
Browser Automation
# Navigate and extract
await browse_page("https://example.com")
# → {"title": "...", "text": "...", "url": "...", "status": 200}
# Click and interact
await click_element("button#submit")
await fill_input("#search", "hello world")
await press_key("Enter")
# Screenshot
await screenshot()
# → {"screenshot_b64": "iVBORw0KGgo..."}
# CLI mode (no Playwright session needed)
await browse_url_cli("https://example.com", browser="chrome")
# Detect installed browsers
await list_browsers()
# → {"browsers": {"chrome": {"installed": true, "path": "..."}, ...}}
Bookmark Management
# List bookmarks from Chrome
await browser_bookmarks(operation="list_bookmarks", browser="chrome")
# List from Firefox
await browser_bookmarks(operation="list_bookmarks", browser="firefox")
# Add a bookmark
await browser_bookmarks(
operation="add_bookmark",
browser="chrome",
url="https://example.com",
title="Example",
)
# Search
await browser_bookmarks(operation="search", browser="firefox", search_query="python")
# Find duplicates (Firefox only)
await browser_bookmarks(operation="find_duplicates", browser="firefox")
# Sync bookmarks from Firefox to Chrome
await browser_bookmarks(
operation="sync_bookmarks",
browser="firefox",
target_browser="chrome",
)
# Export Firefox bookmarks
await browser_bookmarks(operation="export_bookmarks", browser="firefox", export_format="json")
# Find forgotten bookmarks (not visited in 1 year)
await browser_bookmarks(
operation="find_forgotten_bookmarks",
browser="firefox",
age_days=365,
)
Workflow Tools
| Tool | Description |
|---|---|
morning_briefing(config_name) |
Configurable daily page routine with 4 built-in profiles |
browse_items(items_json, task) |
Browse a list of links (from aiwatcher/arxiv/gitops) with summaries |
browse_workflow(task, initial_url) |
Multi-step agentic browsing from natural language task |
Morning briefing profiles (defined in conf/morning_pages.json):
| Profile | Pages | Integrations |
|---|---|---|
default |
HN + GitHub Trending | AIWatcher, GitHub repos |
dev |
HN + Python Trending + Lobsters | AIWatcher, arXiv cs.AI/cs.SE |
research |
arXiv cs.AI + r/MachineLearning | AIWatcher, arXiv cs.AI/LG/CV/ML |
fleet |
Sandra's repos | AIWatcher, 6 fleet repos |
Chaining with fleet MCP servers:
# 1. Get top items from aiwatcher-mcp
items = await aiwatcher.get_top_items(hours=24, limit=5)
# 2. Browse them
await browse_items(items_json=items, task="What's interesting?")
# 1. Get GitHub issues
issues = await gitops.issue_list(owner="The-Syntax-Slayer", repo="browser-mcp")
# 2. Browse the issue pages
await browse_items(items_json=issues)
Full Operation List
| Operation | Chrome | Firefox | Edge | Brave |
|---|---|---|---|---|
| list_bookmarks | ✓ | ✓ | ✓ | ✓ |
| get_bookmark | ✓ | ✓ | ✓ | ✓ |
| add_bookmark | ✓ | ✓ | ✓ | ✓ |
| edit_bookmark | ✓ | ✓ | ✓ | ✓ |
| delete_bookmark | ✓ | ✓ | ✓ | ✓ |
| search / search_bookmarks | ✓ | ✓ | ✓ | ✓ |
| sync_bookmarks | ✓ | ✓ | ✓ | ✓ |
| find_duplicates | — | ✓ | — | — |
| export_bookmarks | — | ✓ | — | — |
| list_tags | — | ✓ | — | — |
| find_similar_tags | — | ✓ | — | — |
| merge_tags | — | ✓ | — | — |
| clean_up_tags | — | ✓ | — | — |
| find_old_bookmarks | — | ✓ | — | — |
| find_forgotten_bookmarks | — | ✓ | — | — |
| get_bookmark_stats | — | ✓ | — | — |
| find_broken_links | — | ✓ | — | — |
| refresh_bookmarks | — | ✓ | — | — |
Architecture
Browser Control Layers
| Layer | Chrome/Chromium | Firefox |
|---|---|---|
| Bookmark read/write | Direct JSON file | Direct SQLite |
| Headless automation | Playwright (primary) + CDP WebSocket | Playwright (primary) + geckodriver |
| CLI quick ops | chrome --headless --dump-dom |
firefox --headless --screenshot |
Ports
| Port | Service |
|---|---|
| 10780 | Backend (FastAPI + MCP HTTP) |
| 10781 | Frontend (Vite React dev server) |
Project Structure
browser-mcp/
├── src/browser_mcp/
│ ├── server.py # MCP tools + browser lifecycle
│ ├── app.py # FastAPI app with /health + MCP mount
│ ├── config.py # Environment-based settings
│ ├── __main__.py # CLI entry point (stdio / HTTP)
│ └── bookmarks/ # Bookmark management backend
│ ├── portmanteau.py # Main browser_bookmarks MCP tool
│ ├── firefox_bookmarks.py # Firefox SQLite backend
│ ├── chromium_common.py # Chrome/Edge/Brave JSON backend
│ ├── sync.py # Cross-browser sync
│ └── firefox/ # 13 submodules (db, status, utils, etc.)
├── webapp/ # React + Vite dashboard (port 10781)
│ ├── src/
│ │ ├── pages/Dashboard.tsx
│ │ └── pages/Bookmarks.tsx
│ └── package.json
└── justfile
Config
| Env Var | Default | Description |
|---|---|---|
BROWSER_MCP_HOST |
127.0.0.1 | HTTP bind address |
BROWSER_MCP_PORT |
10780 | HTTP backend port |
BROWSER_MCP_FRONTEND_PORT |
10781 | Vite frontend port |
BROWSER_HEADLESS |
true | Run Playwright headless |
MCP_TRANSPORT |
— | Set to http for HTTP mode |
Running
# stdio mode (Claude Desktop, MCP clients)
uv run browser-mcp --stdio
# HTTP mode (web dashboard + API)
uv run browser-mcp --serve
# Debug mode
uv run browser-mcp --serve --debug
Changelog
See CHANGELOG.md.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。