MCP Servers

模型上下文协议服务器、框架、SDK 和模板的综合目录。

D
Dev Browser MCP
作者 @joshp123

Token-light browser automation via Playwright. CLI + MCP server.

创建于 1/10/2026
更新于 about 22 hours ago
Repository documentation and setup instructions

dev-browser-go

Token-light browser automation via Playwright-Go. CLI-first design for LLM agent workflows.

Uses ref-based interaction: get a compact accessibility snapshot, then click/fill by ref ID. Keeps context small. Single Go binary with embedded daemon.

Acknowledgments

Inspired by SawyerHood/dev-browser. ARIA snapshot extraction is vendored from that project. Thanks to Sawyer Hood for the original work and ref-based model.

Comparison

| Feature | SawyerHood/dev-browser | dev-browser-go | |---------|------------------------|----------------| | Language | TypeScript | Go | | Runtime | Bun + browser extension | Playwright-Go | | Interface | Browser extension skill | CLI + daemon | | Install | .plugin | Go binary / Nix | | Best for | Desktop skill users | CLI/LLM agents, Nix users | | Snapshot engine | ARIA (JS) | Same (vendored) |

Why CLI (no MCP)

  • Lower latency: direct subprocess, no JSON-RPC framing
  • Easier debugging: run commands yourself, see stdout/stderr
  • Simpler integration: any agent that can shell out works
  • Persistent sessions: daemon keeps browser alive between calls

Install

Playwright browsers are required. The Nix package wraps PLAYWRIGHT_BROWSERS_PATH to the packaged Chromium; dev shell includes the driver/browsers. Outside Nix, Playwright-Go will download on first run.

Nix (flake)

nix run github:joshp123/dev-browser-go#dev-browser-go -- goto https://example.com
nix profile install github:joshp123/dev-browser-go#dev-browser-go

Go build

go build ./cmd/dev-browser-go
./dev-browser-go goto https://example.com
./dev-browser-go snapshot

CLI Usage

dev-browser-go --help              # Full usage
dev-browser-go --version           # Version

dev-browser-go goto https://example.com
dev-browser-go snapshot            # Get refs (e1, e2, ...)
dev-browser-go click-ref e3        # Click ref
dev-browser-go fill-ref e5 "text"  # Fill input
dev-browser-go screenshot          # Capture
dev-browser-go press Enter         # Keyboard

The daemon starts automatically on first command and keeps the browser session alive.

Global Flags

--profile <name>    Browser profile (default: "default", env DEV_BROWSER_PROFILE)
--headless          Force headless mode (env HEADLESS=1)
--output <format>   Output format: summary|json|path (default: summary)
--out <path>        Write output to file (with --output=path)

Environment Variables

| Variable | Description | |----------|-------------| | DEV_BROWSER_PROFILE | Browser profile name | | HEADLESS | Run headless (1/true/yes) | | DEV_BROWSER_WINDOW_SIZE | Viewport WxH (default 2500x1920) | | DEV_BROWSER_ALLOW_UNSAFE_PATHS | Allow artifact writes outside cache dir |

Commands

| Command | Description | |---------|-------------| | goto <url> | Navigate to URL | | snapshot | Accessibility tree with refs | | click-ref <ref> | Click element by ref | | fill-ref <ref> "text" | Fill input by ref | | press <key> | Keyboard input | | screenshot | Save screenshot (crops clamp to 2000x2000) | | save-html | Save page HTML | | wait | Wait for page state | | list-pages | Show open pages | | close-page <name> | Close named page | | call <tool> | Generic tool call with JSON args | | actions | Batch tool calls from JSON | | status | Daemon status | | start | Start daemon | | stop | Stop daemon |

Run dev-browser-go <command> --help for command-specific options.

Integration with AI Agents

Add to your project's agent docs (or use SKILL.md directly):

## Browser Automation

Use `dev-browser-go` CLI for browser tasks. Keeps context small via ref-based interaction.

Workflow:
1. `dev-browser-go goto <url>` - navigate
2. `dev-browser-go snapshot` - get interactive elements as refs (e1, e2, etc.)
3. `dev-browser-go click-ref <ref>` or `dev-browser-go fill-ref <ref> "text"` - interact
4. `dev-browser-go screenshot` - capture state if needed

For detailed workflow examples, see SKILL.md.

Versioning & Releases

  • Simple SemVer tags (v0.y.z for fast moves; bump to v1.0.0 once stable).
  • GitHub Release on each tag with the single Go binary (dev-browser-go) and checksums.
  • Nix flake outputs follow the tag; no extra artifacts.

License

AGPL-3.0-or-later. See LICENSE.

Vendored code from SawyerHood/dev-browser is MIT licensed. See THIRD_PARTY_NOTICES.md.

快速设置
此服务器的安装指南

安装包 (如果需要)

uvx dev-browser-mcp

Cursor 配置 (mcp.json)

{ "mcpServers": { "joshp123-dev-browser-mcp": { "command": "uvx", "args": [ "dev-browser-mcp" ] } } }