Local Browser MCP
Provides the ability to use Firefox as the browser engine, enabling automated control of Firefox for navigation, clicking, screenshots, DOM snapshotting, and other browser automation tasks.
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., "@Local Browser MCPnavigate to http://localhost:3000 and take a 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.
Local Browser MCP
A headless, agent-controllable real browser as an MCP server. It gives an AI agent (Claude Code, or any MCP client) a real Playwright browser pointed at your local dev servers — and any hosts you explicitly allow — with no VS Code and no GUI required. The agent launches the browser, drives it, and it's torn down when the session ends.
Navigate, click, hover, fill, type, run JS, screenshot, snapshot the DOM, and read console/network — all over MCP. Because it normally only drives your own localhost, it's given broad control without general-web-browsing risk; additional hosts are opt-in.
Install
Requires Node.js ≥ 18. The Chromium binary (~110 MB) is downloaded automatically on first install.
Claude Code / any MCP client (recommended)
Add it to your MCP config (e.g. a project .mcp.json, your user config via
claude mcp add, or your client's equivalent). npx runs it straight from this GitHub repo —
no npm registry account needed (requires git on the machine):
{
"mcpServers": {
"local-browser": {
"command": "npx",
"args": ["-y", "github:NolanLT/local-browser-mcp"],
"env": {
"LOCAL_BROWSER_ALLOWED_HOSTS": "localhost,127.0.0.1"
}
}
}
}Restart your client. The browser_* tools appear with no other setup. (First run installs
dependencies and downloads Chromium, then caches.)
If the package is also published to npm, you can swap the arg for the shorter
["-y", "local-browser-mcp"].
As a Claude Code plugin (GitHub marketplace)
/plugin marketplace add NolanLT/local-browser-mcp
/plugin install local-browser@local-browser-marketplaceThe plugin's MCP server is the same npx invocation above.
Related MCP server: Scout
Configuration (environment variables)
Variable | Default | Purpose |
|
|
|
|
| Comma-separated navigation allowlist |
|
|
|
| — |
|
Tools
Tool | Purpose |
| Go to a URL (allowlist-validated) |
| PNG returned to the agent |
| Flat DOM/a11y snapshot |
| Click an element |
| Hover (e.g. open a dropdown) |
| Fill an input |
| Type into the focused element |
| Run JS in the page, return JSON result |
| Buffered console / recent requests |
| Wait for a condition |
| Resize the viewport |
| History nav |
| Visible page text |
| Allowlist management |
ref values come from browser_snapshot() (elements are tagged with data-lbmcp-ref), so
browser_click({ ref }) targets them reliably.
Security
Navigation is rejected unless the host is in
LOCAL_BROWSER_ALLOWED_HOSTS(orALLOW_ALLis on) and the protocol is http/https.The browser uses a fresh, ephemeral profile — no saved cookies, logins, or passwords.
browser_evalruns arbitrary JS with the page's full privileges. Harmless on your own dev site; powerful on a real one. WithALLOW_ALLon, every visited page is untrusted input (prompt- injection surface) and the agent can script it — keepALLOW_ALLoff unless you mean it.There's no built-in approval dialog (the server is headless). When run under Claude Code, host additions and eval calls are gated by Claude Code's own per-tool permission prompts.
Develop
npm install # installs deps + downloads Chromium
npm run typecheck # tsc --noEmit
npm run build # bundle → dist/server.cjsRun it directly for a stdio smoke test:
node dist/server.cjsSee CONTRIBUTING.md for the full dev/release workflow.
Project
License
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
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/NolanLT/local-browser-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server