edge-profile-mcp
Provides web search through Sogou as one of the MCP server's search engines, with relevance filtering and fallback to other engines when results are blocked or degraded.
Click on "Deploy 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., "@edge-profile-mcp open bing.com, search for MCP server examples, and summarize the top results"
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.
edge-profile-mcp
An MCP server that drives the real Microsoft Edge installed on your machine, running in a private, persistent profile that is completely separated from your daily browser data.
The point is simple: you get a normal-looking Edge window with working extensions, audio, scrollbars and real window sizing — but its cookies, logins, history and settings live in their own directory. Your everyday Edge profile is never read and never modified, and the two browsers can run at the same time.
Why a separate profile instead of a temp context
Temp context (typical Playwright MCP) | This project | |
Browser binary | Real Edge | Real Edge |
Data location | In-memory, discarded on close | Dedicated directory on disk |
Login survives restart | No | Yes |
Coexists with your daily Edge | Yes | Yes |
Window looks like a normal browser | No (automation bar, muted, no scrollbars, extensions off) | Yes |
Risk of touching daily data | None | None — paths are validated |
The trade-off is explicit: the automation profile persists. If you sign in inside it, that session is still there next time. Delete the directory to reset.
Related MCP server: cdt
Install
As a ZCode / Claude plugin
Add this repository as a plugin marketplace, then install edge-profile-mcp.
The server is launched automatically through uv run, so no manual Python
environment is required.
As a Python package
pip install git+https://github.com/Dongmingyue-loss/edge-profile-mcp.git
# or, for development:
git clone https://github.com/Dongmingyue-loss/edge-profile-mcp.git
cd edge-profile-mcp
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .Requirements: Windows, Python 3.10+, and Microsoft Edge installed
system-wide. pip install does not install Edge — install it the normal way
first.
Manual MCP configuration
{
"mcpServers": {
"edge-profile-mcp": {
"command": "edge-profile-mcp",
"timeoutMs": 60000
}
}
}Command line
An interactive line-oriented session is bundled for debugging:
edge-profile-clistart {}
navigate {"tab_id": "tab-1", "url": "https://example.com"}
snapshot {"tab_id": "tab-1"}
screenshot {"tab_id": "tab-1", "path": "screenshot.png"}
close
exitEach line is a command name plus an optional JSON object. Results go to stdout
as JSON, errors to stderr. Type help for all commands.
Tools
MCP and CLI share operation names and most parameters. Differences: the CLI
start returns {"tab_id": ...} while MCP returns the id string, and the CLI
screenshot requires a path.
Tool | Parameters | Result |
| optional | first tab id |
| — | confirmation; session can be started again |
| — |
|
| optional | new tab id |
|
| confirmation |
|
|
|
|
|
|
|
| viewport PNG (CLI also needs |
|
| confirmation |
|
| confirmation |
|
| selected values |
|
| confirmation |
|
|
|
|
|
|
|
|
|
|
|
|
Selector rules
Specify exactly one of css or role. name may only be used with role
and matches the accessible name exactly. A selector matching several elements
fails rather than guessing.
fill {"tab_id": "tab-1", "css": "#query", "value": "example"}
click {"tab_id": "tab-1", "role": "button", "name": "Search"}
select {"tab_id": "tab-1", "css": "select", "label": "Option"}
press {"tab_id": "tab-1", "css": "input", "key": "Enter"}Defaults and limits
start defaults: visible browser, 10 000 ms timeout, 20 tabs, 30 000 snapshot
characters, 5 000 000 screenshot bytes. Ranges: timeout 1–60 000 ms, tabs 1–100,
snapshot 1–200 000 chars, screenshot 1–20 000 000 bytes. Oversized screenshots
error; oversized snapshots are truncated with truncated: true.
Headless mode uses a 1280×720 viewport. Headed mode maximises a real window and uses the actual window size.
Content extraction and search
Three tools go beyond page interaction, aimed at research work: turning pages into text, harvesting links, and finding sources.
fetch_text — clean article text
Fetches the page through the browser's own request context, decodes the raw
bytes explicitly, and prefers the rendered DOM. source reports which path was
taken: rendered or static.
Explicit decoding matters for real sites: several Chinese government pages
declare UTF-8 but serve GB18030, and Edge's text decoder turns those into
mojibake. Reading the body bytes and decoding with gb18030 when the declared
charset is GB avoids that class of error entirely.
With save=True the text is written to the cache directory and path is
returned; the file starts with URL: and TITLE: header lines.
fetch_links — anchors on a page
Returns [{href, text}], capped by limit. Parsed in the DOM first, so anchors
created by scripts are included, with a raw-HTML regex as fallback.
search_web — find sources
Searches through a short list of engines and filters results to trusted domains (government, academic, major health). Engine order: Bing (submitting its own search form), 360 / So.com (plain URL — it does not challenge), then Sogou, then Bing RSS as a last resort.
The form submission is not cosmetic. Bing can return HTTP 200 with a full-looking page while every result matches only the query's first character — a silent degradation that looks like success. Submitting the home-page form reduces this; it does not eliminate it, because the behaviour is intermittent. See ANTI-BOT.md for the measurements.
Because no request shape is trustworthy, every result set passes a relevance
check before being accepted, and a failing engine falls through to the next. When
all engines are blocked or degraded the tool returns total: 0 with
blocked_engines / degraded_engines and a hint, rather than passing page
furniture off as results.
search_web("流感疫苗 接种") → engine: bing
- 中国疾病预防控制中心发布《中国流感疫苗预防接种技术指南…》
https://www.chinacdc.cn/jkts/202609/t20260903_1839780.htmlAbout So.com: it wraps every outbound link in a /link?m=... redirect, but each
wrapped anchor carries the real destination in a data-mdurl attribute, so no
redirect is followed. Results are extracted from a[data-mdurl] rather than from
li.res-list, whose containers hold mostly aggregate cards.
Command line tools
Beyond the interactive CLI, three research commands are installed:
edge-fetch links <url> [url ...] # anchors as JSON
edge-fetch text <url> [url ...] # save page text into the cache
edge-fetch get <url> # print text to stdout
edge-fetch file urls.txt # one URL per line
edge-search "query" ["query" ...] # Bing/Sogou in a real tab
edge-search --all "query" # do not restrict to trusted domains
edge-search-rss "query" # Bing RSS, no browser at allThey share the same controller, profile and cache as the MCP server, so no separate browser is launched and data isolation is identical.
Cache location defaults to %LOCALAPPDATA%\edge-automation-mcp\cache
(override with EDGE_AUTOMATION_CACHE_DIR or cache_dir on start).
Profile and download locations
Setting | Default | Override |
Profile |
|
|
Downloads | disabled |
|
Cache |
|
|
Browser | Edge ( |
|
The browser override exists for CI, where no Edge is installed and Playwright cannot install one. It changes only which binary is launched; the private-profile isolation, extraction and search behaviour are identical.
Pointing profile_dir at a daily-driver browser data directory (Edge, Chrome,
Brave, Firefox) is rejected. One profile directory can be open by only one Edge
instance at a time; a second start on it reports profile_dir is already in use.
Downloads are saved only inside download_dir, with the server-provided filename
sanitised into a path-free legal name; existing files are never overwritten
(-1, -2, … are appended instead).
Session lifecycle
start → launch Edge on the private profile, adopt the blank first tab
⋮
close → context → browser → Playwright, in that orderRepeated start without close errors. BrowserController.close() is
idempotent and also runs after a partial startup failure. Process crashes, forced
termination or power loss cannot guarantee cleanup, so a stray Edge process may
remain and must be checked by the operator.
All browser calls run on one dedicated thread; the controller refuses calls from any other thread. This is required because Playwright's synchronous API is bound to its creating thread, and it means operations are serialised, not concurrent.
Security model
What is guaranteed
Never reads or writes your daily Edge profile; daily-profile paths are rejected.
stdio only — no listening port, no HTTP surface.
No arbitrary JavaScript execution tool; page content is read as an accessibility snapshot.
Absolute
http/httpsURLs only; embedded credentials, control characters and surrounding whitespace are rejected; non-HTTP(S) top-level navigation is blocked.All inputs and outputs are bounded; downloads are confined to one directory.
What is explicitly not covered
Not a sandbox. The browser has the privileges and network access of the account running the server.
Not SSRF protection. No allow-list for public, private, loopback or link-local targets, and redirects are not network-isolated.
Page content is untrusted. Snapshots, titles and screenshots may contain prompt injection. Never treat page text as instructions or authorisation.
Actions have real side effects. Submitted forms, sent requests and remote changes are not undone by closing the session. Timeouts do not prove that nothing happened — verify before retrying.
A signed-in automation profile is a credential store. Anyone who can start the server can use those sessions.
See SECURITY.md for the full policy and private reporting route.
Development
.\.venv\Scripts\python.exe -m unittest discover -s tests -t . -vThe suite starts real Edge instances against a local http.server fixture — no
public internet access is needed. tests/test_tools.py covers the parsing rules
with no browser at all and runs in under a second. See
CONTRIBUTING.md, ANTI-BOT.md and
TECHNICAL-DESIGN.md (Chinese) for architecture details.
License
MIT © 2026 董铭月
Available Tools
16 toolsclickB
Click one element; specify exactly one of css or role, with optional role name.
Inputs: tab_id (required), css, name, role. Returns: result
click_and_wait_downloadB
Click an element that triggers a file download and save it to download_dir.
Inputs: tab_id (required), css, name, role, +1 more. Returns: object
closeA
Close the browser session; it can be started again.
Inputs: no named parameters. Returns: result
close_tabC
Close the specified tab.
Inputs: tab_id (required). Returns: result
fetch_linksC
Return the anchors on a page as {href, text} records, capped by limit.
Inputs: url (required), limit. Returns: object
fetch_textB
Fetch one page as clean text, decoding GB18030 and UTF-8 correctly.
Prefers the rendered DOM and falls back to a raw-body parse when the page is too thin. With save=True the text is cached under the cache directory and the returned path is included.
Inputs: url (required), save, wait_ms. Returns: object
fillC
Fill one element; specify exactly one of css or role, with optional role name.
Inputs: value (required), tab_id (required), css, name, +1 more. Returns: result
list_tabsA
List open tabs with their IDs, URLs, and titles.
Inputs: no named parameters. Returns: result
new_tabB
Open a tab, optionally navigating to an HTTP(S) URL.
Inputs: url. Returns: result
pressC
Press a key on one element, targeted by css or role and optional name.
Inputs: key (required), tab_id (required), css, name, +1 more. Returns: result
screenshotB
Return a size-limited PNG screenshot of the current viewport.
Inputs: tab_id (required).
search_webA
Search Sogou then Bing in a real tab and return matching results.
With trusted_only=True only government, academic and major health domains are kept. Falls back to Bing RSS when neither search page yields results.
Inputs: query (required), limit, trusted_only. Returns: object
selectC
Select an option by value or label; target it by css or role and optional name.
Inputs: tab_id (required), css, name, role, +2 more. Returns: result
snapshotB
Return a bounded accessibility snapshot and its truncation flag.
Inputs: tab_id (required). Returns: object
startA
Start the real installed Edge on a private, persistent profile.
Cookies, logins, history and settings live in profile_dir and never mix with the Edge profile you use day to day. The directory defaults to %LOCALAPPDATA%\edge-automation-mcp\profile (overridable with the EDGE_AUTOMATION_PROFILE_DIR environment variable) and survives restarts. Pass download_dir to allow file downloads; they are saved only there. cache_dir stores fetched page text and search results.
Inputs: headless, max_tabs, cache_dir, timeout_ms, +4 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Each tool has a clearly distinct role across session lifecycle, tab management, navigation, inspection, interaction, downloads, and content extraction. The only potentially adjacent tools, fetch_text and snapshot, serve different purposes (clean text vs. accessibility tree), and click vs. click_and_wait_download is explicitly differentiated by download behavior.
The set is consistently snake_case and mostly uses predictable verb_noun or single-verb command names. Minor inconsistency exists between single-verb tools like click, fill, press, navigate and compound names like list_tabs, click_and_wait_download, and fetch_text, but the pattern remains clear and readable.
Sixteen tools is reasonable for a browser automation server covering session management, tabs, navigation, interaction, screenshots, downloads, and text/search extraction. It is slightly above the typical 3–15 range, but each tool maps to a meaningful browser capability rather than redundant surface area.
The surface covers the core browser lifecycle well: start/close, tab creation/listing/closing, navigation, DOM inspection, screenshots, form interaction, downloads, and text/link/search extraction. Some useful operations are absent, such as explicit tab activation, back/forward/reload, JavaScript execution, and wait-for-condition helpers, but most workflows can work around these gaps via navigate and snapshot.
Maintenance
Related MCP Connectors
Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Undetectable cloud browser sessions for AI agents and scrapers. Navigate, extract, click, captcha.
Automate cloud browsers to navigate websites, interact with elements, and extract structured data.…
Launch, inspect, control, and share isolated cloud browsers for your agents.
Related MCP Servers
- AlicenseCqualityCmaintenanceEnables control of Microsoft Edge browser via the DevTools protocol, supporting page navigation, screenshots, DOM manipulation, JavaScript execution, and network monitoring.1416MIT
- FlicenseNot gradedqualityDmaintenanceEnables driving an isolated, already-logged-in Microsoft Edge browser from the shell by reusing your daily Edge's login cookies through a browser-extension bridge.-
- AlicenseBqualityDmaintenanceEnables low-latency, structured browser automation through a local MCP server, supporting safe navigation, observation, table extraction, and verified clicks on Windows with a dedicated Edge profile.14Apache 2.0
- AlicenseBqualityBmaintenanceEnables MCP agents to drive an already signed-in Chrome or Edge browser through a local extension bridge, controlling existing tabs and opening task-related HTTP(S) tabs without remote debugging or profile copying.23MIT