Secure Browser MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
secure-browser-mcp
English | 日本語
Security-first browser automation MCP server. Built on Playwright with a strict local-only policy.
Security Features
Feature | Detail |
Zero telemetry | No data leaves your machine. No PostHog, no analytics, no cloud sync |
Sensitive data masking | Credit card numbers, SSNs, and emails are auto-masked in all tool responses |
No external connections | The server never phones home. Fully air-gappable |
No LLM dependency | No API keys, no AI calls. Your MCP client handles reasoning; this server just drives the browser |
No Python required | Pure Node.js. No Python runtime, no pip, no venv |
Related MCP server: agent-browser
Why not @playwright/mcp?
secure-browser-mcp | @playwright/mcp | |
Telemetry | None | None* |
Sensitive data masking | Built-in (CC, SSN, email) | No |
External connections | Zero | Depends on config |
DOM element stability |
| Accessibility snapshots |
Dependencies | Minimal (Playwright + MCP SDK) | Playwright + MCP SDK |
* @playwright/mcp itself has no telemetry, but does not mask sensitive data in responses passed to LLMs.
Requirements
Node.js 18+
Chromium (installed via
npx playwright install chromium)
Quick Start
Install
git clone https://github.com/aliksir/secure-browser-mcp.git
cd secure-browser-mcp
npm install
npx playwright install chromium
npm run buildConfigure
Add to your Claude Code MCP settings (~/.claude/settings.json):
{
"mcpServers": {
"secure-browser": {
"command": "node",
"args": ["/path/to/secure-browser-mcp/dist/index.js"],
"env": {
"BROWSER_HEADLESS": "true"
}
}
}
}Set BROWSER_HEADLESS to "false" to see the browser window.
Available Tools
Tool | Description |
| Navigate to a URL (supports |
| Get page state with indexed interactive elements |
| Click by element index or coordinates |
| Type text into an element (sensitive data auto-masked) |
| Take a screenshot (viewport or full page) |
| Scroll up or down (80% of viewport) |
| Navigate back in history |
| Get HTML content (full page or CSS selector) |
| List all open tabs |
| Switch to a tab by ID |
| Close a tab by ID |
| List active browser sessions |
| Close a specific session |
| Close all sessions and browsers |
How Masking Works
When browser_type or browser_get_state processes text, patterns are automatically replaced before the response reaches your MCP client:
Pattern | Masked as |
|
|
|
|
|
|
This prevents sensitive data from being sent to LLM context windows where it could be logged or cached.
Design Decisions
Zero external connections — no telemetry, no cloud sync, no analytics. Everything stays local
No LLM dependency — this server doesn't call any AI APIs. Your MCP client handles all reasoning
Lazy session cleanup — sessions expire after 30 minutes of inactivity, checked on each tool call (no background timers)
Viewport-first element indexing — elements currently visible in the viewport are prioritized and indexed first
data-mcp-indexover CSS selectors — injected attributes are stable across page re-renders, unlike CSS selectors that break with DOM changes
Environment Variables
Variable | Default | Description |
|
| Set to |
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Browser MCP for logged-in tasks. Uses your Chrome — credentials stay local. Zero-token replay.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to operate an isolated local Chromium browser through MCP, with semantic snapshots, ref-based actions, search, research, crawling, and CDP access.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceProvides a headless Chromium browser through MCP, enabling AI agents to browse JavaScript-rendered pages, search the web, capture screenshots, extract tables and data, and run stateful multi-step interactions like clicking, typing, and form submission.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents and clients to control a real Chromium browser through MCP tool calls, including navigation, clicking, typing, JavaScript evaluation, screenshots, and DOM snapshots. Supports multiple isolated sessions over authenticated HTTP with no disk writes.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables local Chrome control for AI clients over MCP stdio, HTTP, or CLI, exposing 20 tools to extract page text, number and click elements, type text, scroll, manage tabs, capture screenshots, and bind uploaded files to file inputs. Operations run entirely on the local machine with origin allowlists and refusal of untrusted URLs, without calling a cloud model or consuming model tokens.MIT