Helm

Helm

Semantic browser automation MCP server that lets AI agents control a browser using natural language, handling navigation, form filling, data extraction, and more without CSS selectors.

Category
访问服务器

README

Helm

Semantic browser automation MCP server. Tell it what to do in plain English — it figures out the selectors.

Helm gives AI agents a full browser through 24 tools: navigate pages, fill forms, click buttons, extract structured data, capture network traffic, and profile performance. No CSS selectors or XPaths required.

Quick Start

bun install
bun run src/server.ts

Connect to Claude Code

claude mcp add --transport stdio helm -- bun run /path/to/helm/src/server.ts

Connect to Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "helm": {
      "command": "bun",
      "args": ["run", "/path/to/helm/src/server.ts"]
    }
  }
}

Connect to any MCP client

Helm uses stdio transport. Point your client at:

command: bun
args: ["run", "/path/to/helm/src/server.ts"]

Tools

Navigation

Tool Description
nav_goto Navigate to a URL and wait for the page to be ready
nav_back Navigate back in browser history
nav_forward Navigate forward in browser history
nav_reload Reload the current page

Observation

Tool Description
obs_observe Get a filtered, task-relevant snapshot of interactive elements on the page
obs_screenshot Take a screenshot, optionally with numbered Set-of-Mark overlays
obs_extract Extract a specific piece of information by natural language description

Interaction

Tool Description
act_click Click an element by its visible label or Set-of-Mark ID
act_fill Fill a single input field by its label
act_fill_form Fill multiple form fields at once
act_select Select a dropdown option by the dropdown's label and option text
act_press Press a keyboard key or shortcut

Composite

Tool Description
act_login Complete a full login flow in one call
act_submit_form Find and click the primary submit button
page_wait_for Wait until a condition is true on the page

Session

Tool Description
page_new_tab Open a new browser tab
page_close_tab Close a browser tab
page_switch_tab Switch to a different tab by ID
page_get_cookies Get cookies for the current page or domain
page_set_cookie Set a cookie for a domain

Data

Tool Description
data_query Run a SQL-like query against the page DOM
data_analyze_page Auto-detect repeating data patterns and infer a schema
data_extract Extract structured data matching a caller-defined schema

DevTools (CDP)

Tool Description
cdp_evaluate Evaluate JavaScript via Chrome DevTools Protocol
cdp_performance Snapshot browser performance metrics (DOM nodes, heap, layout count)
cdp_network_start Start capturing network requests
cdp_network_stop Stop capture and return requests with optional URL filter

Examples

Navigate and extract structured data:

Navigate to https://books.toscrape.com and extract the book titles, prices,
and availability from the listing page.

Helm auto-detects the repeating pattern, maps your requested fields to DOM elements, and returns typed data (prices as floats, not strings).

Document a website for scraper development:

Navigate to the court case search page. Dump all forms and their fields.
Search for "Smith", capture network traffic during the search, then extract
the results into a structured table. Write the full spec to a markdown file.

Profile a web app:

Start network capture, navigate to localhost:3000, log in, then stop capture.
Show me all API calls made during login. Also grab performance metrics —
I want to know DOM node count and JS heap usage.

Fill forms by label, not selector:

Fill the form: {"Email": "test@example.com", "Password": "secret123"}
and click "Sign In".

Architecture

src/
  server.ts              MCP server entrypoint (stdio)
  types.ts               Shared type definitions
  core/
    browser.ts           Playwright browser/tab management
    resolver.ts          Label -> element resolution (role, text, fuzzy, memory)
    observer.ts          Page observation and element filtering
    som.ts               Set-of-Mark screenshot annotation
    memory.ts            SQLite site memory (bun:sqlite)
    fingerprint.ts       DOM fingerprinting for stale selector detection
    recovery.ts          Auto-retry with backoff, overlay dismissal
    schemasniff.ts       Automatic DOM pattern detection
    extractor.ts         Structured data extraction engine
    domql.ts             SQL-like DOM query engine
    cdp.ts               Chrome DevTools Protocol wrapper
  tools/
    navigation.ts        nav_goto, nav_back, nav_forward, nav_reload
    observation.ts       obs_observe, obs_screenshot, obs_extract
    interaction.ts       act_click, act_fill, act_fill_form, act_select, act_press
    composite.ts         act_login, act_submit_form, page_wait_for
    session.ts           page_new_tab, page_close_tab, page_switch_tab, cookies
    data.ts              data_query, data_analyze_page, data_extract
    devtools.ts          cdp_evaluate, cdp_performance, cdp_network_start/stop

Key design decisions

  • Semantic resolution. Tools take human-readable labels ("Sign In", "Email"), not CSS selectors. The resolver tries getByRole, getByLabel, getByText, fuzzy matching, and site memory — in parallel.
  • Site memory. Successful actions are recorded in SQLite keyed by domain. On revisit, known selectors are tried first. DOM fingerprinting detects when cached selectors are stale.
  • DOM fingerprinting. Each resolved element gets a hash of its tag, role, text, attributes, parent, and siblings. If the hash changes, the cached selector is discarded and re-resolved.
  • Set-of-Mark fallback. For sites with poor ARIA, obs_screenshot(overlay=true) annotates every interactive element with a number. Then act_click(mark_id=7) clicks element 7 by coordinates.
  • Structured extraction. data_extract takes a field schema (name, description, type), auto-detects repeating containers via sniffPage, maps fields by token overlap + type compatibility, and returns typed data.
  • CDP layer. Direct Chrome DevTools Protocol access for network capture, performance profiling, and raw JS eval — things that are awkward through Playwright's abstraction.
  • Error recovery. Automatic retry with exponential backoff. Cookie banners and modal overlays are dismissed between retries.
  • Token efficiency. obs_observe returns only task-relevant elements, not the full accessibility tree. Extraction results are capped at 15KB.

Helm vs Playwright MCP

Playwright MCP is Microsoft's official MCP server for Playwright. Both give AI agents a browser — here's why they exist and when to pick each.

Philosophy

Playwright MCP exposes Playwright's API almost directly. Tools like browser_click(selector) and browser_type(selector, text) require the caller to figure out the right CSS selector or ref attribute. It's a thin wrapper — powerful if you already know the page structure.

Helm is semantic-first. You say act_click("Sign In") or act_fill("Email", "test@example.com") and the resolver figures out the selector through role matching, label association, text search, fuzzy matching, and site memory. The agent never needs to inspect the DOM.

Feature comparison

Capability Helm Playwright MCP
Element targeting By visible label, auto-resolved By CSS selector or ref attribute
Structured extraction data_extract with field schema + auto-detection Manual — read page, write selectors yourself
DOM query language SQL-like data_query against the page Not included
Pattern detection data_analyze_page finds repeating structures Not included
Site memory SQLite — remembers working selectors per domain None
DOM fingerprinting Detects stale cached selectors automatically N/A
CDP access cdp_evaluate, cdp_performance, network capture Not exposed
Set-of-Mark Screenshot overlay with numbered elements Snapshot with ref attributes
Error recovery Auto-retry, cookie/modal dismissal between retries Basic error messages
Login flows act_login handles navigate + fill + submit + wait Manual multi-step
Screenshot PNG with optional SoM overlay PNG
Multi-tab Yes — open, close, switch tabs Yes
Headless No — runs headed for visual debugging Headless by default
Browser engine Chromium (via Playwright) Chromium (via Playwright)

When to use Playwright MCP

  • You want a minimal, official tool with stable API surface
  • Your agent is good at constructing CSS selectors from page snapshots
  • You need headless operation in CI/CD
  • You're already building on Playwright and want consistent abstractions

When to use Helm

  • Your agent should describe what to interact with, not how to find it
  • You're extracting structured data from pages (products, listings, records, tables)
  • You need network capture or performance profiling alongside automation
  • You want the server to learn from past visits and get faster over time
  • You're building scrapers and need the site documented automatically

Can I use both?

Yes. They're independent MCP servers. Some teams use Playwright MCP for simple navigation and Helm for extraction and form-heavy workflows.

Development

bun test                 # Run tests
bunx tsc --noEmit        # Typecheck
bun run --watch src/server.ts  # Dev mode with auto-reload

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选