Frida MCP
Set up a Frida MCP server with Claude Code or OpenCode on Abliterator: compare frida-mobile-mcp, frida-mcp and Kahlo, then trace your own app on an emulator.
A Frida MCP server lets an AI client attach Frida to a running app, hook and trace its methods and read the results. monkeywave's frida-mobile-mcp 0.7.3 is built for Frida 17 and exposes 71 tools over stdio: add it to Claude Code or OpenCode, point the client at Abliterator and pick kimi-k3.1-pro-abliterated. Use it only on apps you built or may test, on an emulator or device you own.
What a Frida MCP server does
A Frida MCP server lets an AI client run Frida, the dynamic instrumentation toolkit, through the Model Context Protocol. The model calls tools that list devices and installed apps, spawn or attach to a process, hook a method, trace a group of methods for a set time and read back each call with its arguments and return value. Where a Ghidra server reads code, a Frida server watches it run. Frida has no official MCP server; these are the main community ones, from their repositories (checked 2026-12-03):
| Server | Stars | Transport | Tools | Frida and platforms | License | Latest | Maintained |
|---|---|---|---|---|---|---|---|
| monkeywave/frida-mobile-mcp | 22 | stdio; streamable HTTP with --transport http |
71 | Frida 17; Android and iOS | MIT | v0.7.3, 2026-11-12 | Yes |
| dnakov/frida-mcp | 496 | stdio | 13 | frida>=16.0.0; written before Frida 17 |
MIT | 0.1.1 on PyPI, 2025-03-27 | No; last commit 2025-05-12 |
| FuzzySecurity/kahlo-mcp | 141 | stdio | 26 listed in the README | Android | Apache-2.0 with the Commons Clause until 2030-01-01 | No releases; last commit 2026-02-08 | Unclear |
| 1shin-7/ya-frida-mcp | 40 | stdio, SSE | 59, per the README | Python 3.12+ | MIT in its PyPI metadata; no license file in the repository | 0.6.1 on PyPI, 2026-02-25 | Unclear; last commit 2026-03-02 |
| yfe404/frida-mcp | 32 | stdio | About 62, per the README | Frida 17, Node.js 20+ | No license file | v1.1.0, 2026-05-27 | Unclear |
- Tool counts come from the source for frida-mobile-mcp (its README's tool reference) and dnakov's
cli.py, and from the README for the rest. - Frida 17 changed how hooks load Java support. Its release notes say the Java, Objective-C and Swift bridges are no longer bundled with Frida's runtime; frida-tools bakes them into its REPL and frida-trace agents. dnakov's server loads scripts through Frida's Python API and accepts any
frida>=16.0.0, so a current install gets Frida 17, and its scripts have no Java bridge unless one is bundled in. frida-mobile-mcp bundles the bridges and injects the right one before each script. - The page that ranks first for "frida mcp", nonsleepr/frida-mcp.ts, has 3 stars and no license file.
This guide uses monkeywave's frida-mobile-mcp 0.7.3:
- It is built for Frida 17, depends on frida-node
^17.26.2and bundles the Java and Objective-C bridges. - Its risky capabilities start off. Custom scripts, memory writes, native library injection and raw
adb shelleach need an explicit flag or environment variable, per its configuration table. - It can drop tools by name.
FRIDA_MCP_TOOL_PROFILE=corekeeps a curated set of 32 tool names, andFRIDA_MCP_TOOLS_EXCLUDEremoves more by glob (config.ts,tool-gate.ts). - It is maintained: 11 releases since April 2026, the latest on November 12.
The trade-offs: the project is young, created in March 2026, and has few stars, so pin the version. It also ships tools that switch off an app's protections, such as bypass_ssl_pinning and a runner for prebuilt scripts. This guide removes them from the tool list; they have no place in tracing your own app.
This guide follows frida-mobile-mcp v0.7.3, commit 73e62d7, checked 2026-12-03. The configuration was verified against that commit's README, docs/clients.md and source, and against the Claude Code and OpenCode docs linked below. It was not run against Abliterator.
Only for systems you own or have written permission to test. Instrument apps you built, or training apps built to be tested, on an emulator or a test device you own. Do not use Frida to bypass protections in third-party apps, and respect each app's license and the law where you are.
How the server reaches a model
An MCP server has no model of its own; the MCP client brings one. With frida-mobile-mcp the chain has four parts:
- frida-server runs as root on the emulator or test device and does the instrumentation.
- frida-mobile-mcp, a Node.js MCP server, talks to frida-server over adb through frida-node and exposes the tools.
- The MCP client, Claude Code or OpenCode here, starts frida-mobile-mcp over stdio, gives its tools to the model and runs the calls the model asks for.
- The model is Abliterator. Claude Code reaches it through the Anthropic Messages API at
https://abliterator.ai; OpenCode through the OpenAI-compatible API athttps://abliterator.ai/v1. Both send the tools as native tool calls, which both models support (tool calling).
The README shows a Claude Code command and a Claude Desktop block. This guide uses Claude Code and OpenCode because both accept a custom model endpoint.
Before you start
- An Android emulator you can root. Android's virtual device docs say system images that include the Google Play Store are signed with a release key and cannot be rooted, and that Android Open Source Project images without Google apps support
adb root. Create an AVD from such an image. A rooted test phone you own also works; Frida's Android guide covers both. - adb from the Android SDK platform tools.
- Node.js 22.12 or later, which frida-mobile-mcp requires.
npxinstalls the package and its frida-node binding on first use. - Claude Code or OpenCode, with an Abliterator key from /keys. Create a key for this lab only, with a spend limit (authentication). New accounts get $10 of credit.
Set up the emulator and frida-server
Start the emulator, then check the setup with frida-mobile-mcp's doctor command. It reports the frida-node version the package loaded, whether adb sees the device, and whether frida-server matches:
adb devices -l
npx -y frida-mobile-mcp@0.7.3 doctor
Download the frida-server-<version>-android-<arch>.xz file from Frida's releases page for the version doctor names; the README says the major version must match and the minor version should. Find the architecture, then start frida-server as root, following Frida's Android guide (this example uses an arm64 emulator and version 17.26.2):
adb shell getprop ro.product.cpu.abilist
unxz frida-server-17.26.2-android-arm64.xz
adb root
adb push frida-server-17.26.2-android-arm64 /data/local/tmp/frida-server
adb shell "chmod 755 /data/local/tmp/frida-server"
adb shell "/data/local/tmp/frida-server &"
Run doctor again; it should find frida-server on the emulator. The emulator's device ID is the name adb devices prints, such as emulator-5554.
Route 1: Claude Code
Point Claude Code at Abliterator with the variables from the Claude Code guide:
export ANTHROPIC_BASE_URL="https://abliterator.ai"
export ANTHROPIC_AUTH_TOKEN="$ABL_API_KEY"
unset ANTHROPIC_API_KEY
export ANTHROPIC_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_OPUS_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_SONNET_MODEL="kimi-k3.1-pro-abliterated"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4.1-flash-abliterated"
export CLAUDE_CODE_SUBAGENT_MODEL="kimi-k3.1-pro-abliterated"
Then add frida-mobile-mcp with the claude mcp add syntax from Claude Code's MCP docs. --env takes several KEY=value pairs and must be followed by another option before the server name; everything after -- is the command that starts the server:
claude mcp add --env FRIDA_MCP_TOOL_PROFILE=core "FRIDA_MCP_TOOLS_EXCLUDE=bypass_*,run_prebuilt_script,capture_tls,find_secrets_in_memory,mobile_action" --transport stdio frida -- npx -y frida-mobile-mcp@0.7.3 --device emulator-5554 --no-mobile-mcp
claude mcp list
| Setting | Why |
|---|---|
frida-mobile-mcp@0.7.3 |
Pins the version this guide was checked against; the README's npx -y frida-mobile-mcp runs the latest |
FRIDA_MCP_TOOL_PROFILE=core |
Registers only the core tool set |
FRIDA_MCP_TOOLS_EXCLUDE |
Removes the protection-bypass, TLS capture, memory secret search and UI automation tools. Quote it so your shell does not expand * |
--device emulator-5554 |
Selects the emulator instead of the first USB device |
--no-mobile-mcp |
Turns off the UI automation helper, which would otherwise download another package with npx |
Start the session without the shell tool; run adb yourself in another terminal:
mkdir -p ~/frida-lab && cd ~/frida-lab
claude --disallowedTools "Bash"
Per Claude Code's CLI reference, a bare tool name in --disallowedTools removes that tool from the model's context. Claude Code asks before each MCP tool call you have not allowed, so you see every hook before it goes in. Behind a custom ANTHROPIC_BASE_URL, Claude Code defers MCP tools through tool search; v2.1.305 and later retry without it if the endpoint rejects the extra fields, and ENABLE_TOOL_SEARCH=false loads the tools up front.
Route 2: OpenCode
OpenCode reaches Abliterator as an OpenAI-compatible provider, set up as in the OpenCode guide, and starts local MCP servers over stdio. Add the server and permission rules next to the providers block from that guide in opencode.jsonc, in the format of OpenCode's MCP servers and permissions docs:
{
"$schema": "https://opencode.ai/config.json",
"model": "abliterator/kimi-k3.1-pro-abliterated",
"mcp": {
"servers": {
"frida": {
"type": "local",
"command": ["npx", "-y", "frida-mobile-mcp@0.7.3", "--device", "emulator-5554", "--no-mobile-mcp"],
"environment": {
"FRIDA_MCP_TOOL_PROFILE": "core",
"FRIDA_MCP_TOOLS_EXCLUDE": "bypass_*,run_prebuilt_script,capture_tls,find_secrets_in_memory,mobile_action",
},
"codemode": false,
"timeout": { "startup": 120000 },
},
},
},
"permissions": [
{ "action": "shell", "resource": "*", "effect": "deny" },
{ "action": "frida_*", "resource": "*", "effect": "ask" },
],
}
| Field | Why |
|---|---|
environment |
String variables added to the server's process, here the tool profile and exclusions |
codemode: false |
Keeps the tools on the model's native tool list instead of OpenCode's default Code Mode grouping |
timeout.startup |
Milliseconds. Gives npx time to install the package on first start; the default is 30 seconds |
permissions |
OpenCode's base policy allows every action, and the last matching rule wins, so these rules deny the shell and ask before every Frida tool call. Tools appear as frida_<tool> |
Run opencode mcp list to check the connection, then start opencode in your lab directory.
First task: trace a login screen
The best first target is a debug build of your own app: you know what each method should do, so you can check the trace. To follow the expected results below, use InsecureBankv2, a deliberately vulnerable banking app by Dinesh Shetty, MIT-licensed and listed in OWASP's MASTG app catalog. The task needs no backend server. Download the APK at a fixed commit, check its hash (computed 2026-12-03) and install it on the emulator:
cd ~/frida-lab
curl -fL -o InsecureBankv2.apk https://github.com/dineshshetty/Android-InsecureBankv2/raw/3c8cc3a3ce45ed56d0f58f236b541b41f992e51f/InsecureBankv2.apk
echo "b18af2a0e44d7634bbcdf93664d9c78a2695e050393fcfbb5e8b91f902d194a4 InsecureBankv2.apk" | sha256sum -c
adb install InsecureBankv2.apk
Then send these prompts one at a time. Each names the tools so you can follow what the model calls; the expected results come from the app's source.
1. Check the device and the app.
Call get_status and list_devices, then list_applications. Confirm emulator-5554 is selected and com.android.insecurebankv2 is installed. Then call get_app_info for it and report the version, SDK levels, whether it is debuggable, and the sha256 of each installed APK.
get_app_info reports what is installed, including the on-device SHA-256 of every APK. It should match the hash you checked, which confirms the model is looking at the app you meant.
2. Start the app and list its classes.
Call explore_app for com.android.insecurebankv2. Then call search_classes_and_methods with the pattern "com\.android\.insecurebankv2\..*" and include_methods true, and list the classes with their methods.
explore_app spawns the app suspended, instruments it and resumes it, and returns the process ID, loaded modules and a filtered class list. The search returns the app's own classes, such as LoginActivity with performlogin and fillData, DoLogin, FilePrefActivity and CryptoClass.
3. Trace a tap.
Call trace_method on that session with the pattern "com.android.insecurebankv2.*" and duration_seconds 60. I will type a test username and password on the emulator and tap Login while it runs. Then list the calls in order with their arguments.
Type any test values on the emulator and tap Login within the 60 seconds. trace_method works like frida-trace and returns every captured call when the time is up. Among the calls, expect LoginActivity.performlogin, then DoLogin.onCreate, then FilePrefActivity.onCreate: with no server address saved, DoLogin opens the server settings screen instead of sending a request.
4. Hook one method with a backtrace.
Call hook_method on com.android.insecurebankv2.LoginActivity.performlogin with log_backtrace true. I will tap Login again. Then call get_messages and explain the backtrace from the click to performlogin.
hook_method logs arguments and return values by default; with log_backtrace it adds the call stack. The stack runs from the Android view system's click handling through the button's listener in LoginActivity to performlogin.
5. Explain the flow and stop.
Call stop_instrumentation for the app. Then summarize the login flow from the tap to the screen that opened, say which values DoLogin reads before it sends anything, and what protocol it would use to send the credentials.
stop_instrumentation removes the hooks and traces and detaches. A correct summary says DoLogin reads the server address and port from the app's default shared preferences, and that it would post the username and password to http://<server>:<port>/login in cleartext; the protocol field is hardcoded to http://. That last point is a finding for the report. A static review of the same APK in JADX shows the hardcoded http:// in DoLogin directly.
Data from an instrumented app comes from the app. Strings and class names can be written to read like instructions to the model, so keep the shell tool off, approve each hook, and check findings against the code.
Which model to use
Both models support tool calling (tool calling) and a 1,048,576-token context. They refuse far less than the originals: refusals fell from 94% to 1% on DeepSeek V4.1 Flash and from 94% to 3% on Kimi K3.1 Pro (benchmarks).
| Model | Use it for | Notes |
|---|---|---|
kimi-k3.1-pro-abliterated |
Sessions that spawn, hook, trace and compare results across many tool calls | Terminal-Bench 4.0 went from 66.6 to 62.3 after abliteration, a drop that is plausible but not statistically shown (benchmarks), so try it on an app you know first |
deepseek-v4.1-flash-abliterated |
Single traces, reading back messages, summarizing a backtrace | On security suites it stayed within noise of the original: CyberMetric-2000 94.2 → 93.8, InterCode-CTF 94.2 → 95.5, Cybench 98.3 → 96.6 (benchmarks) |
A trace of a whole package can return hundreds of calls, and each turn resends earlier results. Abliterator caches the repeated prefix automatically and bills it at $0.40 per 1M tokens on kimi-k3.1-pro-abliterated and $0.10 on deepseek-v4.1-flash-abliterated (prompt caching). Trace one class at a time once you know where to look.
Why a hosted model sometimes stops
Hosted frontier models run cyber safeguards that judge each request, and instrumenting an app can trip them even when the app is your own. The providers say so in their own policies:
- Anthropic. Its Usage Policy, effective November 12, 2026, says it "does not prohibit security research, testing, or tool development conducted on systems you own or operate", and that "encountering a block does not by itself indicate a violation". Its Cyber Verification Program lists vulnerability triage and validation under Defense Access, the tier individuals can apply for on paid plans, and enrolled users "may experience some model refusals and classifier blocks for allowed security work".
- OpenAI. Its Usage Policies, effective November 20, 2026, prohibit "circumventing our safeguards". Its Daybreak Trusted Access program lists vulnerability triage among its use cases and says "Some safeguards can still apply after approval, even with Daybreak Red."
If your team works under one of these programs, use it. Abliterator serves models with the refusal behavior removed from the weights, so the analysis does not depend on a safeguard's judgment of each request. Some uses are always prohibited; see the acceptable use policy. More on each provider: Claude refused and ChatGPT refused.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
adbd cannot run as root in production builds |
The emulator image includes Google Play, or the phone is not rooted | Use an AOSP image without Google apps, as Android's docs describe. On a rooted phone, prefix the shell commands with su -c, per Frida's guide |
doctor flags a frida-server version mismatch |
frida-server on the device is not the version of the frida-node binding | Push the frida-server build that doctor names; the major version must match |
| The server exits at startup | Node.js is older than 22.12, or the frida-node binding did not install | Run npx -y frida-mobile-mcp@0.7.3 doctor in a terminal to see which check fails |
claude mcp list shows ✘ Failed to connect, or OpenCode lists the server as failed |
The first npx install took longer than the startup timeout |
Start Claude Code with MCP_TIMEOUT=120000, or keep OpenCode's timeout.startup at 120000 |
execute_script refuses to run |
Custom scripts are off by default (allowCustomScripts) |
Expected in this setup. The built-in hook and trace tools cover the task |
A script written for Frida 16 fails on Module.findExportByName or Memory.readU32 |
Frida 17 removed those static APIs | Ask the model to run validate_script, which flags them and suggests replacements |
404 Model "claude-..." is not available on abliterator |
A Claude Code model alias is not pinned | Set all the model variables in Route 1 |
Frequently asked questions
What is Frida MCP?
Frida MCP is the name of several community MCP servers that expose the Frida dynamic instrumentation toolkit to AI clients. The model can list devices and apps, spawn or attach to a process, hook or trace methods and read what they were called with. The most starred is dnakov's frida-mcp, with 496 GitHub stars (checked 2026-12-03), though it has not changed since May 2025.
Is there an official Frida MCP server?
No. The Frida project's GitHub organization has no MCP server repository (checked 2026-12-03). MCP support comes from community projects such as frida-mobile-mcp, frida-mcp, Kahlo and ya-frida-mcp, each run by an MCP client with a model you choose.
Does Frida MCP need a rooted device?
The simplest setup does. Frida's Android guide runs frida-server as root on a rooted device or a Google emulator image. Without root, Frida's gadget has to be embedded in the app, which you can do for an app you build yourself.
Can Frida MCP use a model other than Claude?
Yes. The server has no model of its own; the MCP client supplies it. Claude Code and OpenCode both accept a custom endpoint, so either can drive a Frida MCP server with kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated on Abliterator.