
zhizhuodemao/frida-mcp 是从 https://github.com/zhizhuodemao/frida-mcp. 导入的 MCP 服务器候选人。
概览
zhizhuodemao/frida-mcp 是从 https://github.com/zhizhuodemao/frida-mcp. 导入的 MCP 服务器候选人。
概述(AI 翻译)
英文 |中文
英语
一个模型上下文协议(MCP)服务器,使AI模型能够使用Frida进行Android动态分析。
项目结构
核心文件
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的自定义路径server_name:自定义 frida-server 二进制名称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
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 integrationpyproject.toml: Modern Python project configuration (recommended)requirements.txt: Traditional dependency fileconfig.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 deviceserver_name: Custom frida-server binary nameserver_port: Port for Frida server communicationdevice_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");
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"frida": {
"command": "python",
"args": ["C:\\Users\\YourName\\frida-mcp\\frida_mcp.py"],
"transport": "stdio"
}
}
}