跳到正文
DEV Community· doujiaozh·· 16 天前AI 評分51

Omni-Web-MCP:如何構建零依賴的 AI 網頁瀏覽 MCP 伺服器

How I built a zero-dependency MCP server for AI web browsing

AI 導讀

doujiaozh 構建了 Omni-Web-MCP,一個用於 AI 網頁瀏覽的零依賴 MCP 伺服器,採用 Node.js 內置功能和單一 IIFE 客戶端。

正文

doujiaozh

Stop copy-pasting web elements into Claude or Cursor. I built Omni-Web-MCP to solve this.

Most existing MCP web servers require heavy dependencies (Puppeteer, Chromium) and are painful to set up. Omni-Web-MCP uses zero dependencies—just Node.js built-ins and a single IIFE client. It even runs perfectly on Windows 7.

It exposes 5 core tools (get_dom_tree, click_element, input_text, scroll_page, list_pages) and includes a 192-bit timing-safe pairing token for security.

Quick Start

  1. Start the hub:

bash
npx -y github:doujiaozh/omni-web-mcp

來源:DEV Community · dev.to