Edge DevTools MCP
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 DevTools MCP navigate to example.com 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.
Edge DevTools MCP
Technical Overview & Metadata
Package Name:
edge-devtools-mcpSpecification: Model Context Protocol (MCP) Standard Server
Target Engine: Microsoft Edge (Chromium runtime) & Chrome DevTools Protocol (CDP)
Primary Runtime: Node.js >= 18.0.0
Supported Platforms: Windows 10/11, macOS (Apple Silicon / Intel), Linux (x64 / arm64)
Supported AI Clients: Google Antigravity, Claude Code (CLI & Desktop), Cursor, Visual Studio Code (Roo Code, Cline, Continue), Windsurf, Codex
About for Search Engines & Generative AI (SEO / GEO):
edge-devtools-mcpis an open-source, production-grade Model Context Protocol server that bridges Large Language Model (LLM) agents with Microsoft Edge. It provides full-spectrum browser control, ranging from lightweight accessibility tree navigation (saving up to 90% in token consumption) to raw Chrome DevTools Protocol (CDP) invocation for network interception, performance profiling, DOM mutation, cookie manipulation, and console telemetry.
Related MCP server: edge-mcp
Architectural Design
The server exposes a four-tiered tool hierarchy designed for optimal agent reasoning and token efficiency:
flowchart TD
Client["AI Agent / MCP Client<br/>(Antigravity / Claude Code / Cursor / VS Code)"]
subgraph EdgeMCP["Edge DevTools MCP Server (stdio)"]
Router["MCP Request Router & Validator (Zod)"]
subgraph Layers["Execution Capabilities"]
L1["Layer 1: Session & Navigation<br/>(launch, connect, navigate, tabs, close)"]
L2["Layer 2: User Interactions<br/>(click, fill, press_key, hover, scroll)"]
L3["Layer 3: Token-Optimized Inspection<br/>(accessibility tree, screenshot, eval, html)"]
L4["Layer 4: DevTools Protocol (CDP)<br/>(cdp_execute, network, console, cookies, emulation)"]
end
Hybrid["Hybrid Connection Engine<br/>(Auto-detects active Edge port 9222 or launches fresh)"]
end
EdgeInstance["Microsoft Edge Browser<br/>(Local binary / Persistent profile / CDP Session)"]
Client <--> Router
Router --> L1 & L2 & L3 & L4
L1 & L2 & L3 & L4 --> Hybrid
Hybrid <--> EdgeInstanceKey Capabilities
Hybrid Connection Lifecycle: Automatically attaches to an existing Microsoft Edge instance running with
--remote-debugging-port=9222to leverage already authenticated sessions, cookies, and enterprise profiles. If no instance is active, it launches an isolated browser session automatically.Token-Efficient Accessibility Tree: Implements semantic aria snapshot extraction (
edge_get_accessibility_snapshot), providing the LLM with structured element hierarchies and accessibility roles instead of polluting the context window with raw HTML.100% Raw CDP Power: Provides
edge_cdp_executeto execute any native DevTools domain method (Network.*,Page.*,DOM.*,Storage.*,Emulation.*,Performance.*) with custom payloads.Real-Time Telemetry Capture: Captures console output (errors, warnings, logs) and network activity (HTTP status, method, timing, headers) without requiring external proxy setups.
Installation & Setup
You can run the server directly via npx without global installation:
npx -y edge-devtools-mcpOr install globally:
npm install -g edge-devtools-mcpClient Configuration Guides
1. Google Antigravity
Add the server configuration to your MCP configuration file (.gemini/antigravity/mcp.json or through settings):
{
"mcpServers": {
"edge-devtools": {
"command": "npx",
"args": ["-y", "edge-devtools-mcp"]
}
}
}2. Claude Code CLI
Install directly using the Claude Code MCP command:
claude mcp add edge-devtools -- npx -y edge-devtools-mcp3. Claude Desktop
Add to claude_desktop_config.json:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"edge-devtools": {
"command": "npx",
"args": ["-y", "edge-devtools-mcp"]
}
}
}4. Visual Studio Code (Roo Code / Cline / Continue)
Add to your global or workspace mcpSettings.json or extension configuration:
{
"mcpServers": {
"edge-devtools": {
"command": "npx",
"args": ["-y", "edge-devtools-mcp"]
}
}
}5. Cursor
Configure in Settings > Features > MCP or create .cursor/mcp.json:
{
"mcpServers": {
"edge-devtools": {
"command": "npx",
"args": ["-y", "edge-devtools-mcp"]
}
}
}6. Windsurf / Codex
Add to your MCP configuration file:
{
"mcpServers": {
"edge-devtools": {
"command": "npx",
"args": ["-y", "edge-devtools-mcp"]
}
}
}Tools Reference
Navigation & Session Management
Tool Name | Parameters | Description |
|
| Launches Microsoft Edge with optional persistent profile, custom port, or headless mode. |
|
| Connects to an existing Edge debugging session over CDP (default: |
|
| Navigates the active tab to a URL with configurable wait conditions. |
|
| Lists tabs, creates a new tab, switches active tab, or closes an open tab. |
| none | Closes all open pages and terminates the Microsoft Edge process. |
User Interaction
Tool Name | Parameters | Description |
|
| Clicks an element by CSS selector, text match, or XPath. |
|
| Fills input or textarea element with text and optionally presses Enter. |
|
| Sends keyboard keystrokes ( |
|
| Hovers the cursor over a target element to trigger tooltips or menus. |
|
| Scrolls by pixel offsets or scrolls a specific element into view. |
|
| Selects options in dropdown |
Inspection & Token-Optimized Extraction
Tool Name | Parameters | Description |
|
| Recommended for Agents. Returns semantic accessibility tree (roles, names, states) to conserve tokens. |
|
| Returns raw HTML of page or element with configurable character limit. |
|
| Captures screenshot as base64 image or saves directly to a file path. |
|
| Evaluates arbitrary JavaScript inside the page and returns serialized result. |
Edge DevTools & CDP Low-Level Control
Tool Name | Parameters | Description |
|
| Executes any native Chrome/Edge DevTools Protocol command (e.g. |
|
| Inspects captured browser console messages and uncaught runtime errors. |
|
| Inspects network requests, HTTP status codes, and request methods. |
|
| Inspects, injects, or purges session cookies across the browser context. |
|
| Overrides viewport size, mobile touch emulation, and light/dark color scheme. |
Advanced Usage Scenarios
Connecting to Your Daily Authenticated Edge Session
To let the agent use your existing logins (e.g., GitHub, internal dashboards, portals):
Close existing Edge instances or start Edge with a dedicated debug port:
# Windows PowerShell Start-Process msedge.exe -ArgumentList "--remote-debugging-port=9222" # macOS Terminal /Applications/Microsoft\ Edge.app/Contents/MacOS/Microsoft\ Edge --remote-debugging-port=9222 # Linux microsoft-edge --remote-debugging-port=9222The agent automatically detects and attaches to
http://localhost:9222.
Example: Running Raw CDP Commands via Agent
The agent can invoke advanced profiling and network interception using edge_cdp_execute:
{
"method": "Network.emulateNetworkConditions",
"params": {
"offline": false,
"downloadThroughput": 500000,
"uploadThroughput": 500000,
"latency": 50
}
}Local Development & Testing
# Clone the repository
git clone https://github.com/dannymaaz/edge-devtools-mcp.git
cd edge-devtools-mcp
# Install dependencies
npm install
# Run automated tests
npm test
# Build distribution bundle
npm run build
# Test using the official MCP Inspector
npx @modelcontextprotocol/inspector node dist/bin/cli.jsVerification & Quality Assurance
Rigorous Schemas: All tool inputs and outputs are validated with Zod and TypeScript.
Cross-Platform Path Resolution: Automatically locates Microsoft Edge on Windows (
Program Files,Local AppData), macOS (/Applications), and Linux distributions.Resource Cleanup: Guaranteed browser and socket cleanup on
SIGINTandSIGTERMsignals.
License
This project is licensed under the MIT License.
Available Tools
20 toolsedge_cdp_executeC
Execute a raw Chrome/Edge DevTools Protocol (CDP) command directly on the active page (e.g. 'Network.getCookies', 'Page.captureScreenshot', 'Emulation.setDeviceMetricsOverride', 'Performance.getMetrics', 'Storage.clearDataForOrigin'). Gives 100% full DevTools power to the AI agent.
Inputs: method (required), tabId, params.
edge_clickC
Click an element on the active page identified by CSS selector, text content, or role.
Inputs: selector (required), button, timeout, clickCount.
edge_closeA
Close all open tabs and terminate the Microsoft Edge browser session.
Inputs: no named parameters.
edge_connectB
Connect to an already running Microsoft Edge instance with remote debugging enabled (CDP). Defaults to http://localhost:9222.
Inputs: host, port, endpoint.
edge_emulate_deviceC
Emulate device characteristics: viewport size, mobile touch, user agent, or dark/light color scheme.
Inputs: width, height, isMobile, userAgent, +1 more.
edge_evaluateB
Execute arbitrary JavaScript code within the context of the active Edge page and return the serialized result.
Inputs: expression (required).
edge_fillB
Fill or type text into an input, textarea, or contenteditable element on the active page.
Inputs: text (required), selector (required), timeout, pressEnter.
edge_get_accessibility_snapshotA
Get the semantic accessibility tree of the active page. This is the most token-efficient way for an AI agent to inspect interactive elements (buttons, inputs, links, headings) without loading bulky HTML.
Inputs: rootSelector, interestingOnly.
edge_get_console_logsC
Inspect browser console messages and runtime errors produced on the active page or target tab.
Inputs: type, limit, tabId.
edge_get_htmlA
Retrieve raw HTML of the current document or a specific element selector.
Inputs: selector, maxLength.
edge_get_network_activityB
Inspect network traffic, API requests, status codes, and HTTP headers captured on the active tab.
Inputs: limit, tabId, resourceType.
edge_hoverB
Hover mouse cursor over an element to trigger tooltips, dropdown menus, or hover effects.
Inputs: selector (required), timeout.
edge_launchA
Launch a fresh instance of Microsoft Edge browser. Supports headless or headed modes, custom user data directories, and custom viewports.
Inputs: port, headless, userDataDir, viewportWidth, +1 more.
edge_manage_cookiesB
Inspect, set, or clear cookies across the Microsoft Edge browser session.
Inputs: action (required), urls, cookies.
edge_manage_tabsB
Manage Edge browser tabs: list all active tabs, switch active tab, create a new tab, or close an existing tab.
Inputs: action (required), url, tabId.
edge_press_keyB
Send keyboard key combinations to the page (e.g. 'Enter', 'Escape', 'Tab', 'Control+A', 'ArrowDown').
Inputs: key (required), selector.
edge_scrollB
Scroll the page vertically or horizontally by a pixel offset or into a specific target element.
Inputs: deltaX, deltaY, selector.
edge_select_optionB
Select one or more options in a dropdown element.
Inputs: values (required), selector (required).
edge_take_screenshotA
Capture a screenshot of the active page or a specific selector. Can return base64 image data or save directly to a file path.
Inputs: format, quality, filePath, fullPage, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Each tool targets a distinct browser action (click, fill, scroll, hover, screenshot, console, network), so selection is mostly unambiguous. The main overlap is edge_evaluate vs edge_cdp_execute, and edge_emulate_device vs CDP's setDeviceMetricsOverride, since cdp_execute is a catch-all that can duplicate other tools' capabilities.
Every tool uses the edge_ prefix followed by a snake_case verb_noun pattern (edge_click, edge_get_html, edge_manage_tabs, edge_get_network_activity). The convention is applied uniformly across all 20 tools.
20 tools is on the heavier side but each maps to a real browser automation primitive (lifecycle, interaction, inspection, emulation). No tool appears redundant enough to trim, though the surface is near the upper bound for comfortable scoping.
Coverage is broad: lifecycle (launch/connect/close), navigation and tabs, full interaction set, multiple inspection channels, cookies, emulation, plus JS and raw CDP escape hatches. Notable gaps are explicit wait primitives (wait_for_selector/navigation), file upload, and drag-and-drop, though these are partly workable via edge_evaluate.
Related MCP Connectors
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Cloud browser, web extraction, screenshots, and remote CDP tools for AI agents.
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to i…
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
- AlicenseAqualityCmaintenanceEnables MCP clients to drive a running Microsoft Edge browser over the Chrome DevTools Protocol, exposing 16 tools for navigation, clicking, typing, screenshots, page-content reading, and tab management. Runs in stdio mode for per-client processes or as a shared HTTP endpoint so multiple agents can operate the same browser session.16MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables an AI agent to drive the user's actual Microsoft Edge or Chrome profile through a browser extension using tab-scoped CDP, preserving existing cookies and logins without Selenium, Playwright, or a remote debugging port. Exposes tools for listing tabs, reading cookies, evaluating JavaScript, sending raw CDP commands, batching operations, clicking, typing, uploading files, capturing screenshots, and adjusting content settings.MIT
- AlicenseAqualityBmaintenanceEnables coding agents to perform bounded browser tasks by discovering or connecting to local Chromium/Electron endpoints, inspecting pages, and executing grounded page actions or Chrome DevTools operations.7MIT