Hive Web

Hive Web

A local MCP server providing web search, page extraction, and safe browser automation tools for Hermes, Claude Code, and other MCP clients.

Category
访问服务器

README

Hive Web

Русская версия

Hive Web is a local MCP server for agents that need web access without flooding the model with raw pages. It gives Hermes, Claude Code, Codex, OpenCode, and other MCP clients a small set of tools for search, page extraction, and controlled browser sessions.

The server is built around two paths:

static-web   cheap search and page extraction through SearXNG and Firecrawl
action-web   live Playwright sessions with compact snapshots and safe actions

Static tools handle normal research. Action tools are for sites that need a browser, forms, or navigation. Both return compact, structured data and store larger payloads as local artifacts.

Naming

The project is called Hive Web. The GitHub repository is hive-web.

The Python package and executable are named hive-web-runtime because they run the local MCP server. MCP clients usually register that server as hive_web.

GitHub repository   hive-web
Python package      hive-web-runtime
CLI command         hive-web-runtime
MCP server name     hive_web
Python module       hive_web_runtime

Tools

Static tools:

  • static_web_search(query, limit=5, max_tokens=2000)
  • static_web_extract(url, max_tokens=3000, format="markdown")
  • static_web_get_artifact(artifact_id, name="content.md")

Browser tools:

  • action_web_session_create(name?, headless?)
  • action_web_navigate(session_id, url? | search_query?)
  • action_web_snapshot(session_id, max_tokens=1200)
  • action_web_click(session_id, ref? | selector?, confirm_sensitive=false)
  • action_web_type(session_id, text, ref? | selector?, clear=true)
  • action_web_press(session_id, key)
  • action_web_close(session_id)

Requirements

  • Python 3.11+
  • uv
  • Local or remote SearXNG endpoint
  • Local or remote Firecrawl endpoint
  • Playwright browsers for action-web sessions

Default endpoints:

SEARXNG_URL=http://localhost:8888
FIRECRAWL_API_URL=http://localhost:3002
HIVE_WEB_ARTIFACT_DIR=~/.cache/hive-web-runtime/artifacts

If you already run SearXNG and Firecrawl somewhere else, set those environment variables before starting the MCP server.

Install

git clone https://github.com/YegorMy/hive-web.git
cd hive-web
uv run playwright install chromium
bash scripts/install-hermes-mcp.sh

The installer runs uv sync, writes a hive_web entry into ~/.hermes/config.yaml, and tests the MCP connection. The Playwright install step is needed for action_web_* browser tools; static_web_* tools only need SearXNG and Firecrawl.

After changing MCP config, reload MCP in your client or start a new session.

/reload-mcp

Manual server start, mostly useful for debugging:

uv run hive-web-runtime

The server speaks MCP over stdio, so it waits for an MCP client.

Development checks

Run the unit tests:

HIVE_WEB_ARTIFACT_DIR=/tmp/hive-web-runtime-artifacts uv run pytest -q

Run a live MCP smoke test. This requires Firecrawl to be reachable at FIRECRAWL_API_URL:

uv run python scripts/test-mcp-client.py

Hermes setup

If you skipped the install script above, run it from the cloned repository:

bash scripts/install-hermes-mcp.sh

You can override the server name and endpoints:

SERVER_NAME=hive_web \
SEARXNG_URL=http://localhost:8888 \
FIRECRAWL_API_URL=http://localhost:3002 \
bash scripts/install-hermes-mcp.sh

Manual Hermes config:

mcp_servers:
  hive_web:
    command: /absolute/path/to/uv
    args: ["run", "--project", "/absolute/path/to/hive-web", "hive-web-runtime"]
    env:
      SEARXNG_URL: "http://localhost:8888"
      FIRECRAWL_API_URL: "http://localhost:3002"
      HIVE_WEB_ARTIFACT_DIR: "/absolute/path/to/artifacts"
    connect_timeout: 60
    enabled: true

After changing MCP config, reload MCP in the client or start a new session.

Other MCP clients

Claude Code:

claude mcp add -s user hive_web -- uv run --project /absolute/path/to/hive-web hive-web-runtime

Codex CLI:

codex mcp add hive_web -- uv run --project /absolute/path/to/hive-web hive-web-runtime

OpenCode uses the same stdio command in its MCP config:

{
  "mcp": {
    "hive_web": {
      "command": "uv",
      "args": ["run", "--project", "/absolute/path/to/hive-web", "hive-web-runtime"]
    }
  }
}

Safety model

Hive Web tries to keep browser automation boring and predictable:

  • Search and extraction return compact markdown or structured JSON, not full raw HTML by default.
  • Larger payloads go into the artifact store and can be fetched by artifact_id.
  • Browser snapshots expose refs like @1 and @2 instead of dumping the full DOM.
  • action_web_click blocks payment, password, 2FA, and CAPTCHA-looking targets unless the caller explicitly confirms the action.

This is not a CAPTCHA bypass tool, a shopping bot, or a payment automation layer. Treat it as read/search/extract plus careful browser control.

Network routing

Hive Web does not mutate system routes or install routing helpers. Keep VPN/proxy policy outside the runtime, or configure per-request proxy support in the caller/infrastructure layer.

Development

uv sync
HIVE_WEB_ARTIFACT_DIR=/tmp/hive-web-runtime-artifacts uv run pytest -q
uv run python scripts/test-mcp-client.py
uv run python scripts/smoke-action-web.py

Use a temporary artifact directory for tests if your normal cache directory is not writable in the current environment.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选