re-frida
Provides dynamic instrumentation for Android processes, enabling spawning, attaching, hooking methods, enumerating modules and exports, and RPC communication.
Provides dynamic instrumentation for iOS processes, enabling spawning, attaching, hooking methods, enumerating modules and exports, and RPC communication.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@re-frida attach to process 1234 and enumerate modules"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
re-frida
MCP server wrapping the Frida dynamic-instrumentation toolkit. Frida injects a JavaScript engine (V8) into a target process and lets the analyst hook arbitrary functions, walk the type graph, and call into the target at runtime.
The MCP layer adds:
a stable session identifier — multiple scripts and hooks can be installed under one session, sharing state.
a strict allowlist of binary-operation shapes — Frida exposes the full V8 JS API to scripts but the MCP wrappers only call the canonical, well-understood primitives (attach, spawn, enumerate, hook, RPC).
soft-skip behaviour — when the
fridaPython module or the nativelibfridaare missing, every tool returnsWARNwith an install hint and the plugin keeps working.
Tools
Tool | What it does |
| Health check — return frida version, native lib presence, USB device list |
| Spawn a new process under Frida (target: Android / iOS / native PID / remote endpoint) |
| Attach to a running process by host PID |
| Compile + load a Frida script (JavaScript) into a session |
| Call a method on a loaded script's exports (RPC) |
| List modules loaded into the session's process |
| List exports of a single module |
| Install an Interceptor hook on a named method |
| Register a Python-side callable as an RPC export the JS side can call |
| Tear down a session, unload scripts, detach |
Related MCP server: Frida MCP Server
Install
Frida is a heavy install (the Python module pulls in frida +
frida-tools; the underlying libfrida is a native shared
library shipped via PyPI wheels). To install standalone:
pip install -e ./servers/re-fridaOn the target device (the phone or VM Frida is talking to),
the matching frida-server binary must be running. See
https://frida.re/docs/.
Run
re-frida # stdio transport (default for MCP)
python -m re_frida # equivalentDeferred to a future run
The original Explore findings called for a Frida server; this
plugin-internal scaffolding lands it so the deep-dive agents can
pick it up. The Windows targets in the Live Fire stress test
still use re-winedbg as the primary dynamic tool; the Android
target future run is where re-frida becomes the workhorse.
Available Tools
10 toolsattach_pidA
Attach to a running process by host PID.
Args: session: session id pid: host PID of the target device_id: optional device id; empty means first available
Returns::
{
"status": "OK",
"session_id": "...",
"pid": N,
"device_id": "...",
"kind": "attach"
}
Inputs: session (required), pid (required), device_id.
check_fridaA
Return frida version + native lib presence + USB device list.
Soft-skip behaviour: when frida Python module or the
native libfrida is missing, returns status: WARN with
an install hint (pip install frida frida-tools). The
rest of the plugin continues to work — re-frida's tools just
return errors when called.
Inputs: no named parameters.
end_sessionC
Tear down a session, unload scripts, detach from the process.
Inputs: session (required).
enumerate_exportsC
List exports of a single module.
Inputs: session (required), module (required).
enumerate_modulesA
List modules loaded in the session's target process.
Returns base address, size, and on-disk path for each module.
Inputs: session (required).
hook_methodA
Install a tracing hook on module:symbol.
The hook captures both arguments (on-enter) and the return value (on-leave) and posts messages back to the Python side for the analyst to consume. Useful for tracing the dispatcher of an encrypted-VM bytecode interpreter, the handler of an MBA-obfuscated arithmetic routine, or the userland callback of an anti-debug check.
Inputs: session (required), module (required), symbol (required).
rpc_exportB
Register a stub Python-side RPC export the script side can call.
The function is a reflective shim that returns None; the
analyst wires the real Python callable by calling
re_frida.runner.rpc_export(session, name, fn) from a
follow-up script. The MCP layer intentionally avoids taking
a Python callable as a JSON argument (which the MCP
protocol can't transport).
Inputs: session (required), name (required).
script_callA
Call method on a loaded script's exports.
Args:
session: session id
name: script name (from script_load)
method: the JS-side export to call. Scripts declare
exports via rpc.exports = { myFn(arg) { ... } }.
args: JSON-serialisable positional arguments
timeout_s: RPC timeout (default 10s)
Returns the return value, or the error string when the JS side threw.
Inputs: session (required), name (required), method (required), args, +1 more.
script_loadA
Compile + load a Frida script (JavaScript) into a session.
Args:
session: session id
name: a name to look the script up by in subsequent calls
source: the JavaScript source. Frida injects V8 into the
target process; standard Interceptor /
Java.perform / ObjC.classes APIs are
available inside the script.
Returns::
{"status": "OK", "session_id": "...", "script": "...", "scripts_loaded": [...]}
Inputs: session (required), name (required), source (required).
start_sessionA
Spawn target on the named device and open a Frida session.
Args:
session: analyst-chosen session id. The MCP layer keeps a
table mapping session id → live Frida session. Pick
something readable (e.g. "android-game").
target: package name (Android), bundle ID (iOS), or
absolute path to a native binary.
device_id: "usb", "local", "remote:<addr>",
or a specific device id. Empty string means the
first available device.
spawn_args: extra argv to pass to the target on spawn.
wait: when True (default), block until the spawned
process is unpaused.
Returns::
{
"status": "OK",
"session_id": "...",
"pid": N,
"device_id": "...",
"kind": "spawn"
}
Inputs: session (required), target (required), device_id, spawn_args, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a clearly distinct purpose: session management (start, attach, end), environment check, module/export enumeration, script loading/calling, hooking, and RPC export. No overlap or ambiguity.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., attach_pid, enumerate_modules, script_load), making them predictable and easy to remember.
With 10 tools, the server offers a well-scoped set for Frida-based reverse engineering: covers session lifecycle, exploration, scripting, and hooking without unnecessary clutter.
The tool set covers core workflows (session management, module/export enumeration, script injection, function hooking, RPC). Lacks tools for memory read/write or process listing, but these are secondary for the stated purpose.
Related MCP Connectors
Remote MCP server to control your Android phone from AI assistants with per-app permissions.
An MCP server that provides agents access to the KeldynAI platform
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP-compliant server that enables AI systems to interact with mobile and desktop applications through Frida's dynamic instrumentation capabilities, allowing for process management, device control, JavaScript execution, and script injection.472MIT
- AlicenseBqualityCmaintenanceA comprehensive MCP server that exposes Frida's dynamic instrumentation toolkit to AI agents for process management, script injection, and memory operations. It provides over 50 tools to interact with local and mobile devices, enabling advanced capabilities like function hooking and memory analysis.55MIT
- AlicenseAqualityDmaintenanceEnables dynamic instrumentation of processes by attaching Frida, loading JavaScript scripts, calling RPC methods, and retrieving script output through MCP.63ISC
- AlicenseAqualityCmaintenanceA comprehensive MCP server for Frida dynamic instrumentation, enabling AI agents to manage devices, processes, scripts, memory, and ADB operations.3939MIT