frida-mcp
An MCP server that exposes dynamic binary instrumentation, memory editing, pointer scanning, and scripting capabilities to AI agents, enabling real-time process inspection and modification.
README
Dynamic Instrumenter & Memory Editor MCP Server
A Model Context Protocol (MCP) server that exposes advanced dynamic binary instrumentation, dynamic memory editing, pointer scanning, and automated scripting capabilities (JavaScript & Lua) to AI Agents and IDEs.
This server integrates seamlessly with advanced AI systems such as Antigravity, Cursor, Windsurf, and Claude Desktop, allowing them to interactively inspect processes, search memory spaces, freeze variables, and hot-patch code in real-time.
Capabilities
- Memory Editing & Values Search:
- Scan target process memory for standard types:
byte,word,dword,qword,float,double,hexpatterns, and strings (utf8/utf16). - XOR encrypted search support with masks.
- Scan region constraints: Anonymous maps, Stack, Heap, Dalvik, Code segments.
- Fuzzy Search: Refine relative scans (
exact,changed,unchanged,increased,decreased,greater,less).
- Scan target process memory for standard types:
- Group & Nearby Scans:
- Locate multiple values separated by distance thresholds (e.g.
100;50;99).
- Locate multiple values separated by distance thresholds (e.g.
- Pointer Scanning:
- Walk pointer paths to identify reference patterns pointing to target values.
- Dynamic Variables Freezing:
- Lock variables in memory by writing values repeatedly on a 100ms interval loop.
- Inline Binary Patching:
- Hot-patch executable code instructions (like NOP-ing checks) in-memory using
Memory.patchCode().
- Hot-patch executable code instructions (like NOP-ing checks) in-memory using
- Script Run Engines:
- Exposes an embedded JavaScript script runner containing a simulated Game Guardian
ggglobal class. - Supports executing standard Lua scripts on the host, bridged to the instrumentation agent.
- Exposes an embedded JavaScript script runner containing a simulated Game Guardian
Installation
Prerequisites
- Python 3.8 or later
- Target device must have
frida-serverrunning (or local process debugging enabled)
Setup
Install the package in editable mode:
git clone <your-repository-url>
cd frida-mcp
pip install -e .
To run Lua automation scripts, install with the optional Lua VM package:
pip install -e ".[lua]"
AI IDE and Client Integration
This server is designed to work with any MCP-compliant AI client. Below are configuration details for popular platforms:
1. Antigravity IDE
Add the server configuration under your MCP settings panel:
- Type:
command - Name:
frida-mcp - Command:
frida-mcp
2. Cursor
In Cursor, navigate to Settings -> Features -> MCP and add a new agent:
- Name:
frida-mcp - Type:
command - Command:
frida-mcp
3. Windsurf
In Windsurf, configure your global or workspace mcp_config.json:
{
"mcpServers": {
"frida-mcp": {
"command": "frida-mcp"
}
}
}
4. Claude Desktop
Add the following to your configuration file (Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"frida-mcp": {
"command": "frida-mcp"
}
}
}
Exposed MCP Tools
Process Control
list_devices: View connected USB/local/remote devices.list_processes: Enumerate running processes.locate_process: Find process PIDs matching a search name.spawn_program/resume_process/terminate_process: Process lifecycle tools.
Memory & Search
open_session: Attach to a process and inject the instrumentation engine.list_sessions: View all open memory sessions (browser tab manager).close_session: Detach and clean up.mem_search: Initial memory scan by type.mem_refine: Filter scan list by value changes.mem_pointer_search: Find pointer addresses pointing to search targets.mem_group_search: Search for multiple values close to one another.mem_get_candidates: Retrieve values of matching addresses.mem_write/mem_write_all: Write values to single or all candidate results.mem_freeze/mem_unfreeze: Lock/unlock variables at specific addresses.mem_patch_code: Patch binary opcodes at runtime.mem_dump_range: Extract raw memory ranges as bytes.mem_find_translated_library: Locate base address of translated ARM libraries in memory maps (such as Houdini translation environments).mem_dump_metadata: Pull decrypted global-metadata.dat directly from target app cache directories to host path.
Quick Operations (Token Reduction)
mem_quick_search_and_edit: Search for a value and edit all occurrences in a single invocation.mem_quick_patch_offsets: Apply multiple binary instruction patches simultaneously in a single call.mem_quick_freeze_list: Freeze a list of multiple memory addresses in a single call.
Persistent Offsets (Saved List)
saved_list_load: Load saved offset database.saved_list_add: Save name, address, and type to local persistent config.saved_list_remove: Remove address from database.
Custom Automation Scripts
execute_js_script: Run JavaScript scripts (with globalggenvironment).execute_lua_script: Run Lua automation scripts.
Scripting Environment Helpers
Scripts have access to the simulated gg scripting object:
gg.searchNumber(value, type, regions, xorKey)gg.refineNumber(value, mode)gg.getResults(limit)gg.editAll(value, type)gg.setValues(items)gg.freeze(address, value, type)gg.unfreeze(address)
Example Script (JS)
// Search for variable value
var count = gg.searchNumber(100, "dword");
if (count > 0) {
// Modify matches
gg.editAll(9999, "dword");
}
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.