Logo von Frida C2 MCP

Frida C2 MCP

Community
s4dp4nd4

Agentic C2-style MCP server for Frida instrumentation on rooted Android and jailbroken iOS.

Herausgebers4dp4nd4
Repositoryfrida-c2-mcp
SprachePython
Forks
14
Sterne
70
Verfügbare Tools
0
Transporttypstdio
Links
  • Tools mit KI-Workflows verbinden

    Frida C2 MCP stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    70 Sterne und 14 Forks im verlinkten Repository.

FridaC2MCP

An MCP server with streamable HTTP transport that runs Frida's dynamic instrumentation entirely on-device — no client-side tooling required.

TLDR Featured

This project runs directly on rooted Android and jailbroken iOS devices, exposing Frida as a set of tools callable over HTTP. Any MCP-compatible client can connect to a device on the network and perform dynamic instrumentation without installing any Frida tooling locally.

Going forward, development is targeting Gemini CLI and Claude Code as primary clients, since both are building native multi-agent orchestration and MCP support — which aligns with this project's direction of composing multiple MCP servers (e.g. FridaC2MCP + Jadx-MCP) into automated workflows. 5ire was used extensively during early development and remains a great GUI option for interacting with the server.

Gemini CLI — register the device MCP server (replace <DEVICE_IP> with your phone’s LAN address):

bash
gemini mcp add --transport http frida-c2-mcp http://<DEVICE_IP>:6767/mcp

Android Demo

https://github.com/user-attachments/assets/7cee77c5-ed40-4797-b6b5-3edb5fdd03ce

iOS Demo

https://github.com/user-attachments/assets/1f0fa9c4-6fd0-4dfd-a640-78c9f8a95a6b

Core Functionality

  • Process & Application Management: List installed applications, enumerate running processes, and get information about the foreground application.
  • Application Control: Start and terminate applications by their identifier or PID.
  • Dynamic Instrumentation: Create interactive sessions by attaching to running processes.
  • Remote Script Execution: Execute custom Frida (JavaScript) scripts within an attached session. Scripts are compiled on-the-fly to ensure compatibility with Frida 17+. This supports both one-shot scripts and persistent hooks (keep_alive=True).

Intended Use Case

The goal is fully automated, agent-driven mobile security testing. By exposing Frida as an MCP server, a pentester or an AI agent can inspect and manipulate an application's behavior without a direct USB connection or local shell access after initial setup. The client needs zero Frida tooling — everything runs on the target device.

A typical workflow:

  1. Point your AI agent (Claude Code, Gemini CLI, etc.) at the device's MCP endpoint.
  2. The agent starts a target application, attaches a Frida session, and injects hooks.
  3. Security controls (root/jailbreak detection, SSL pinning, etc.) are bypassed dynamically.
  4. The agent observes results and iterates — all without human intervention.

This extends naturally to multi-device setups: run multiple phones on the same network, each with its own MCP server, and orchestrate them from a single agent.

Platform Support

Android (cli.py)

Runs in Termux on rooted Android. Uses esbuild for on-the-fly script bundling and frida-java-bridge for Java/Android runtime instrumentation. While frida-compile is technically available via frida-tools, it cannot be used on Termux because Android's untrusted_app SELinux domain blocks the W^X memory mappings required by V8's JIT compiler — causing a SIGSEGV on any non-trivial script. esbuild is a statically linked Go binary with no JIT, so it runs cleanly in any SELinux context.

iOS (ios.py)

Runs on rootless jailbroken iOS (tested on iPhone X, iOS 16.7.12 with palera1n). Uses frida-compile for script bundling and frida-objc-bridge for Objective-C runtime instrumentation. Node.js is not required on-device.

The iOS port required custom-compiling an entire Python 3.12 toolchain for arm64, since none of these packages were available for rootless jailbroken iOS:

PackageVersionBuild SystemWhy
Python3.12.5configure + MakeBase runtime — not available via Procursus
frida-python17.6.0Meson + setuptoolsCore Frida bindings
pydantic-core2.41.5maturin (Rust/PyO3)Required by FastMCP
cryptography47.0.0.dev1maturin (Rust) + OpenSSL 3.xDependency chain; needed SIGILL fix for A11
cffi2.0.1.dev0setuptools + libffiRequired by cryptography
pyyaml7.0.0.dev0setuptools + libyamlRequired by FastMCP deps
rpds-py0.30.0maturin (Rust/PyO3)Required by FastMCP deps
lupa2.6setuptools + LuaLua embedding

Precompiled wheels and the Python .deb are included in ios_precompiled/ so you don't have to build them yourself. See setup.md for iOS installation instructions.

Architecture & Design Rationale

  • On-Device Execution: Both the Frida server and client run on the target device. The MCP server translates HTTP requests into Frida commands. This is a departure from the traditional model where a Frida client runs on a separate computer.

  • Streamable HTTP Transport: Uses streamable HTTP instead of stdio to support multiple concurrent connections and multi-device orchestration.

  • On-Device Script Bundling: Frida 17+ requires bundled JavaScript. On Android, esbuild handles bundling (it runs in any SELinux context without JIT). On iOS, frida-compile is used with ObjC bridge imports injected automatically.

  • Agent-First Design: Built to be consumed by AI agents rather than human operators. The MCP tool interface is designed so that an LLM can autonomously navigate a full pentesting workflow — spawn apps, attach sessions, write and inject hooks, read results — in a single conversation.

Vision

FridaC2MCP is scaffolding for an automated mobile pentesting framework. The idea is to compose multiple specialized MCP servers — for example: FridaC2MCP for dynamic instrumentation, Jadx-MCP for static analysis — and let AI agents orchestrate the full workflow. Decompile an APK, identify interesting methods, then hook them live. No manual tool-switching, no copy-pasting between terminals.

This pairs naturally with Gemini CLI and Claude Code, which already support multi-tool MCP workflows natively. The framework doesn't need to implement its own agent orchestration — it just needs to provide the right MCP servers and let existing agents do what they're good at.

Known issues

  • iOS OpenSSL / SSL: The Python 3.12 build’s OpenSSL integration is not fully correct. This has not blocked the MCP server (which does not rely on HTTPS for its own transport), but it may matter if a future dependency needs a working TLS context on-device. See devlog.md for detail.

  • FastMCP 2.x only: FastMCP 3.x introduced breaking API changes. Android and iOS both pin below 3.x. Install via requirements-android.txt or requirements-ios.txt — do not upgrade to an unpinned fastmcp until this repo migrates.

Acknowledgments

This project is a networked evolution of the original FridaMCP by Daniel Nakov. While the original project pioneered the use of Frida as an MCP server over stdio, FridaC2MCP adapts this concept for remote, multi-device C2 environments using Streamable HTTP and modern Frida 17 bundling.

The iOS Python 3.12 runtime is based on python3.12-ios-arm64 by k1tty-xz. The original project targeted rootful jailbreaks — significant modifications were required to adapt it for rootless jailbreak environments (palera1n, /var/jb/ layout).


⚠️ Disclaimer

This is a proof-of-concept. It lacks proper session management, graceful error handling, and any form of security. All communication is unencrypted and unauthenticated. Use at your own risk and only in secure, isolated network environments.

Frida C2 MCP MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Frida C2 MCP verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Frida C2 MCP als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Frida C2 MCP ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "frida-c2-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Frida C2 MCP. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Frida C2 MCP.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Frida C2 MCP bei dieser Aufgabe helfen?
Frida C2 MCP
Gerne. Ich habe es gelesen.
Das habe ich mit Frida C2 MCP gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Frida C2 MCP verwendet?

Frida C2 MCP ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Frida C2 MCP MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Frida C2 MCP mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Frida C2 MCP MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Frida C2 MCP verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Frida C2 MCP MCP mit TypingMind?

Frida C2 MCP wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Frida C2 MCP MCP in TypingMind bereit?

Frida C2 MCP stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Frida C2 MCP MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Frida C2 MCP eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇