MCP.Market

H5 Devtools MCP server

by xianguoGou·io.github.xianguoGou/h5-devtools-mcp·v0.1.2·2 stars

Debug H5 pages inside Android app WebViews: console logs, exceptions, run JS.

A92/100grade A
What users say
No reviews yet
Be the first
Safety scan
A92/100

full report

Adoption
Growing

2 stars41 downloads/wk

Reviews

Write one

Nobody has reviewed H5 Devtools yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

H5 Devtools tools (5, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • attach

    Connect to a WebView page and start buffering its console output and uncaught exceptions (the last 1000 entries).

  • detach

    Disconnect from a page and discard its buffered console entries. The page itself keeps running and is not closed;

  • evaluate_jswrite action

    Run a JavaScript expression in an attached page and return its result. Plain objects/arrays come back as JSON

  • get_console

    Read buffered console messages, uncaught exceptions and browser log entries from an attached page.

  • list_targets

    List debuggable H5 pages running inside Android WebViews (and Chrome) on connected devices.

Public scan report

scanner v0.1.10 · 2026-10-26 · same rubric, same numbers if you re-run it

no findings
  • Code scan6 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 5 days ago15/15
  • Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Overall 92/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How H5 Devtools compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
92/100
higher than 90% of 48,273 servers
Tools
5
the typical server has 7
Tools that change things
20%
typical: 0%. Fewer write tools means less an agent can break
GitHub stars
2
more than 75% of 28,534 servers
Downloads a week
41
more than 34% of 11,915 servers with a package

What its tools let an agent do: 4 read · 1 run or deploy

Install H5 Devtools in Claude Code, Cursor or VS Code

Runs npx -y h5-devtools-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add h5-devtools-mcp -- npx -y h5-devtools-mcp
Add to Cursor

What the publisher says

From the H5 Devtools repository's README, as published. We do not edit it. Read it on GitHub

h5-devtools-mcp

English | 简体中文

An MCP server that lets coding agents (Claude Code, Codex, Cursor…) debug H5 pages running inside Android WebViews on real devices — read console output and uncaught exceptions, and run JavaScript in the page, without opening chrome://inspect.

Status: v0.1, early. Android only.

How it works

Coding agent ──MCP (stdio)──▶ h5-devtools-mcp ──adb forward──▶ webview_devtools_remote_<pid> ──CDP──▶ WebView page

Every debuggable WebView exposes a Chrome DevTools Protocol endpoint on an abstract unix socket. The server discovers those sockets over adb (the same way chrome://inspect does), forwards them to local ports, and connects with CDP.

Requirements

  • Node.js 18+
  • adb on your PATH (or set ADB_PATH)
  • An Android device with USB debugging enabled
  • The app must enable WebView debugging (debug builds usually do):
WebView.setWebContentsDebuggingEnabled(true);

Setup

# Claude Code
claude mcp add h5-devtools -- npx -y h5-devtools-mcp

Other MCP clients (Cursor, Codex…) take the same command: npx -y h5-devtools-mcp.

From source

git clone https://github.com/xianguoGou/h5-devtools-mcp.git
cd h5-devtools-mcp
npm install && npm run build
claude mcp add h5-devtools -- node /absolute/path/to/h5-devtools-mcp/dist/index.js

Tools

Output is designed to be token-cheap: compact one-line entries, long messages truncated, and since_seq so an agent only reads what's new instead of re-reading the whole buffer on every turn.

Example

> list_targets
- id: R5CT1234/webview_devtools_remote_8812/3A1F…
  app: com.example.app (pid 8812) on SM-S9180
  title: "Order"
  url: https://m.example.com/order

> get_console { "levels": ["error"] }
#41 10:32:01.123 [error exception] TypeError: Cannot read properties of undefined (reading 'price')
    at https://m.example.com/assets/index-8f2a.js:1:48213
next since_seq: 57

Troubleshooting

  • "no debuggable WebView found" — the app hasn't enabled WebView debugging, or no WebView is alive yet. Open the H5 page first.
  • "debugger in use" — only one debugger can attach to a page. Close the chrome://inspect DevTools window.
  • "unauthorized" — accept the USB debugging prompt on the device.

Known limitations

  • Debugger-in-use detection is best-effort. It relies on /json/list omitting webSocketDebuggerUrl. Recent Chromium accepts several CDP clients per page, so attach may succeed alongside an open DevTools window; older WebViews may still refuse.
  • listtargets can take ~3s per unresponsive app.** Sockets are queried one by one with a 3s timeout, and Android freezes background apps, so their WebView sockets stop answering. attach only re-checks the target's own socket and stays fast.
  • evaluatejs runs with the page's full privileges** — it can read cookies, storage and tokens, and change page state. Keep it behind your agent's tool-permission prompt.
  • The e2e script expects port 9333 to be free. If a previous run left a headless Chromium behind, it attaches to that one; kill it first.

Development

The e2e test uses a fake adb and headless Chromium in place of a phone:

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

H5 Devtools: common questions

Is H5 Devtools MCP server safe?
Yes, by our scan: it is graded A (92/100). Read the H5 Devtools safety report
How do I install H5 Devtools?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does H5 Devtools need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is H5 Devtools maintained?
The last commit was 12 days ago (2026-10-21). The latest release is v0.1.2.
What can I use instead of H5 Devtools?
Servers from other publishers that do the same job: Firefox DevTools MCP server.
How does H5 Devtools compare with other MCP servers?
safety score 92/100 (higher than 90% of 48,273 servers); tools 5 (the typical server has 7); tools that change things 20% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to H5 Devtools

Same job from other publishers: the closest match first, then the best rated.

  • Firefox DevTools MCP
    Control and debug Firefox: navigate, fill forms, inspect network and console, profile.
    A