@jshookmcp/jshook logo

@jshookmcp/jshook

CommunityPopular
vmoranv

js hook toolkit that all you need

Publishervmoranv
Repositoryjshookmcp
LanguageTypeScript
Forks
460
Stars
2K
Available tools
0
Transport typestdio
Categories
LicenseAGPL-3.0
Links
  • Connect tools to AI workflows

    @jshookmcp/jshook exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    2K stars and 460 forks from the linked repository.

@jshookmcp/jshook

License: AGPLv3 Node.js 22.22.2+ TypeScript MCP pnpm

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 · 中文


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 — 34 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 723 tools at around 40K tokens. 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 Binaryen, 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 + hybrid vector ranking) · workflow (composite scripts) · full (all 723 tools)
Browser automationChromium and Camoufox · CDP attach to existing targets · anti-detection presets · explicit-input CAPTCHA solver · popup, download, permission, and protocol interceptors
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 engineeringBinaryen disassembly · module inspection · import/export analysis · cross-reference graphs · runtime instrumentation
Process and memory forensicsNative FFI scanning · hardware breakpoints · PE introspection · live process attach · memory read/write with region guards
Binary instrumentationFrida bridge · Ghidra and IDA bridges · syscall hooking · BoringSSL inspector · BoringSSL/Mojo IPC analysis
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 → format → extract-endpointstransform, core
Reverse a CAPTCHA challengeDrive a Camoufox page → screenshot → solve with explicit input → replaybrowser, canvas
Capture and replay an OAuth flowproxy_start (auto CA) → network_capture → graph_dump → replayproxy, network, graphql
Reverse a WASM crypto routinewasm_load → wasm_disassemble → binary-instrument.hook → memory tracewasm, binary-instrument, memory
Recover a dropped browser sessionReconnect Streamable HTTP → restore activated domains and browser statebrowser, coordination
Audit a Node process for credentialsprocess.list → memory.scan for sensitive patterns → exportprocess, memory, encoding
Build a custom workflowworkflow.register with YAML steps → workflow.runworkflow, extension-registry
Hook a function in a live processFrida script → binary-instrument.attach → breakpoint → log callsbinary-instrument, syscall-hook

Quick start

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

Claude Desktop / Cursor (claude_desktop_config.json):

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.

Share one daemon across multiple agents

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

bash
pnpm build
pnpm daemon

Vector search defaults to off for per-client stdio processes and on (lazy-loaded) for the shared HTTP daemon. Set SEARCH_VECTOR_ENABLED=false when lexical search is sufficient.

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

jsonc
{
  "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.


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. Binaryen WASM disassembly, 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 embedding model, 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.3.5
  • Built-in tools: 732
  • Domains: adb-bridge, binary-instrument, boringssl-inspector, browser, canvas, coordination, core, cross-domain, dart-inspector, debugger, encoding, exploit-dev, extension-registry, graphql, instrumentation, maintenance, memory, mojo-ipc, native-bridge, native-emulator, network, platform, process, protocol-analysis, proxy, session, sourcemap, streaming, syscall-hook, tasks, 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 + vector search — search_tools meta-tool with hybrid ranking and adaptive weights.
  • MCP ToolAnnotations — every tool carries readOnlyHint / destructiveHint / idempotentHint / openWorldHint.
  • Profile ladder — search (~3K tokens) → workflow (composite scripts) → full (all 723 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.12+, pnpm 10.x.

bash
pnpm install
pnpm build
pnpm start           # run the built server from dist/
pnpm dev             # run from source under tsx watch
pnpm check           # metadata check + 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

Activity


License

AGPLv3.

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "vmoranv-jshookmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@jshookmcp/jshook"
      ]
    }
  }
}

Use @jshookmcp/jshook MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once @jshookmcp/jshook is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add @jshookmcp/jshook as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the @jshookmcp/jshook MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "vmoranv-jshookmcp": {
      "command": "npx",
      "args": [
        "-y",
        "@jshookmcp/jshook"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the @jshookmcp/jshook MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the @jshookmcp/jshook MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use @jshookmcp/jshook to help me with this task?
@jshookmcp/jshook
Sure. I read it.
Here is what I found using @jshookmcp/jshook.

Frequently asked questions

What is the @jshookmcp/jshook MCP server used for?

@jshookmcp/jshook is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use @jshookmcp/jshook MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use @jshookmcp/jshook with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use @jshookmcp/jshook MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With @jshookmcp/jshook connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect @jshookmcp/jshook MCP to TypingMind?

@jshookmcp/jshook runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does @jshookmcp/jshook MCP provide in TypingMind?

@jshookmcp/jshook exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use @jshookmcp/jshook MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If @jshookmcp/jshook requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇