跳到正文
FunCoding

jshookmcp

官方 MCP Registry 已收录

Search-first MCP server for JavaScript reverse engineering: 736 tools across 36 domains.

Star
2,140
分类
安全
版本
v0.4.6
许可证
AGPL-3.0
最近提交
2026年12月1日
@jshookmcp/jshook

@jshookmcp/jshook

License: AGPLv3 Node.js 22.22.2+ TypeScript MCP pnpm

vmoranv%2Fjshookmcp | Trendshift

A search-first, profile-aware reverse-engineering workspace for AI agents.

Hook the page, capture the network, deobfuscate the bundle, disassemble the WASM, instrument the process — and let one MCP server keep the whole attack surface in reach without drowning the model in schemas.

English · 中文

Stars Forks Latest Release License

Node.js 22.22.2+ TypeScript strict MCP current

What's different · Capabilities · Use cases · Highlights · Transport · Registry · Architecture · Build

Documentation · Getting Started · Configuration · Tool Reference


What makes jshook different

Most MCP servers for JS analysis expose a handful of hand-rolled tools or wrap a single browser engine. jshook is closer to an operating system for front-end reverse engineering — 38 self-discovered domains, a search-first meta-tool that keeps token cost under control, and runtime recovery that survives broken pages and dropped sessions:

  • Search-first, profile-aware. The search profile loads about 3K tokens of tool metadata; the full profile exposes all 832 tools at around 118K tokens (the 2026-11-30 measurement covered 789 catalog entries and was scaled by the catalog growth). Agents move between them as the task grows — search → workflow → full — instead of drowning in schemas from the first turn.
  • Runtime recovery and session isolation. Streamable HTTP sessions restore activated domains, browser attach state, and coverage state after reconnects; per-client browser-side state stays isolated so two agents cannot trample each other's CDP sessions.
  • Full-stack browser automation. Chromium and Camoufox via CDP with anti-detection, an explicit-input CAPTCHA solver (no built-in page/feature probing), a self-signed HTTPS interception CA on demand, and HTTP/2 frame building.
  • Real reverse engineering, not string searches. WASM disassembly via wabt (wasm2wat / wasm-decompile / wasm-objdump), Frida/Ghidra/IDA bridges, native FFI scanning, hardware breakpoints, PE introspection, GraphQL/Burp Suite proxy bridges, and AST transforms — not a single regex call wrapped as a tool.
  • Dynamic extensibility. Hot-reload plugins, declarative workflows, and auto-discovery keep the server growing without a redeploy.

Capability overview

A scan of what's in the box. Each row links to the detailed Capability overview below.

AreaHighlights
Tool profilessearch (~3K tokens, BM25 lexical ranking) · workflow (composite scripts) · full (all 832 tools)
Browser automationChromium and Camoufox · CDP attach to existing targets · anti-detection presets · explicit-input CAPTCHA solver · popup, download, permission, and protocol interceptors
Chrome DevTools parityaccessibility-tree snapshot with uid-addressed click/fill/hover/drag · Emulation matrix · CSS inspection · screencast · extensions/PWA/WebMCP/WebAuthn · performance insights · Lighthouse · allowlisted devtools_cdp_send gateway
Network interceptionHTTP/1.1 + HTTP/2 frame building · MITM proxy with auto-generated CA · WebSocket capture · GraphQL introspection helpers · Burp Suite bridge
JS hooks and analysisLLM-powered deobfuscation · crypto routine detection · AST comprehension · source-map reconstruction · script/scriptlet extraction and replay
WASM reverse engineeringwabt disassembly / C transpilation (wasm2wat / wasm-decompile / wasm-objdump / wasm2c) · Binaryen wasm-opt · pure-TS section parser · import/export listing · section-grouped string extraction with name-section recovery · function-level binary diff · obfuscation detection · function- and basic-block-level instrumentation
Process and memory forensicsNative FFI scanning · cross-reference graphs · hardware breakpoints · PE introspection · live process attach · memory read/write with region guards
Binary instrumentationFrida bridge · Ghidra and IDA bridges · syscall hooking · TLS keylog and session tooling · Mojo IPC analysis
Android and APK analysisAPK static triage · manifest dump and query · apktool decode / build · jadx decompilation and code search · DEX scanning · native library listing · APK signing · unidbg emulation · runtime DEX dump
Native runtimeNative emulator for foreign-architecture samples · platform introspection · Mojo IPC · Dart Inspector · ADB bridge for on-device traffic
Encoding and transformURL/Base64/Hex/JWT/Protobuf encoders · AST transforms · streaming decode pipelines
CoordinationBackground task queue with progress, cancellation, and async modes · multi-agent coordination · coverage reports
Schema-first meta toolsdescribe_tool · call_tool with argument validation · coverage_report · search_tools
Pluggable extension registryHot-reload plugins · declarative workflows · auto-discovered domains

Use cases

ScenarioWhat you doDomains involved
Skim a minified bundlesearch_tools → deobfuscate → search_in_scripts → understand_codecore
Reverse a CAPTCHA challengeDrive a Camoufox page → screenshot → solve with explicit input → replaybrowser, canvas
Capture and replay an OAuth flowproxy_start (auto CA) → network_get_requests → graphql_introspect → graphql_replayproxy, network, graphql
Reverse a WASM crypto routinewasm_dump → wasm_disassemble → generate_hooks → memory_breakpointwasm, binary-instrument, memory
Triage a suspicious APKapk_static_triage → apk_manifest_dump → jadx_decompile → dex_scan_filebinary-instrument
Recover a dropped browser sessionReconnect Streamable HTTP → restore activated domains and browser statebrowser, coordination
Audit a Node process for credentialsprocess_list → memory_scan_filtered → binary_strings_extractprocess, memory, binary-instrument
Build a custom workflowlist_extension_workflows → run_extension_workflowworkflow, extension-registry
Hook a function in a live processfrida_spawn → frida_attach_interceptor → frida_run_script → frida_enumerate_functionsbinary-instrument

Quick start

No global install needed — add to your MCP client config and you're ready.

Claude Desktop / Cursor (claude_desktop_config.json):

{
  "mcpServers": {
    "jshook": {
      "command": "npx",
      "args": ["-y", "@jshookmcp/jshook@latest"],
      "env": {
        "MCP_TOOL_PROFILE": "search",
        "npm_config_omit": "optional"
      }
    }
  }
}

(Windows: use npx.cmd absolute path if npx is not found.)

This lightweight configuration skips optional ONNX, Z3, Binaryen, Camoufox, and Playwright packages. Remove npm_config_omit when those full-profile runtimes are required.

This is a Node.js service, not a browser library. It runs over stdio or a local Streamable HTTP daemon (engines.node: ^22.22.2 || ^24.15.0 || >=26.0.0); it is not intended for bundling into a web page. The published tarball is ~1.45 MB gzipped / ~5 MB unpacked (358 files, mostly dist/). Bundle-size sites such as Bundlephobia report a much smaller tree-shaken figure (~48 KB gzip) because they analyze the dist/index.mjs entry as if it were a browser bundle — that number does not describe the installed CLI/server. There are no install-time lifecycle scripts and no bundled native binaries; native runtimes are optional and loaded on demand.

Share one daemon across multiple agents

The default stdio configuration starts one full jshook process per MCP host. To share the browser runtime and caches, start one local Streamable HTTP daemon:

pnpm build
pnpm daemon

Search is lexical-only (BM25 + RRF). The embedding path was removed in the search simplification: no model download, worker, embedding cache, or cold-start.

Then point every MCP client at http://127.0.0.1:3000/mcp using its HTTP/URL server configuration. Each client receives its own MCP session and response route while heavyweight runtime resources remain in one process. Keep the default loopback bind; set MCP_AUTH_TOKEN before exposing the endpoint beyond localhost.

Promote a profile as the task grows

{
  "env": {
    "MCP_TOOL_PROFILE": "search"     // start here, ~3K tokens of metadata
  }
}

Switch MCP_TOOL_PROFILE to workflow once you start chaining composite scripts, or to full when you need every tool. coverage_report shows the active set on demand.

Telemetry (on by default)

jshookmcp ships opt-out OpenTelemetry instrumentation. With zero configuration it exports minimal tool-call and search-usage signals over OTLP/HTTP to the project maintainer's ingress (https://telemetry.614447.xyz), identified only by an anonymous, locally generated install.id. No tool arguments, response bodies, host names, user names, or IPs are collected by default; query text is truncated to 64 characters and credential-like keys are scrubbed.

This outbound traffic happens even when you invoke no tool, so it is disclosed here rather than buried in a guide. To disable it entirely (zero network, zero overhead) or redirect it to your own backend, set these in the MCP server process environment:

JSHOOK_OBSERVABILITY_EXPORTER=none          # turn telemetry off entirely
OTEL_EXPORTER_OTLP_ENDPOINT=<your-collector> # or ship to your own OTLP backend
OTEL_EXPORTER_OTLP_HEADERS="authorization=Bearer <token>"

For the full data-minimisation table and per-signal controls (JSHOOK_OTLP_QUERY_TEXT, JSHOOK_OTLP_TOOL_ARGS), see the Telemetry guide.


Highlights

  • Profile ladder. Start in search (~3K tokens of metadata); promote to workflow when chaining composite scripts; escalate to full only when every tool is actually needed. coverage_report shows what's active on demand.
  • Meta tools. describe_tool returns the JSON Schema; call_tool validates arguments before invocation; every tool ships with readOnlyHint / destructiveHint / idempotentHint / openWorldHint.
  • Browser automation. Chromium and Camoufox via CDP, attach to existing targets, anti-detection presets, popup/download/permission interceptors, explicit-input CAPTCHA solver, JS/CSS injection at three document phases, persisted coverage across reconnects.
  • Network interception. Auto-generated HTTPS interception CA, HTTP/1.1 + HTTP/2 frame building, WebSocket capture, GraphQL helpers, Burp Suite bridge — all on the same MCP tool surface.
  • Reverse engineering. wabt WASM disassembly (wasm2wat / wasm-decompile / wasm-objdump) and Binaryen wasm-opt, Frida/Ghidra/IDA bridges, hardware breakpoints, native FFI scanning, PE introspection, syscall hooking, AST transforms, source-map reconstruction.
  • Session recovery. Streamable HTTP transport restores activated domains, browser attach state, and coverage state after reconnects; browser-side state is isolated per client.
  • Plugins and workflows. Drop a directory, get a domain. Write a YAML pipeline, run it as one tool. The registry self-discovers.

Transport and deployment

The server supports two transports out of the box.

TransportWhen to useNotes
stdioDefault for Claude Desktop, Cursor, and other single-host clientsOne full process per MCP host; lightweight profile recommended
Streamable HTTPMultiple agents sharing the browser runtime and cachesLoopback bind by default; set MCP_AUTH_TOKEN before exposing externally

Both transports expose the same tool surface. coverage_report shows which domains are activated in each session — long-running sessions restore browser attach state, coverage state, and tool activations across reconnects.

For production deployments see the Security and Production guide.


Recent runtime notes

  • HTTP transport now multiplexes independent MCP sessions and restores runtime state after reconnects.
  • proxy_start auto-generates a local HTTPS interception CA when needed.
  • Browser CAPTCHA solving is now explicit-input driven: pass taskKind, siteKey, imageBase64, callbackName, and responseSelector as needed. Built-in widget/page signature probing is intentionally not used.

Registry snapshot

The built-in surface below is generated from the runtime registry and checked in CI.

  • Package version: 0.4.9
  • Built-in tools: 832
  • Domains: adb-bridge, binary-instrument, browser, canvas, coordination, core, cross-domain, dart-inspector, debugger, devtools, encoding, exploit-dev, extension-registry, graphql, hardware, instrumentation, maintenance, memory, mojo-ipc, native-bridge, native-emulator, network, platform, process, protocol-analysis, proxy, session, sourcemap, streaming, syscall-hook, tasks, tls-inspector, trace, transform, v8-inspector, wasm, webgpu, workflow
  • Note: this snapshot is generated from the runtime registry; do not edit the counts by hand.

View the complete Tool Reference ↗


Architecture

  • Runtime registry — domains auto-discovered via manifest.ts; add a domain by creating one file.
  • Lazy initialization — handlers instantiated on first call, not at startup.
  • BM25 search — search_tools meta-tool with RRF fusion and rule-based lexical reranking.
  • MCP ToolAnnotations — every tool carries readOnlyHint / destructiveHint / idempotentHint / openWorldHint.
  • Profile ladder — search (~3K tokens) → workflow (composite scripts) → full (all 832 tools).
  • Transport symmetry — stdio and Streamable HTTP expose the same surface; sessions are isolated per client.

See the Architecture guide and Configuration reference for the canonical details.


Build from source

Requirements: Node.js 22.22.2+, pnpm 10.x.

pnpm install
pnpm build
pnpm start           # run the built server from dist/
pnpm dev             # run from source under tsx watch
pnpm check           # drift guards (metadata + openapi + domain + event contracts) + lint + format check + typecheck + unit tests
pnpm test            # Vitest unit suites
pnpm test:e2e        # end-to-end browser/tooling suites
pnpm daemon          # run the Streamable HTTP daemon after build

Native helpers are bundled via pnpm build; on first run the server may download optional runtimes (ONNX, Z3, Binaryen, Camoufox, Playwright) depending on the profile.


Project stats


License

AGPLv3.

同类 MCP Server

REA

Reverse engineer anything from your terminal or agent with one CLI and MCP server.

MOmorluto/rea485k近 7 天新增 9,215 个 star

精选

Filesystem

读取写入文件,创建和搜索目录,无需重启更新访问权限。

MOmodelcontextprotocol/servers92k近 7 天新增 200 个 star

hexstrike-ai

HexStrike AI MCP Agents is an advanced MCP server that lets AI agents (Claude, GPT, Copilot, etc.) autonomously run 150+ cybersecurity tools for automated pentesting, vulnerability discovery, bug bounty automation, and security research. Seamlessly bridge LLMs with real-world offensive security capabilities.

0X0x4m4/hexstrike-ai14k近 7 天新增 167 个 star

ida-pro-mcp

AI-powered reverse engineering assistant that bridges IDA Pro with language models through MCP.

MRmrexodia/ida-pro-mcp14k近 7 天新增 97 个 star

GhidraMCP

MCP Server for Ghidra

LALaurieWired/GhidraMCP12k近 7 天新增 89 个 star

AiSOC

Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.

BEbeenuar/AiSOC8.7k近 7 天新增 1,078 个 star