超浏览器 Mcp 服务器
概览
什么是 MCP?
MCP,或多通道协议,是为 Hyperbrowser 框架设计的服务器实现。它促进了 Hyperbrowser 生态系统中各个组件之间的通信,使得不同通道之间的数据交换和交互变得无缝。这一实现对于希望构建需要强大多通道通信能力的应用程序的开发者特别有用。
MCP 的特点
- 多通道支持:MCP 允许在多个通道之间同时进行通信,提高了数据传输和交互的效率。
- 开源:作为一个公共仓库,MCP 允许贡献和修改,使开发者能够根据自己的需求进行定制。
- 易于集成:该服务器可以轻松集成到现有的 Hyperbrowser 应用程序中,成为开发者的多功能选择。
- 活跃社区:随着越来越多的星标和分支,MCP 受益于一个活跃的社区,持续为其开发和改进做出贡献。
如何使用 MCP
-
克隆仓库:首先通过以下命令从 GitHub 克隆 MCP 仓库:
git clone https://github.com/hyperbrowserai/mcp.git
-
安装依赖:导航到克隆的目录并安装必要的依赖。这通常可以通过 npm 或 yarn 等包管理器完成。
-
运行服务器:在终端中执行适当的命令启动 MCP 服务器。这将启动服务器并使其准备好处理请求。
-
与您的应用程序集成:使用提供的 API 端点将 MCP 集成到您的 Hyperbrowser 应用程序中,实现多通道通信。
-
贡献:如果您有改进或功能要添加,欢迎您分叉仓库,进行更改,并提交拉取请求以为 MCP 项目做出贡献。
常见问题解答
MCP 使用了哪些编程语言?
MCP 主要使用 JavaScript 和 Node.js 构建,使得熟悉这些技术的开发者能够轻松上手。
MCP 适合生产环境使用吗?
是的,MCP 设计得稳健且可扩展,适合生产环境使用。然而,建议在部署前进行充分测试。
我该如何报告问题或请求功能?
您可以通过在 MCP GitHub 仓库中打开一个问题来报告问题或请求功能。社区和维护者会积极监控并回应反馈。
我可以为 MCP 项目做贡献吗?
当然可以!欢迎贡献。您可以分叉仓库,进行更改,并提交拉取请求以供审核。
我在哪里可以找到 MCP 的文档?
MCP 的文档通常可以在仓库内找到,通常在 README.md
文件或专门的 docs
目录中。
详情
Hyperbrowser MCP Server
This is Hyperbrowser's Model Context Protocol (MCP) Server. It provides various tools to scrape, extract structured data, and crawl webpages. It also provides easy access to general purpose browser agents like OpenAI's CUA, Anthropic's Claude Computer Use, and Browser Use.
More information about the Hyperbrowser can be found here. The hyperbrowser API supports a superset of features present in the mcp server.
More information about the Model Context Protocol can be found here.
Table of Contents
Installation
Manual Installation
To install the server, run:
npx hyperbrowser-mcp <YOUR-HYPERBROWSER-API-KEY>
Running on Cursor
Add to ~/.cursor/mcp.json
like this:
{
"mcpServers": {
"hyperbrowser": {
"command": "npx",
"args": ["-y", "hyperbrowser-mcp"],
"env": {
"HYPERBROWSER_API_KEY": "YOUR-API-KEY"
}
}
}
}
Running on Windsurf
Add to your ./codeium/windsurf/model_config.json
like this:
{
"mcpServers": {
"hyperbrowser": {
"command": "npx",
"args": ["-y", "hyperbrowser-mcp"],
"env": {
"HYPERBROWSER_API_KEY": "YOUR-API-KEY"
}
}
}
}
Development
For development purposes, you can run the server directly from the source code.
-
Clone the repository:
git clone git@github.com:hyperbrowserai/mcp.git hyperbrowser-mcp cd hyperbrowser-mcp
-
Install dependencies:
npm install # or yarn install npm run build
-
Run the server:
node dist/server.js
Claude Desktop app
This is an example config for the Hyperbrowser MCP server for the Claude Desktop client.
{
"mcpServers": {
"hyperbrowser": {
"command": "npx",
"args": ["--yes", "hyperbrowser-mcp"],
"env": {
"HYPERBROWSER_API_KEY": "your-api-key"
}
}
}
}
Tools
scrape_webpage
- Extract formatted (markdown, screenshot etc) content from any webpagecrawl_webpages
- Navigate through multiple linked pages and extract LLM-friendly formatted contentextract_structured_data
- Convert messy HTML into structured JSONsearch_with_bing
- Query the web and get results with Bing searchbrowser_use_agent
- Fast, lightweight browser automation with the Browser Use agentopenai_computer_use_agent
- General-purpose automation using OpenAI’s CUA modelclaude_computer_use_agent
- Complex browser tasks using Claude computer usecreate_profile
- Creates a new persistent Hyperbrowser profile.delete_profile
- Deletes an existing persistent Hyperbrowser profile.list_profiles
- Lists existing persistent Hyperbrowser profiles.
Installing via Smithery
To install Hyperbrowser MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @hyperbrowserai/mcp --client claude
Resources
The server provides the documentation about hyperbrowser through the resources
methods. Any client which can do discovery over resources has access to it.
License
This project is licensed under the MIT License.
Server配置
{
"mcpServers": {
"mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--hyperbrowserai--mcp--mcp",
"npm run start"
],
"env": {
"HYPERBROWSER_API_KEY": "hyperbrowser-api-key"
}
}
}
}