MCP ExplorerExplorer

Use Browser Mcp

@shadowcz007on 10 months ago
2 MIT
FreeCommunity
AI Systems
exe

Overview

What is Use Browser Mcp

MCP Use Browser is an extension service for the Microsoft open-source MCP Server using Playwright. It facilitates JavaScript code injection and is compatible with both AIO and MCP standard protocols.

Use cases

This tool is useful for developers and testers who need to automate browser interactions, inject JavaScript code for testing purposes, and utilize protocols for service discovery and communication. It’s particularly beneficial for scenarios requiring the use of existing installed browsers.

How to use

To use with the AIO standard protocol, pipe help.json into dist/mcp-use-browser.exe. For MCP stdio mode, start the service with the --transport stdio command line argument. For SSE mode, simply double-click the executable. Debugging can be done through the /debug endpoint in SSE mode.

Key features

Key features include the use of the system’s installed browsers (with Edge and Chrome prioritized), support for AIO and MCP protocols, a JavaScript injection tool, and modes of operation via SSE and stdio for data transmission.

Where to use

MCP Use Browser can be deployed in automated testing environments, web scraping applications, and browser automation utilities where interaction with web pages is needed. It is suitable for local development as well as CI/CD pipelines requiring browser testing.

Content

MCP Use Browser

这是一个基于微软开源的MCP Server的Playwright扩展服务,添加了JavaScript注入代码工具,并同时适配了AIO标准和MCP标准协议。

功能特点

  • 使用系统已安装的浏览器(优先使用Edge、Chrome)
  • 支持AIO标准协议通过stdio自动发现服务
  • 支持MCP标准协议
  • 提供JavaScript代码注入工具
  • 支持SSE模式和stdio传输模式

使用方式

1. AIO标准协议

通过stdio,使用help方法获取类型和可用方法:

cat help.json | dist/mcp-use-browser.exe

2. MCP stdio模式

通过命令行参数开启MCP stdio传输模式:

mcp-use-browser.exe --transport stdio

MCP 客户端接入示例

3. SSE模式

直接双击可执行文件运行MCP Server的SSE模式。

4. 调试

在SSE模式下,可以通过访问 /debug 端点查看所有可用的上下文。

浏览器支持

服务会使用系统中已安装的浏览器,优先顺序为:

  1. Microsoft Edge
  2. Google Chrome
  3. 其他Chromium内核浏览器

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers