WebMCP DevTools
一个用于检查、测试和监控通过 navigator.modelContext 注册的 WebMCP 工具的 Chrome 扩展。
English | 中文
什么是 WebMCP?
Web Model Context Protocol (WebMCP) 是一个浏览器原生 API,允许网页通过 为 AI 模型注册工具。WebMCP DevTools 提供强大的侧面板,让你实时查看和操作这些工具。
Power your agent
Install from the publisher. Not a PlugMCP endpoint.
Host a copy with our keys and logs.
No packaged release in the registry yet. Follow the repository README.
Remote URL or a command on your machine? How the two installs differ
Run on PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
LaunchFrom the publisher
一个用于检查、测试和监控通过 navigator.modelContext 注册的 WebMCP 工具的 Chrome 扩展。
English | 中文
Web Model Context Protocol (WebMCP) 是一个浏览器原生 API,允许网页通过 为 AI 模型注册工具。WebMCP DevTools 提供强大的侧面板,让你实时查看和操作这些工具。
Inspect, automate & monitor WebMCP tools via navigator.modelContext. Chrome extension for MCP protocol.
navigator.modelContextWebMCP DevTools 可以将浏览器中的工具桥接到外部 AI 客户端(如 Cursor、Claude Desktop)。
npm install -g webmcp-devtools-server
在 .cursor/mcp.json 中添加:
{
"mcpServers": {
"webmcp-devtools": {
"command": "npx",
"args": ["-y", "webmcp-devtools-server"]
}
}
}
在 claude_desktop_config.json 中添加:
{
"mcpServers": {
"webmcp-devtools": {
"command": "npx",
"args": ["-y", "webmcp-devtools-server"]
}
}
}
webmcp_list_tools 和 webmcp_call_tool 发现和调用浏览器工具在 Chrome Web Store 搜索 WebMCP DevTools 安装。
前置要求: Node.js 18+、pnpm
# 克隆仓库
git clone https://github.com/2019-02-18/WebMCP-DevTools.git
cd WebMCP-DevTools
# 安装依赖
pnpm install
# 构建生产版本
pnpm build
在 Chrome 中加载扩展:
chrome://extensions/.output/chrome-mv3 文件夹使用扩展前,需要先在 Chrome 中启用 WebMCP 标志:
chrome://flags/#enable-webmcp-testing项目包含一个测试页面 test/demo.html,内含多个模拟工具。使用本地服务器(如 VS Code Live Server)打开即可测试,无需真实的 WebMCP 页面。
├── entrypoints/
│ ├── background.ts # Service Worker — 标签页管理、消息路由
│ ├── content.ts # Content Script (ISOLATED) — 与侧面板桥接
│ ├── injected.content.ts # Content Script (MAIN) — 拦截 modelContext
│ └── sidepanel/
│ ├── index.html # 侧面板 HTML 外壳
│ ├── main.ts # 侧面板逻辑 — 渲染、交互
│ └── styles.css # 所有样式、主题、组件
├── lib/
│ ├── types.ts # 共享 TypeScript 接口
│ ├── i18n.ts # 国际化(中文 / 英文)
│ ├── icons.ts # Lucide 风格 SVG 图标定义
│ ├── theme.ts # 主题切换辅助函数
│ ├── storage.ts # chrome.storage.local 工具函数
│ ├── export.ts # 导出:JSON、Markdown、Postman、TypeScript
│ ├── diff.ts # 快照对比引擎
│ ├── schema-renderer.ts # JSON Schema → 可折叠树形视图
│ ├── schema-form.ts # JSON Schema → 交互式表单
│ ├── json-highlight.ts # JSON 语法高亮
│ ├── ai-providers.ts # AI 多 Provider 适配(Gemini/OpenAI/Claude/DeepSeek)
│ └── markdown.ts # Markdown 渲染 + 代码语法高亮
├── server/ # MCP Bridge Server(npm: webmcp-devtools-server)
│ └── src/
│ ├── cli.ts # CLI 入口
│ ├── bridge.ts # WebSocket Bridge 服务
│ └── mcp-server.ts # MCP stdio 协议服务
├── test/
│ └── demo.html # 本地测试页面(含模拟 WebMCP 工具)
├── scripts/
│ └── generate-icons.mjs # 扩展图标生成脚本
├── public/
│ └── icons/ # 生成的扩展图标(16–128px)
├── wxt.config.ts # WXT 框架配置
├── package.json
├── tsconfig.json
├── PRIVACY.md # 隐私政策
└── LICENSE # MIT 许可证
# 启动开发模式(热重载)
pnpm dev
# 构建生产版本
pnpm build
# 打包为 Chrome Web Store 上传用的 zip
pnpm zip
┌──────────────┐
│ AI 客户端 │
│ Cursor/Claude│
└──────┬───────┘
│ stdio (MCP)
┌──────┴───────┐
│ MCP Bridge │
│ Server │
└──────┬───────┘
│ WebSocket
┌──────────────┐ postMessage ┌──────────────┐ chrome.runtime ┌──────┴───────┐
│ 网页 │ ←───────────────→ │ Content │ ←──────────────────→ │ Background │
│ (MAIN) │ │ Scripts │ .sendMessage │ (Service │
│ │ │ (ISOLATED) │ │ Worker) │
│ modelContext │ │ │ │ │
│ .registerTool│ │ │ │ │
└──────────────┘ └──────────────┘ └──────┬───────┘
│
┌──────────────┐ │
│ 侧面板 │ ←────────────────────────────────────────────────────────┘
│ (UI) │ chrome.runtime.sendMessage
│ │
│ 工具列表 │
│ 执行面板 │
│ AI 助手 │
│ 事件时间线 │
└──────────────┘
navigator.modelContext.registerTool() 拦截工具注册window.postMessage ↔ chrome.runtime.sendMessage欢迎贡献!请提交 Issue 或 Pull Request。
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)本项目基于 MIT 许可证 开源。
A Chrome extension for inspecting, testing, and monitoring WebMCP tools registered via navigator.modelContext.
中文 | English
Web Model Context Protocol (WebMCP) is a browser-native API that allows web pages to register tools for AI models through navigator.modelContext. WebMCP DevTools gives you a powerful side panel to inspect and interact with these tools in real-time.
WebMCP DevTools can bridge browser tools to external AI clients (Cursor, Claude Desktop, etc.).
npm install -g webmcp-devtools-server
Add to .cursor/mcp.json:
{
"mcpServers": {
"webmcp-devtools": {
"command": "npx",
"args": ["-y", "webmcp-devtools-server"]
}
}
}
Add to claude_desktop_config.json:
{
"mcpServers": {
"webmcp-devtools": {
"command": "npx",
"args": ["-y", "webmcp-devtools-server"]
}
}
}
webmcp_list_tools and webmcp_call_toolSearch for WebMCP DevTools on the Chrome Web Store.
Prerequisites: Node.js 18+, pnpm
# Clone the repository
git clone https://github.com/2019-02-18/WebMCP-DevTools.git
cd WebMCP-DevTools
# Install dependencies
pnpm install
# Build for production
pnpm build
Then load the extension in Chrome:
chrome://extensions/.output/chrome-mv3 folderBefore using the extension, enable the WebMCP flag in Chrome:
chrome://flags/#enable-webmcp-testingA test page is included at test/demo.html with several mock tools. Open it with a local server (e.g. VS Code Live Server) to try the extension without needing a real WebMCP-enabled site.
├── entrypoints/
│ ├── background.ts # Service Worker — tab tracking, message routing
│ ├── content.ts # Content Script (ISOLATED) — bridge to side panel
│ ├── injected.content.ts # Content Script (MAIN) — intercepts modelContext
│ └── sidepanel/
│ ├── index.html # Side Panel HTML shell
│ ├── main.ts # Side Panel logic — rendering, interactions
│ └── styles.css # All styles, themes, components
├── lib/
│ ├── types.ts # Shared TypeScript interfaces
│ ├── i18n.ts # Internationalization (en / zh)
│ ├── icons.ts # Lucide-style SVG icon definitions
│ ├── theme.ts # Theme application helpers
│ ├── storage.ts # chrome.storage.local utilities
│ ├── export.ts # Export: JSON, Markdown, Postman, TypeScript
│ ├── diff.ts # Snapshot diff engine
│ ├── schema-renderer.ts # JSON Schema → collapsible tree view
│ ├── schema-form.ts # JSON Schema → interactive form
│ ├── json-highlight.ts # JSON syntax highlighter
│ ├── ai-providers.ts # Multi-provider AI adapter (Gemini/OpenAI/Claude/DeepSeek)
│ └── markdown.ts # Markdown rendering + code syntax highlighting
├── server/ # MCP Bridge Server (npm: webmcp-devtools-server)
│ └── src/
│ ├── cli.ts # CLI entry point
│ ├── bridge.ts # WebSocket Bridge service
│ └── mcp-server.ts # MCP stdio protocol server
├── test/
│ └── demo.html # Local test page with mock WebMCP tools
├── scripts/
│ └── generate-icons.mjs # Extension icon generator
├── public/
│ └── icons/ # Generated extension icons (16–128px)
├── wxt.config.ts # WXT framework configuration
├── package.json
├── tsconfig.json
├── PRIVACY.md # Privacy policy
└── LICENSE # MIT License
# Start dev mode with hot reload
pnpm dev
# Build for production
pnpm build
# Package as zip for Chrome Web Store
pnpm zip
┌──────────────┐
│ AI Client │
│ Cursor/Claude│
└──────┬───────┘
│ stdio (MCP)
┌──────┴───────┐
│ MCP Bridge │
│ Server │
└──────┬───────┘
│ WebSocket
┌──────────────┐ postMessage ┌──────────────┐ chrome.runtime ┌──────┴───────┐
│ Web Page │ ←───────────────→ │ Content │ ←──────────────────→ │ Background │
│ (MAIN) │ │ Scripts │ .sendMessage │ (Service │
│ │ │ (ISOLATED) │ │ Worker) │
│ modelContext │ │ │ │ │
│ .registerTool│ │ │ │ │
└──────────────┘ └──────────────┘ └──────┬───────┘
│
┌──────────────┐ │
│ Side Panel │ ←────────────────────────────────────────────────────────┘
│ (UI) │ chrome.runtime.sendMessage
│ │
│ Tools list │
│ Execute │
│ AI Assistant │
│ Timeline │
└──────────────┘
navigator.modelContext.registerTool() to intercept tool registrationswindow.postMessage ↔ chrome.runtime.sendMessageContributions are welcome! Please open an issue or submit a pull request.
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License.
Inspect, automate & monitor WebMCP tools via navigator.modelContext. Chrome extension for MCP protocol.
Tools
No tool list yet. Remote servers get one after the first health check.
FAQ
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
No required environment variable is listed on this record.
WebMCP DevTools runs locally over stdio.
Last checked 2026-10-26. Inspect, automate & monitor WebMCP tools via navigator.modelContext. Chrome extension for MCP protocol.