IDA Pro MCP Server
local-only server
The server can only run on the client’s local machine because it depends on local resources.
Integrations
Used to run the MCP server that bridges AI assistants with IDA Pro, enabling remote binary analysis capabilities through a structured API.
Enables execution of Python scripts within IDA Pro for reverse engineering tasks, allowing AI assistants to interact with binary analysis functions through a standardized interface.
Provides the client interface and MCP server implementation for enabling AI assistants to interact with IDA Pro's binary analysis capabilities.
IDA Pro MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with IDA Pro for reverse engineering and binary analysis tasks.
Overview
This project provides a bridge between AI assistants and IDA Pro, a popular disassembler and debugger used for reverse engineering software. It consists of three main components:
- IDA Pro Remote Control Plugin (
ida_remote_server.py
): An IDA Pro plugin that creates an HTTP server to remotely control IDA Pro functions. - IDA Remote Client (
idaremoteclient.ts
): A TypeScript client for interacting with the IDA Pro Remote Control Server. - MCP Server (
index.ts
): A Model Context Protocol server that exposes IDA Pro functionality to AI assistants.
Features
- Execute Python scripts in IDA Pro from AI assistants
- Retrieve information about binaries:
- Strings
- Imports
- Exports
- Functions
- Advanced binary analysis capabilities:
- Search for immediate values in instructions
- Search for text strings in the binary
- Search for specific byte sequences
- Get disassembly for address ranges
- Automate IDA Pro operations through a standardized interface
- Secure communication between components
Prerequisites
- IDA Pro 8.3 or later
- Node.js 18 or later
- TypeScript
Example usage ida_remote_server.py
Example usage MCP Server
Installation
1. Install the IDA Pro Remote Control Plugin
- Copy
ida_remote_server.py
to your IDA Pro plugins directory:- Windows:
%PROGRAMFILES%\IDA Pro\plugins
- macOS:
/Applications/IDA Pro.app/Contents/MacOS/plugins
- Linux:
/opt/idapro/plugins
- Windows:
- Start IDA Pro and open a binary file.
- The plugin will automatically start an HTTP server on
127.0.0.1:9045
.
2. Install the MCP Server
- Clone this repository:Copy
- Install dependencies:Copy
- Build the project:Copy
- Configure the MCP server in your AI assistant's MCP settings file:Copy
Usage
Once installed and configured, the MCP server provides the following tool to AI assistants:
run_ida_command
Executes an IDA Pro Python script.
Parameters:
scriptPath
(required): Absolute path to the script file to executeoutputPath
(optional): Absolute path to save the script's output to
Example:
The AI assistant can then use this script with:
search_immediate_value
Searches for immediate values in the binary's instructions.
Parameters:
value
(required): Value to search for (number or string)radix
(optional): Radix for number conversion (default: 16)startAddress
(optional): Start address for searchendAddress
(optional): End address for search
Example:
search_text
Searches for text strings in the binary.
Parameters:
text
(required): Text to search forcaseSensitive
(optional): Whether the search is case sensitive (default: false)startAddress
(optional): Start address for searchendAddress
(optional): End address for search
Example:
search_byte_sequence
Searches for a specific byte sequence in the binary.
Parameters:
bytes
(required): Byte sequence to search for (e.g., "90 90 90" for three NOPs)startAddress
(optional): Start address for searchendAddress
(optional): End address for search
Example:
get_disassembly
Gets disassembly for an address range.
Parameters:
startAddress
(required): Start address for disassemblyendAddress
(optional): End address for disassemblycount
(optional): Number of instructions to disassemble
Example:
get_functions
Gets the list of functions from the binary.
Parameters:
- None required
Example:
get_exports
Gets the list of exports from the binary.
Parameters:
- None required
Example:
get_strings
Gets the list of strings from the binary.
Parameters:
- None required
Example:
IDA Pro Remote Control API
The IDA Pro Remote Control Plugin exposes the following HTTP endpoints:
GET /api/info
: Get plugin informationGET /api/strings
: Get strings from the binaryGET /api/exports
: Get exports from the binaryGET /api/imports
: Get imports from the binaryGET /api/functions
: Get function listGET /api/search/immediate
: Search for immediate values in instructionsGET /api/search/text
: Search for text in the binaryGET /api/search/bytes
: Search for byte sequences in the binaryGET /api/disassembly
: Get disassembly for an address rangePOST /api/execute
: Execute Python script (JSON/Form)POST /api/executebypath
: Execute Python script from file pathPOST /api/executebody
: Execute Python script from raw body
Security Considerations
By default, the IDA Pro Remote Control Plugin only listens on 127.0.0.1
(localhost) for security reasons. This prevents remote access to your IDA Pro instance.
If you need to allow remote access, you can modify the DEFAULT_HOST
variable in ida_remote_server.py
, but be aware of the security implications.
Development
Building from Source
Running Tests
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Florian Drechsler (@fdrechsler) fd@fdrechsler.com
You must be authenticated.
A Model Context Protocol server that enables AI assistants to interact with IDA Pro for reverse engineering and binary analysis tasks.