microsoft-edge-mcp

microsoft-edge-mcp

A native TypeScript/Node.js MCP server providing low-level, high-performance control over Microsoft Edge via raw CDP WebSockets, bypassing heavy automation layers like Playwright or Puppeteer.

Category
访问服务器

README

Microsoft Edge MCP Server (microsoft-edge-mcp)

A native TypeScript/Node.js Model Context Protocol (MCP) server that provides low-level, high-performance control over the Microsoft Edge browser. Built using raw WebSockets (ws) to talk directly to Edge's Chrome DevTools Protocol (CDP) port, bypassing heavy automation layers like Playwright or Puppeteer.


Features

🌟 Core CDP Capabilities

Full parity with chrome-devtools-mcp but optimized for Edge:

  • Navigation: navigate_page (url, back, forward, reload)
  • Interaction: click, fill, fill_form (multi-field), hover, drag, press_key, type_text
  • Page Management: list_pages, new_page, select_page (reconnects active target), close_page
  • Observation: take_screenshot (viewport/full page/element clip), take_snapshot (Accessibility Tree + lightweight DOM outline fallback)
  • Execution: evaluate_script (JS execution in page context)
  • Console & Network: list_console_messages, get_console_message, list_network_requests, get_network_request (captures response bodies)
  • Tracing & Performance: performance_start_trace, performance_stop_trace, performance_analyze_insight

🌀 Edge-Exclusive Capabilities

Dedicated integration hooks exploiting Microsoft Edge's unique feature set:

  • edge_open_sidebar — Opens specific sidebar panels (e.g., Copilot, Tools, Shopping) using internal Edge hooks or keyboard shortcuts.
  • edge_toggle_ie_mode — Toggles Internet Explorer mode for legacy compatibility testing.
  • edge_list_sleeping_tabs / edge_wake_tab — Exposes Edge's sleeping/discarded tab management states.
  • edge_add_to_collections — Adds the current page to the user's Edge Collections.
  • edge_add_to_reading_list — Integrates with Edge's reading list.
  • edge_web_capture — Triggers Edge's native web clipping tool (Ctrl+Shift+S).
  • edge_open_settings — Direct deep-links to browser internal settings page (edge://settings/<path>).
  • edge_check_compat — Inspects the active document for IE/EdgeHTML compatibility meta tags and rendering modes.

Enforced Design Principles (Ponytail senior dev style)

  • Zero Automation Wrappers: No Puppeteer, Playwright, or Selenium. Automation goes through raw CDP JSON-RPC over WebSockets.
  • Binary Search Sequence: Finds Edge by searching EDGE_PATH env var ➡️ OS Registry (Windows) ➡️ OS-specific default paths ➡️ which msedge.
  • Dynamic Port Allocation: Launches debugging on port 9222. If busy, it automatically increments to 9223, using isolated port-specific user-data profiles to avoid locking conflicts.
  • Best-Effort Edge Tools: Where Edge lacks native CDP hooks for UI features, fallback keyboard shortcut injections (Input.dispatchKeyEvent) or Runtime.evaluate scripts are used, marked cleanly with ponytail: comments mapping ceilings and upgrade paths.

File Structure

microsoft-edge-mcp/
├── package.json
├── tsconfig.json
├── README.md
├── src/
│   ├── index.ts           # MCP server entry, stdio transport, tool registrations
│   ├── edge.ts            # Binary detection + auto-launch + port scanning
│   ├── cdp.ts             # Raw WebSocket CDP client & connection utilities
│   └── tools/
│       ├── navigation.ts  # navigate_page
│       ├── interaction.ts # click, hover, drag, press_key, type_text
│       ├── capture.ts     # take_screenshot, take_snapshot
│       ├── evaluate.ts    # evaluate_script
│       ├── network.ts     # list_network_requests, get_network_request
│       ├── console.ts     # list_console_messages, get_console_message
│       ├── pages.ts       # list_pages, new_page, select_page, close_page
│       ├── forms.ts       # fill, fill_form
│       ├── perf.ts        # performance_*
│       └── edge/          # Edge-exclusive tool handlers
│           ├── sidebar.ts
│           ├── ie_mode.ts
│           ├── sleeping_tabs.ts
│           ├── collections.ts
│           ├── reading_list.ts
│           ├── web_capture.ts
│           ├── settings.ts
│           └── compat.ts
└── self-check.ts          # Dependency-free integration tests

Installation & Setup

Prerequisites

  • Node.js (Latest LTS recommended)
  • Microsoft Edge installed on the host machine

One-Line Auto-Install (Via GitHub)

To automatically download, compile, and configure this MCP server inside your Antigravity and Claude Desktop config files in a single command, run:

npx -y github:RawKnuck/microsoft-edge-mcp --install

Local Installation & Registration (Cloned)

If you have cloned the repository locally, you can build the project and auto-register it with both Antigravity and Claude Desktop by running:

npm run configure

Alternatively, to manually build and test:

  1. Install dependencies:
    npm install
    
  2. Compile TypeScript:
    npm run build
    
  3. Run Automated Self-Checks:
    node build/self-check.js
    

Agent Setup & Compatibility

This MCP server is built using standard Model Context Protocol stdio transport, ensuring compatibility with all major agentic platforms.

1. Antigravity (Google DeepMind Agentic IDE)

  • Automatic Configuration: Run the one-line install command above. It automatically registers the server in ~/.gemini/config/mcp_config.json.
  • Manual Configuration: Open your ~/.gemini/config/mcp_config.json (or select "Manage MCP Servers" -> "View raw config" in the agent panel) and add:
    {
      "servers": {
        "microsoft-edge-mcp": {
          "command": "npx",
          "args": ["-y", "github:RawKnuck/microsoft-edge-mcp"]
        }
      }
    }
    

2. Claude Desktop

  • Automatic Configuration: Run the one-line install command above. It automatically registers the server in your claude_desktop_config.json.
  • Manual Configuration: Add the following to your claude_desktop_config.json:
    {
      "mcpServers": {
        "microsoft-edge-mcp": {
          "command": "npx",
          "args": ["-y", "github:RawKnuck/microsoft-edge-mcp"]
        }
      }
    }
    

3. Cursor

  1. Go to Settings > Features > MCP.
  2. Click + Add New MCP Server.
  3. Fill in the following fields:
    • Name: microsoft-edge-mcp
    • Type: command
    • Command: npx -y github:RawKnuck/microsoft-edge-mcp
  4. Click Save.

4. Windsurf

  1. Go to Settings > Advanced > MCP.
  2. Click Add Server.
  3. Fill in the following fields:
    • Name: microsoft-edge-mcp
    • Type: command
    • Command: npx -y github:RawKnuck/microsoft-edge-mcp
  4. Click Save.

5. Cline / Roo Code (VS Code Extensions)

Open your extension settings file (e.g., cline_mcp_settings.json or roo_code_mcp_settings.json) and append:

{
  "mcpServers": {
    "microsoft-edge-mcp": {
      "command": "npx",
      "args": ["-y", "github:RawKnuck/microsoft-edge-mcp"]
    }
  }
}

6. Aider

Create or update your .aider.conf.yml file to include:

mcp-servers:
  microsoft-edge-mcp:
    command: npx
    args: ["-y", "github:RawKnuck/microsoft-edge-mcp"]

7. Claude Code (CLI Agent)

Run the following command in your terminal to register the server:

/plugin add github:RawKnuck/microsoft-edge-mcp

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选