Logotipo de Frida C2 MCP

Frida C2 MCP

Comunidad
s4dp4nd4

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

Editors4dp4nd4
Repositoriofrida-c2-mcp
IdiomaPython
Forks
14
Estrellas
70
Herramientas disponibles
0
Tipo de transportestdio
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Frida C2 MCP ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    70 estrellas y 14 forks en el repositorio enlazado.

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.

Usa el MCP de Frida C2 MCP con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Frida C2 MCP, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Frida C2 MCP como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Frida C2 MCP.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "frida-c2-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Frida C2 MCP y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Frida C2 MCP.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Frida C2 MCP para ayudarme con esta tarea?
Frida C2 MCP
Claro. Lo he leído.
Esto he encontrado usando Frida C2 MCP.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Frida C2 MCP?

Frida C2 MCP es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Frida C2 MCP con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Frida C2 MCP con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Frida C2 MCP con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Frida C2 MCP conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Frida C2 MCP a TypingMind?

Frida C2 MCP funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP Frida C2 MCP en TypingMind?

Frida C2 MCP ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Frida C2 MCP?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Frida C2 MCP requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇