browser_mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@browser_mcpNavigate to the API docs and take a full-page screenshot"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
browser_mcp — VSCode docs browser + hosted MCP
A single VSCode extension that displays auto-generated, self-contained HTML documentation in a real-DOM pane, and hosts an MCP server so Claude (via Claude Code) can develop and test that documentation UI — navigating, screenshotting, reading console/network, and crawling links.
One extension process owns everything:
┌─ VSCode extension host (one process) ──────────────────────────────────────┐
│ • Docs HTTP server → http://127.0.0.1:<ephemeral>/... (static docs) │
│ • Webview pane → <iframe> of the docs URL — REAL, selectable DOM │
│ • Stateless MCP HTTP server → http://127.0.0.1:8765/mcp │
│ • MCP tool handlers ── drive ──► pane (postMessage) + Playwright (IPC) │
│ • Activity-bar view + commands; spawns & owns the sidecar │
└───────────────▲──────────────────────────────────────────────┬─────────────┘
Claude Code │ HTTP (.mcp.json type:"http") │ stdio JSON
(terminal) │ ▼
│ ┌─ Playwright sidecar (child process) ─┐
└───────────────────────┤ headless Chromium; goto/screenshot/ │
│ click; console + network capture │
└──────────────────────────────────────┘A navigate updates the pane and the Playwright page in the same handler — always in sync, no lockfile/discovery. The pane shows real DOM (humans read/select); Playwright is the AI's surface (screenshots + inspection); both render the same URL.
Why this shape? VSCode 1.126 routes the built-in Simple Browser to a new "integrated browser" that opens a fresh tab per programmatic navigation, and you can't screenshot a VSCode pane. So we render docs in our own webview and use a co-located headless Chromium for pixels.
Requirements
Node.js ≥ 20 (developed on 25), VSCode ≥ 1.101, Claude Code.
A Chromium build for
playwright-core. Fetched automatically on first use — the extension runs theplaywright-coreinstaller (shown as a progress notification) the first time a browser is needed, into the shared Playwright cache (~/Library/Caches/ms-playwrighton macOS,~/.cache/ms-playwrighton Linux,%LOCALAPPDATA%\ms-playwrighton Windows). No manual step; subsequent runs reuse it.
Related MCP server: Browsershot MCP
Setup
npm install # installs deps (extension workspace)
npm run build # esbuild → extension/dist/extension.js + dist/sidecar/main.js
npm run install:ext # builds + sideloads into ~/.vscode/extensions, carrying playwright-coreThen Developer: Reload Window in VSCode to activate. (Re-run npm run install:ext + reload after editing the extension — the installed copy is a snapshot.)
Alternative install: npm run package:ext → extension/docs-browser-extension.vsix → Extensions view → Install from VSIX (remove any sideloaded copy first). The .vsix bundles playwright-core, so it installs cleanly on another machine; Chromium is still fetched on first use. (Building the .vsix requires the zip CLI on the build machine; installing it does not.)
Use in another project
The extension is installed per user (in ~/.vscode/extensions), so once installed it's available to every VSCode window — you don't reinstall per project. To use it in another project:
Point it at your docs. Set
docsBrowser.docsDir(workspace setting) to your generated HTML output directory (relative to the workspace root, or absolute). Activity Bar → Docs Browser → the gear, or runDocs Browser: Open Settings.Register the MCP server. Run
Docs Browser: Create MCP config (.mcp.json)from the Command Palette (or the view title bar). It writes/merges a.mcp.jsonin the workspace root pointing Claude Code at the hosted server, preserving any other servers already listed.Reload the window, then start Claude Code in that folder (run
/mcpif the tools don't connect immediately).
That's it — no per-project build or install. Note the single-window / fixed-port assumption below if you keep multiple projects open at once.
Connect Claude Code
.mcp.json (project scope) points Claude Code at the extension-hosted server:
{ "mcpServers": { "docs-browser": { "type": "http", "url": "http://127.0.0.1:8765/mcp" } } }The extension activates on VSCode startup and binds 127.0.0.1:8765 (configurable via docsBrowser.mcpPort). Start Claude Code in this folder and approve the server. If the tools show "failed" (e.g. Claude Code started before the extension was listening), run /mcp to reconnect — the server is stateless, so it recovers across VSCode reloads.
Usage
Activity Bar → Docs Browser: an "Open Docs Browser" button + a clickable page list + Open/Refresh; when no docs are found yet, a welcome panel links to the docs-directory setting and the MCP-config command.
Command Palette:
Docs Browser: Open,Docs Browser: Refresh,Docs Browser: Create MCP config (.mcp.json),Docs Browser: Open Settings.From Claude: navigate/screenshot/etc.; the pane mirrors what Claude does.
MCP tools
Tool | Purpose |
| Open/go to a page (mirrors to the pane) |
| History + reload |
| PNG ( |
|
|
| Rendered text / link graph |
| HTML files in the docs dir |
| JS errors/warnings on the current page |
| Failed / 4xx / 5xx requests (broken assets) |
| Crawl internal links → broken targets + orphan pages |
| Click by selector or text (pane follows) |
| Pane URL + preflight status + recent webview events (sync/debug) |
Settings
docsBrowser.docsDir(defaultdocs) — directory of generated HTML to serve.docsBrowser.mcpPort(default8765) — fixed MCP port (strict; fails loudly on conflict).docsBrowser.maxCrawlPages(default500) — page cap forcheck_links; raise for large doc sets (check_linkswarns when the cap is hit). Applied at activation.
Layout
extension/
src/ types.ts (contracts), extension.ts, tools.ts, mcpServer.ts,
paneController.ts, browserClient.ts, docsServer.ts, checkLinks.ts
sidecar/ main.ts # Playwright child process
test/ *.mjs + integration.ts # standalone module + integration tests
build.mjs # esbuild (extension + sidecar)
build-vsix.mjs # package a .vsix (bundle + inject playwright-core)
docs/ # sample docs (replace with your generated output)
.mcp.json # Claude Code MCP registration (http)
scripts/install-extension.shTests
Module tests:
node extension/test/{sidecar,pane,mcp,docs}.mjsFull pipeline (headless, real Chromium + MCP HTTP client):
node extension/run-integration.mjs
Notes & caveats
MCP over HTTP: if Claude Code starts before the extension is listening, reconnect via
/mcp. Stateless transport handles VSCode reloads.Pane: VSCode find-in-page (Cmd+F) may not reach inside the cross-origin iframe; keyboard focus inside the iframe can swallow some VSCode shortcuts/copy.
Sidecar: owned by the extension; group-killed on
deactivateso Chromium doesn't orphan.Multi-window: a second VSCode window contends for the fixed MCP port (strict → fails loudly); single-window assumed.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/eric-vergo/browser_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server