ZF

zhizhuodemao/frida-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

126 stars 35 forks Качество 56 Тренд 1

zhizhuodemao/frida-mcp — это кандидат на сервер MCP, импортированный из https://github.com/zhizhuodemao/frida-mcp.

Обзор

zhizhuodemao/frida-mcp — это кандидат на сервер MCP, импортированный из https://github.com/zhizhuodemao/frida-mcp.

Обзор (машинный перевод)

Английский | 中文

Английский

Сервер Model Context Protocol (MCP), который позволяет AI-моделям выполнять динамический анализ Android с помощью Frida.

Структура проекта

Основные файлы

  • frida_mcp.py: Основной сервер MCP с интеграцией с Frida
  • pyproject.toml: Современная конфигурация проекта на Python (рекомендована)
  • requirements.txt: Традиционный файл зависимостей
  • config.json: Опциональная конфигурация для настроек frida-сервера

Установка

Конфигурация MCP

Добавьте в конфигурацию вашего клиента MCP (например, конфигурационный файл Claude Desktop):

Windows (%APPDATA%\Claude\claude_desktop_config.json):

macOS/Linux (~/.config/claude/claude_desktop_config.json):

Конфигурация (по желанию)

Файл config.json содержит опциональную конфигурацию сервера Frida:

  • server_path: пользовательский путь для frida-server на устройстве Android
  • server_name: Пользовательское бинарное имя frida-сервера
  • server_port: Порт для связи с серверами Frida
  • device_id: Идентификатор конкретного устройства (null для автоопределения)
  • adb_path: Путь к исполняемому файлу ADB

Доступные инструменты

spawn(package_name, initial_script?, wait_seconds?, max_output_messages?)

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Frida MCP Server | Frida MCP 服务器

English | 中文

English

A Model Context Protocol (MCP) server that enables AI models to perform Android dynamic analysis using Frida.

Project Structure

frida-mcp/
├── frida_mcp.py          # Core MCP server implementation
├── pyproject.toml        # Project dependencies and configuration  
├── requirements.txt      # Alternative dependency file
├── config.json           # Optional Frida server configuration
├── README.md            # Documentation
└── .gitignore           # Git ignore rules

Core Files

  • frida_mcp.py: Main MCP server with Frida integration
  • pyproject.toml: Modern Python project configuration (recommended)
  • requirements.txt: Traditional dependency file
  • config.json: Optional configuration for frida-server settings

Installation

# Clone repository
git clone http://git.dev.sh.ctripcorp.com/octopus/frida-mcp.git
cd frida-mcp

# Install dependencies (choose one method)
# Method 1: Using pip + requirements.txt
pip install -r requirements.txt

# Method 2: Using pip + pyproject.toml (recommended)
pip install -e .

# Setup frida-server on Android device
adb push frida-server /data/local/tmp/
adb shell "chmod 755 /data/local/tmp/frida-server"
adb shell "su -c /data/local/tmp/frida-server &"

MCP Configuration

Add to your MCP client configuration (e.g., Claude Desktop config file):

Windows (%APPDATA%\Claude\claude_desktop_config.json):

{
  "mcpServers": {
    "frida": {
      "command": "python",
      "args": ["C:\\Users\\YourName\\frida-mcp\\frida_mcp.py"],
      "transport": "stdio"
    }
  }
}

macOS/Linux (~/.config/claude/claude_desktop_config.json):

{
  "mcpServers": {
    "frida": {
      "command": "python",
      "args": ["/home/username/frida-mcp/frida_mcp.py"],
      "transport": "stdio"
    }
  }
}

Configuration (Optional)

The config.json file contains optional Frida server configuration:

{
  "server_path": "/data/local/myfr",
  "server_name": "aaabbb", 
  "server_port": 27042,
  "device_id": null,
  "adb_path": "adb"
}
  • server_path: Custom path for frida-server on Android device
  • server_name: Custom frida-server binary name
  • server_port: Port for Frida server communication
  • device_id: Specific device ID (null for auto-detection)
  • adb_path: Path to ADB executable

Available Tools

spawn(package_name, initial_script?, wait_seconds?, max_output_messages?)

Start an Android application with optional script injection.

attach(target, initial_script?, wait_seconds?, max_output_messages?)

Attach to a running process with optional script injection.

get_frontmost_application()

Get the currently active application.

list_applications()

List all installed applications.

Example Usage

// Hook HashMap operations
Java.perform(function() {
    var HashMap = Java.use("java.util.HashMap");
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "frida": { "command": "python", "args": ["C:\\Users\\YourName\\frida-mcp\\frida_mcp.py"], "transport": "stdio" } } }