ida-pro-mcp

v1.4.0
ida-pro-mcp Checked 19 hours ago Published 1 year ago

Vibe reversing with IDA Pro

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

check_connection

Check if the IDA plugin is running

get_metadata

Get metadata about the current IDB

get_function_by_name

Get a function by its name

ParameterTypeDescription
name *stringName of the function to get

get_function_by_address

Get a function by its address

ParameterTypeDescription
address *stringAddress of the function to get

get_current_address

Get the address currently selected by the user

get_current_function

Get the function currently selected by the user

convert_number

Convert a number (decimal, hexadecimal) to different representations

ParameterTypeDescription
size *Size of the variable in bytes
text *stringTextual representation of the number to convert

list_functions

List all functions in the database (paginated)

ParameterTypeDescription
count *integerNumber of functions to list (100 is a good default, 0 means remainder)
offset *integerOffset to start listing from (start at 0)

list_globals_filter

List matching globals in the database (paginated, filtered)

ParameterTypeDescription
count *integerNumber of globals to list (100 is a good default, 0 means remainder)
filter *stringFilter to apply to the list (required parameter, empty string for no filter). Case-insensitive contains or /regex/ syntax
offset *integerOffset to start listing from (start at 0)

list_globals

List all globals in the database (paginated)

ParameterTypeDescription
count *integerNumber of globals to list (100 is a good default, 0 means remainder)
offset *integerOffset to start listing from (start at 0)

list_imports

List all imported symbols with their name and module (paginated)

ParameterTypeDescription
count *integerNumber of imports to list (100 is a good default, 0 means remainder)
offset *integerOffset to start listing from (start at 0)

list_strings_filter

List matching strings in the database (paginated, filtered)

ParameterTypeDescription
count *integerNumber of strings to list (100 is a good default, 0 means remainder)
filter *stringFilter to apply to the list (required parameter, empty string for no filter). Case-insensitive contains or /regex/ syntax
offset *integerOffset to start listing from (start at 0)

list_strings

List all strings in the database (paginated)

ParameterTypeDescription
count *integerNumber of strings to list (100 is a good default, 0 means remainder)
offset *integerOffset to start listing from (start at 0)

list_local_types

List all Local types in the database

decompile_function

Decompile a function at the given address

ParameterTypeDescription
address *stringAddress of the function to decompile

disassemble_function

Get assembly code for a function (API-compatible with older IDA builds)

ParameterTypeDescription
start_address *stringAddress of the function to disassemble

get_xrefs_to

Get all cross references to the given address

ParameterTypeDescription
address *stringAddress to get cross references to

get_xrefs_to_field

Get all cross references to a named struct field (member)

ParameterTypeDescription
field_name *stringName of the field (member) to get xrefs to
struct_name *stringName of the struct (type) containing the field

get_callees

Get all the functions called (callees) by the function at function_address

ParameterTypeDescription
function_address *stringAddress of the function to get callee functions

get_callers

Get all callers of the given address

ParameterTypeDescription
function_address *stringAddress of the function to get callers

get_entry_points

Get all entry points in the database

set_comment

Set a comment for a given address in the function disassembly and pseudocode

ParameterTypeDescription
address *stringAddress in the function to set the comment for
comment *stringComment text

rename_local_variable

Rename a local variable in a function

ParameterTypeDescription
function_address *stringAddress of the function containing the variable
new_name *stringNew name for the variable (empty for a default name)
old_name *stringCurrent name of the variable

rename_global_variable

Rename a global variable

ParameterTypeDescription
new_name *stringNew name for the global variable (empty for a default name)
old_name *stringCurrent name of the global variable

set_global_variable_type

Set a global variable's type

ParameterTypeDescription
new_type *stringNew type for the variable
variable_name *stringName of the global variable

patch_address_assembles

ParameterTypeDescription
address *stringStarting Address to apply patch
instructions *stringAssembly instructions separated by ';'

get_global_variable_value_by_name

Read a global variable's value (if known at compile-time) Prefer this function over the `data_read_*` functions.

ParameterTypeDescription
variable_name *stringName of the global variable

get_global_variable_value_at_address

Read a global variable's value by its address (if known at compile-time) Prefer this function over the `data_read_*` functions.

ParameterTypeDescription
address *stringAddress of the global variable

rename_function

Rename a function

ParameterTypeDescription
function_address *stringAddress of the function to rename
new_name *stringNew name for the function (empty for a default name)

set_function_prototype

Set a function's prototype

ParameterTypeDescription
function_address *stringAddress of the function
prototype *stringNew function prototype

declare_c_type

Create or update a local type from a C declaration

ParameterTypeDescription
c_declaration *stringC declaration of the type. Examples include: typedef int foo_t; struct bar { int a; bool b; };

set_local_variable_type

Set a local variable's type

ParameterTypeDescription
function_address *stringAddress of the decompiled function containing the variable
new_type *stringNew type for the variable
variable_name *stringName of the variable

get_stack_frame_variables

Retrieve the stack frame variables for a given function

ParameterTypeDescription
function_address *stringAddress of the disassembled function to retrieve the stack frame variables

get_defined_structures

Returns a list of all defined structures

analyze_struct_detailed

Detailed analysis of a structure with all fields

ParameterTypeDescription
name *stringName of the structure to analyze

get_struct_at_address

Get structure field values at a specific address

ParameterTypeDescription
address *stringAddress to analyze structure at
struct_name *stringName of the structure

get_struct_info_simple

Simple function to get basic structure information

ParameterTypeDescription
name *stringName of the structure

search_structures

Search for structures by name pattern

ParameterTypeDescription
filter *stringFilter pattern to search for structures (case-insensitive)

rename_stack_frame_variable

Change the name of a stack variable for an IDA function

ParameterTypeDescription
function_address *stringAddress of the disassembled function to set the stack frame variables
new_name *stringNew name for the variable (empty for a default name)
old_name *stringCurrent name of the variable

create_stack_frame_variable

For a given function, create a stack variable at an offset and with a specific type

ParameterTypeDescription
function_address *stringAddress of the disassembled function to set the stack frame variables
offset *stringOffset of the stack frame variable
type_name *stringType of the stack variable
variable_name *stringName of the stack variable

set_stack_frame_variable_type

For a given disassembled function, set the type of a stack variable

ParameterTypeDescription
function_address *stringAddress of the disassembled function to set the stack frame variables
type_name *stringType of the stack variable
variable_name *stringName of the stack variable

delete_stack_frame_variable

Delete the named stack variable for a given function

ParameterTypeDescription
function_address *stringAddress of the function to set the stack frame variables
variable_name *stringName of the stack variable

read_memory_bytes

Read bytes at a given address. Only use this function if `get_global_variable_at` and `get_global_variable_by_name` both failed.

ParameterTypeDescription
memory_address *stringAddress of the memory value to be read
size *integersize of memory to read

data_read_byte

Read the 1 byte value at the specified address. Only use this function if `get_global_variable_at` failed.

ParameterTypeDescription
address *stringAddress to get 1 byte value from

data_read_word

Read the 2 byte value at the specified address as a WORD. Only use this function if `get_global_variable_at` failed.

ParameterTypeDescription
address *stringAddress to get 2 bytes value from

data_read_dword

Read the 4 byte value at the specified address as a DWORD. Only use this function if `get_global_variable_at` failed.

ParameterTypeDescription
address *stringAddress to get 4 bytes value from

data_read_qword

Read the 8 byte value at the specified address as a QWORD. Only use this function if `get_global_variable_at` failed.

ParameterTypeDescription
address *stringAddress to get 8 bytes value from

data_read_string

Read the string at the specified address. Only use this function if `get_global_variable_at` failed.

ParameterTypeDescription
address *stringAddress to get string from