网页MCP工具 是 AI Skill Hub 本期精选MCP工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
将现有网页转换为MCP服务器,实现代理控制
网页MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
将现有网页转换为MCP服务器,实现代理控制
网页MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/mcpland/webpage-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"--mcp--": {
"command": "npx",
"args": ["-y", "webpage-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 网页MCP工具 执行以下任务... Claude: [自动调用 网页MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"__mcp__": {
"command": "npx",
"args": ["-y", "webpage-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<p align="center"> <img src="logo.png" alt="Webpage MCP" width="160" /> </p>
<p align="center"> <strong>Turn your webpage into a fully-featured MCP server</strong> </p>
<p align="center"> <a href="https://github.com/mcpland/webpage-mcp/actions/workflows/ci.yml"><img src="https://github.com/mcpland/webpage-mcp/actions/workflows/ci.yml/badge.svg" alt="CI" /></a> <a href="https://www.npmjs.com/package/webpage-mcp"><img src="https://img.shields.io/npm/v/webpage-mcp.svg" alt="npm" /></a> <a href="https://chromewebstore.google.com/detail/webpage-mcp-connector/iehgbogeakiedihodennfcnigojnncag?hl=en"><img src="https://img.shields.io/github/v/release/mcpland/webpage-mcp.svg" alt="Release" /></a> <a href="https://github.com/mcpland/webpage-mcp/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/webpage-mcp" alt="License" /></a> <a href="https://chromewebstore.google.com/detail/webpage-mcp-connector/iehgbogeakiedihodennfcnigojnncag?hl=en"><img src="https://img.shields.io/badge/Chrome-Extension-4285F4?logo=googlechrome&logoColor=white" alt="Chrome Extension" /></a> </p>
<p align="center"> Let AI assistants like Claude, Cursor, Windsurf, Codex, and other <a href="https://modelcontextprotocol.io/">MCP</a>-compatible clients control your webpage — navigate pages, take screenshots, click elements, read content, capture network traffic, run JavaScript, and much more. </p>
---
| Feature | Description | |
|---|---|---|
| :grinning: | **Chatbot/Model Agnostic** | Let any LLM, chatbot client, or agent automate your browser |
| :star: | **Use Your Original Browser** | Seamlessly integrate with your existing browser environment (configs, login states, etc.) |
| :computer: | **Fully Local** | Pure local MCP server ensuring user privacy |
| :electric_plug: | **Native Stdio Transport** | Native Messaging + stdio only (no localhost HTTP port) |
| :racing_car: | **Cross-Tab** | Cross-tab context support |
| :control_knobs: | **Workflow Runtime** | Record, publish, trigger, and replay flows; expose saved browser workflows as MCP tools |
| :speech_balloon: | **In-Browser Agent UX** | Built-in sidepanel, Quick Panel, element picker, and workflow views keep the agent inside Chrome |
| :building_construction: | **Apply-to-Code Web Editor** | Visual in-page editing with transactions, undo/redo, and structured apply payloads for coding agents |
| :brain: | **Semantic Search** | Built-in vector database for intelligent browser tab content discovery |
| :mag: | **Smart Content Analysis** | AI-powered text extraction and similarity matching |
| :globe_with_meridians: | **20+ Tools** | Screenshots, network monitoring, interactive operations, bookmark management, browsing history, and more |
| :rocket: | **SIMD-Accelerated AI** | Custom WebAssembly SIMD optimization for 4-8x faster vector operations |
flow.<slug>)Cmd+Shift+E)Cmd+Shift+U)---
pnpm install
pnpm install
pnpm build:wasm # Build and copy to extension ```
<details> <summary><strong>Click to expand</strong></summary>
```bash git clone https://github.com/mcpland/webpage-mcp.git cd webpage-mcp
pnpm build
#### 2. Install the Chrome Extension
1. Open Chrome and navigate to `chrome://extensions/`
2. Enable **Developer mode** (toggle in top right)
3. Click **Load unpacked**
4. Select the `app/chrome-extension/.output/chrome-mv3` folder
> This repository does not currently commit binary release zip files. To generate one locally, run `pnpm --filter webpage-mcp-connector zip` and use the artifact from `app/chrome-extension/.output/`.
#### 3. Start MCP Client First
Use the local stdio entry in your MCP client config (example below). On startup, `mcp-server-stdio` will attempt silent bootstrap (manifest/runtime check + user-level auto-register).
#### 4. Fallback: Manual Register (Only If Needed)
If the extension still cannot connect, run:
bash
node app/mcp-server/dist/cli.js doctor
1. Install the Webpage MCP Connector Chrome extension first in chrome web store. https://chromewebstore.google.com/detail/webpage-mcp-connector/iehgbogeakiedihodennfcnigojnncag?hl=en.
2. Add webpage-mcp to your MCP client config:
{
"mcpServers": {
"webpage-mcp": {
"command": "npx",
"args": ["-y", "-p", "webpage-mcp@latest", "webpage-mcp-stdio"]
}
}
}
3. Start your MCP client (with Chrome open and extension enabled).
webpage-mcp-stdio now performs silent bootstrap on startup: it checks Native Messaging manifest/runtime and auto-registers user-level host when needed.
4. If extension still cannot connect, use fallback recovery:
welcome.html or popup and copy the register command (already includes current extension ID), then run it:npx -y webpage-mcp@latest register --browser chrome --force --extension-id <extension_id_from_popup_or_welcome>
npx -y webpage-mcp@latest doctor --fix
<details> <summary><strong>When do I need to re-register?</strong></summary>
For most users, manual registration is not required because startup bootstrap handles it automatically.
If you did run manual registration, it is typically one-time per machine/profile. You do not need to re-run it for normal restarts (OS/Chrome/MCP client). Re-run only when:
</details>
```bash
Add to your Claude Desktop MCP config (claude_desktop_config.json) — use the same npx stdio config above.
Codex stores MCP configuration in ~/.codex/config.toml by default. You can also use a project-local .codex/config.toml when the server should only be enabled for one repository.
Add webpage-mcp with a [mcp_servers.<server-name>] TOML table:
[mcp_servers."webpage-mcp"]
command = "npx"
args = ["-y", "-p", "webpage-mcp@latest", "webpage-mcp-stdio"]
command is required. args is optional and should be an array when used.
You can also add it with Codex CLI:
codex mcp add webpage-mcp -- npx -y -p webpage-mcp@latest webpage-mcp-stdio
After adding the server, restart Codex if needed and use /mcp in the Codex TUI to confirm webpage-mcp is enabled.
npx -y webpage-mcp@latest register [options]
Options:
-f, --force Compatibility flag (accepted; registration is currently idempotent)
-s, --system System-level install (requires sudo/admin)
-b, --browser <browser> Target browser: chrome, chromium, or all
-d, --detect Auto-detect installed browsers
-e, --extension-id <id> Override extension ID(s) for allowed_origins (comma-separated)
<details> <summary><strong>Additional registration details</strong></summary>
When --browser chrome is used, the installer also writes channel-compatible manifests on macOS/Linux (for example Chrome Stable/Beta/Canary/Chrome for Testing paths) to reduce "native host not found" channel mismatch issues. The installer also attempts to discover local unpacked Webpage MCP Connector extension IDs from browser profiles and add them to allowed_origins.
For unpacked extensions with a custom ID, you can re-register with:
npx -y webpage-mcp@latest register --browser chrome --extension-id <your_extension_id>
The extension popup and welcome page can generate this command automatically using chrome.runtime.id, which avoids manual ID lookup mistakes. The generated command may include --force; this flag is optional.
</details>
---
node app/mcp-server/dist/cli.js register --detect
| Command | Description |
|---|---|
register | Register the Native Messaging host manifest |
fix-permissions | Fix execution permissions for native host files |
doctor | Diagnose installation and environment issues |
report | Export a diagnostic report for troubleshooting |
node app/mcp-server/dist/cli.js register --browser chrome --extension-id <your_extension_id>
This writes/updates the JSON manifest in Chrome's `NativeMessagingHosts/` directory so Chrome can launch the MCP server process.
#### 5. Verify Installation
bash
```bash
pnpm dev:extension # Dev mode with HMR pnpm build:extension # Production build
cd app/chrome-extension && pnpm test
<details> <summary><strong>Extension fails to connect</strong></summary>
npx -y webpage-mcp@latest doctorwebpage-mcp npm package versions match, especially after a fresh npm release</details>
<details> <summary><strong>MCP client can't reach the server</strong></summary>
npx -y webpage-mcp@latest doctor)command: "npx", args: ["-y", "-p", "webpage-mcp@latest", "webpage-mcp-stdio"])</details>
<details> <summary><strong>Tools return errors or time out</strong></summary>
chrome://extensions/ > Inspect views)chrome_network_capture) require specific page states</details>
<details> <summary><strong>Generate a diagnostic report</strong></summary>
npx -y webpage-mcp@latest report --copy # Copies to clipboard
npx -y webpage-mcp@latest doctor --fix # Auto-fix common issues
</details>
---
Webpage MCP 是一个强大的工具,旨在将您的网页直接转化为功能完备的 MCP server。通过该项目,您可以让 LLM、聊天机器人客户端或 AI Agent 具备自动化操作浏览器的能力,实现从网页内容到智能交互的无缝衔接。
本项目具备高度的通用性,支持任何 Chatbot 或 Model Agnostic 的模型进行浏览器自动化。它能与您现有的浏览器环境无缝集成,并提供 AI Agent Chat Sidepanel 侧边栏,支持在 Chrome 中直接与 Claude Code CLI 或 OpenAI Codex CLI 交互。此外,您还可以通过 Record、Replay 功能记录并发布浏览器动作流,将其转化为动态的 MCP tools(如 `flow.<slug>`)供 AI 调用。
在开始之前,请确保您的开发环境已安装 pnpm。若需构建 WASM 组件,系统必须配置 Rust toolchain 以支持 WASM SIMD。请通过 `pnpm install` 安装基础依赖,并根据需要运行 `pnpm build:wasm` 进行构建。
开发者可以通过源码构建:首先使用 git clone 克隆仓库,随后运行 `pnpm build` 构建所有 package。完成后,需进入 `app/chrome-extension/.output/chrome-mv3` 目录,通过 Chrome 的 `chrome://extensions/` 页面开启 Developer mode,并使用 Load unpacked 方式加载插件。若需生成二进制 zip 包,可运行 `pnpm --filter webpage-mcp-connector zip`。
快速上手非常简单:首先在 Chrome Web Store 安装 Webpage MCP Connector 扩展程序;接着,在您的 MCP client 配置文件中添加 `webpage-mcp` 的配置项,使用 `npx` 命令启动 stdio 服务,即可开始体验 AI 驱动的网页自动化。
您可以根据使用的客户端进行配置。对于 Claude Desktop,请在 `claude_desktop_config.json` 中添加相应的 npx 配置;对于 Codex,则需在 `~/.codex/config.toml` 或项目本地的 `.codex/config.toml` 中通过 TOML 格式定义 `[mcp_servers."webpage-mcp"]` 表项。
项目提供内置的 CLI 工具用于管理。您可以在仓库根目录下通过 `node app/mcp-server/dist/cli.js` 调用相关命令。例如,使用 `register --detect` 自动注册 Native Messaging host 配置文件,或使用 `fix-permissions` 修复执行权限问题。
在高级工作流中,您可以手动指定浏览器类型或 Extension ID 来注册服务,例如使用 `node app/mcp-server/dist/cli.js register --browser chrome --extension-id <ID>`。这会更新 Chrome 的 NativeMessagingHosts 目录,确保 Chrome 能正确启动 MCP server 进程。此外,项目支持针对 Chrome extension 的开发模式(HMR)和生产环境构建。
如果遇到扩展程序无法连接的问题,请首先运行 `npx -y webpage-mcp@latest doctor` 进行环境诊断。确保您的 Node.js 版本大于等于 20,并检查 Chrome 扩展程序与 `webpage-mcp` npm 包的版本是否保持一致,以避免兼容性问题。
开源MCP工具,实现网页代理控制
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,网页MCP工具 在MCP工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | webpage-mcp |
| 原始描述 | 开源MCP工具:Turn your existing webpages into an MCP server for agent control。⭐11 · TypeScript |
| Topics | ai-agentbrowser-agentbrowser-automationmcp-servertypescript |
| GitHub | https://github.com/mcpland/webpage-mcp |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-25 · 更新时间:2026-05-26 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端