Web Browser MCP Server
Powers web_search and web_research by querying DuckDuckGo for result titles, unwrapped URLs, and snippets, with automatic fallback to another search engine when needed.
Drives a real Google Chrome browser via Playwright, supporting persistent sessions, navigation, page reading, screenshots, tab management, and user-like interactions such as clicking and filling forms.
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.
π Web Browser MCP Server
A Python Model Context Protocol (MCP) server that lets AI assistants drive a real Chrome browser with Playwright β on any website: research the web, read your webmail, browse job portals like Naukri, fill in forms, and keep your LinkedIn profile polished. You sign in yourself, and nothing is sent, posted, or saved without your approval.
π Table of Contents
Related MCP server: MCP Playwright Server
β¨ What It Does
Area | What the AI can do |
Web research |
|
Any website | Open pages, read text (paged), list links, take screenshots, and interact: click, type, choose dropdown options, press keys, scroll, manage tabs. |
Reliable element targeting |
|
LinkedIn profile | Read your whole profile, then update your headline, About section, and skills β each with a preview of current vs. new text first. Any other section (experience, education, certifications, projects) can be edited through its form. |
Your real logins | Each |
It works on any site you can use in a browser, for example:
Site type | Examples of what you can ask |
Job portals (Naukri, LinkedIn Jobs, Indeed) | Search jobs, read listings, compare roles, update your profile β clicking Apply needs your approval |
Webmail (Gmail, Outlook) | Read and summarise your inbox, find an email, draft a reply β clicking Send needs your approval |
Docs, blogs, news, GitHub | Read, extract, and summarise pages; take screenshots |
Any web form | Fill fields and dropdowns; submitting needs your approval |
LinkedIn simply has extra one-call tools (headline, About, skills); everywhere else the general browser_* tools do the work.
It runs Google Chrome installed on your machine by default (or Microsoft Edge, or Playwright's bundled Chromium).
π‘οΈ Safety Model
Designed so an AI can help with real accounts without surprises:
Protection | How it works |
You sign in, not the AI |
|
Preview before every change | LinkedIn edits return current vs. new first and only save when called again with |
Human pace on LinkedIn | At most 20 edits per day and 10 s between edits by default (configurable). The daily count survives restarts. |
No CAPTCHA bypassing | Bot checks are reported, never solved or evaded. Searches fall back to another engine; otherwise you solve it yourself in the window. |
Site restrictions | Optional allowlist/blocklist of domains. |
Local by default | Profiles live in |
π¦ Installation
Requires Python 3.10+ and Google Chrome (or set BROWSER_CHANNEL=chromium and run playwright install chromium).
git clone https://github.com/Pawangunjkar/web-browser-mcp.git
cd web-browser-mcp
uv sync # or: pip install -e .Check it starts (Ctrl+C to stop):
uv run server.pyπ Configuring Your AI Client
Claude Code
claude mcp add web-browser -- uv --directory /absolute/path/to/web-browser-mcp run server.pyClaude Desktop / Cursor / Windsurf / Cline
{
"mcpServers": {
"web-browser": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/web-browser-mcp", "run", "server.py"],
"env": {
"BROWSER_CHANNEL": "chrome"
}
}
}
}On Windows use a path like C:\\AI_Workspaces\\web-browser-mcp.
π First Run: Sign In to LinkedIn
Ask your assistant: "Open LinkedIn login." β it calls
linkedin_open_loginand a Chrome window opens.Sign in yourself in that window (email, password, any verification code). Tick "Keep me signed in".
Ask: "Check my LinkedIn login." β
linkedin_check_loginconfirms and shows your profile URL.
You stay signed in for future sessions because the browser profile is saved. To sign out completely, use browser_clear_profile (confirmation required).
π¬ Example Prompts
"Read my LinkedIn profile and suggest a stronger headline for a senior DevOps / platform engineer. Show me options first."
"Rewrite my About section to highlight Kubernetes, CI/CD and MCP servers I've built. Keep it under 2,000 characters and show the preview."
"Add the skills Terraform, Argo CD and GitHub Actions to my profile if they're missing."
"Research the current best practices for LinkedIn headlines for DevOps engineers and summarise them with sources."
"Open Naukri, search for Senior DevOps Engineer jobs in Pune with 8+ years, and list the top 10 with company and salary."
"Open my Gmail and summarise the unread emails from today." (sign in yourself the first time)
"Open the Playwright Python docs, find how persistent contexts work, and give me an example."
"Go to my GitHub profile page and take a screenshot."
π§° Complete Tool Reference (33 tools)
Every tool takes an optional session_name (default "default"); each name is its own persistent browser profile.
Category 1: Browser Sessions (5)
Tool | Description |
| Start a session with options (visible/headless, chrome/msedge/chromium, start URL). Sessions also start automatically. |
| Close a session (profile kept on disk). |
| Close every session. |
| Running sessions, tabs, active page, profile folders. |
| Delete a saved profile β signs out everywhere. Confirmation-gated. |
Category 2: Navigation (5)
Tool | Description |
| Open a URL in the active tab. |
| History and reload. |
| Wait for text, an element, or a URL change (e.g. after you sign in). |
Category 3: Reading Pages (4)
Tool | Description |
| Visible text of the page or one element, paged with |
| Interactive elements with refs ( |
| Links on the page, optionally filtered. |
| Screenshot of the viewport, full page, or one element (returned as an image). |
Category 4: Interacting (5)
Tool | Description |
| Click by ref, selector, or text. Save/submit/post/delete-style clicks need |
| Type into a field (optionally press Enter). Password/card/OTP fields are refused. |
| Choose a dropdown option. |
| Press a key or shortcut ( |
| Scroll up/down/top/bottom or bring an element into view. |
Category 5: Tabs (4)
Tool | Description |
| Manage tabs; links that open new tabs switch to them automatically. |
Category 6: Web Research (3)
Tool | Description |
| Search + read the top N results in parallel, in one call. |
| Titles, real URLs (redirects unwrapped), and snippets. |
| Main readable text of a URL, read in a background tab. Bot-check / sign-in walls are flagged. |
Category 7: LinkedIn Profile (7)
Tool | Description |
| Open the sign-in page in a visible window for you to sign in. |
| Signed in? Whose profile? Edits used today. |
| Name, headline, location, and chosen sections; |
| Preview, then save a new headline (β€ 220 chars) and verify it on the profile. |
| Preview, then replace the About section (β€ 2,600 chars). |
| Add up to 10 skills per call; skills already on the profile are skipped. |
| Open the form for intro/about/skills/experience/education/certifications/projects and list its fields, for edits without a dedicated tool. |
βοΈ Environment Variables
All optional β see .env.example.
Variable | Default | Purpose |
|
|
|
| visible on desktops |
|
|
| Browser profiles and state. |
|
| Page load timeout. |
|
| Window size. |
|
| Gate save/submit/delete-style clicks behind |
| (all) | Comma-separated allowlist (subdomains included). |
| (none) | Comma-separated blocklist. |
|
| Allow opening local |
|
| Daily cap on LinkedIn edits. |
|
| Minimum gap between LinkedIn edits. |
|
| Turn off the LinkedIn tools (set in hosted containers). |
|
| HTTP mode for hosted use ( |
πΌ LinkedIn Notes
Use it for your own profile, at human pace. LinkedIn's User Agreement restricts automated access. This server only acts on your own signed-in account, never scrapes other people, never logs in for you, saves only what you approve, and rate-limits edits β but any automation carries some risk to the account. Use it at your own discretion.
Layouts change. LinkedIn updates its pages often. Each editor is opened through several known entry points; if all fail, the tool says so and lists the open form's fields so the generic
browser_*tools can finish the edit. Please open an issue if a LinkedIn tool stops working.Hosted mode (Docker / MCPize) runs headless and has the LinkedIn tools disabled, because signing in needs a window on your own computer. Use LinkedIn features with a local install.
π©Ί Troubleshooting
Problem | Fix |
"Could not start a browser β¦ Executable doesn't exist" | Install Google Chrome, or set |
"profile folder is in use" | Another window is using that profile (e.g. a previous run). Close it or use a different |
Search says CAPTCHA | Headless browsers often get bot checks. Use the default |
"Ref β¦ run browser_snapshot again" | The page changed after the snapshot; take a new one. |
LinkedIn: "Not signed in" | Run |
Windows: "An Application Control policy has blocked this file" | Smart App Control blocked a freshly downloaded Python extension. Install with the versions in |
π§ͺ Development & Tests
uv sync
uv run python -m unittest discover -s tests -vThe suite (27 tests) drives a real headless browser against a local fake website β including a fake search engine and a fake LinkedIn with edit dialogs β so it needs no internet access and no LinkedIn account. Set BROWSER_CHANNEL=chromium to test with the bundled browser.
π€ Author & License
Pawan Gunjkar β pawangunjkar@gmail.com Β· GitHub
MIT License β see LICENSE.
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
Let AI agents use your real, signed-in Chrome: tabs, clicks, forms, screenshots and video.
Let your AI agent operate any website through a real, logged-in browser session.
Run reusable browser automations from your AI assistant: scrape sites, extract data, fill forms.
AI-powered browser automation β navigate, click, fill forms, and extract data from any website.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to automate web browsers through Playwright, providing capabilities for navigation, content extraction, form filling, screenshot capture, and JavaScript execution. Supports multiple browser engines with comprehensive error handling and security features.1-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to control web browsers through Playwright automation, providing 50+ tools for navigation, interaction, testing, accessibility audits, and visual testing across Chromium, Firefox, and WebKit.-
- AlicenseNot gradedqualityCmaintenanceLets AI assistants control your real Chrome browser to perform web tasks like reading pages, taking screenshots, clicking, and typing, using your existing logged-in sessions.145MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control a user's real browser through a browser extension, using existing profiles, cookies, and logins to navigate, interact, and extract content without headless automation.Apache 2.0