ZF

zhizhuodemao/frida-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

126 stars 35 forks 品質 56 トレンド 1

Zhizhuodemao/Frida-MCPは、[[T0]からインポートされたMCPサーバー候補です。

概要

Zhizhuodemao/Frida-MCPは、[[T0]からインポートされたMCPサーバー候補です。

概要(AI 翻訳)

英語 |中文

英語

Fridaを用いてAIモデルがAndroid動的解析を行うことを可能にするモデルコンテキストプロトコル(MCP)サーバーです。

プロジェクト構造

コアファイル

  • frida_mcp.py:Frida統合を持つメインMCPサーバー
  • 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:Androidデバイス上のfridaサーバーのカスタムパス
  • server_name:カスタムfridaサーバーバイナリ名
  • server_port:Fridaサーバー通信用のポート
  • device_id:特定のデバイスID(自動検出は無効)
  • adb_path:ADB実行ファイルへのパス

利用可能なツール

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

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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");
GitHub で README 全文を見る

インストール

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" } } }