ida-pro-mcp
v1.4.0Vibe 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
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the function to get |
get_function_by_address
Get a function by its address
| Parameter | Type | Description |
|---|---|---|
address * | string | Address 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
| Parameter | Type | Description |
|---|---|---|
size * | Size of the variable in bytes | |
text * | string | Textual representation of the number to convert |
list_functions
List all functions in the database (paginated)
| Parameter | Type | Description |
|---|---|---|
count * | integer | Number of functions to list (100 is a good default, 0 means remainder) |
offset * | integer | Offset to start listing from (start at 0) |
list_globals_filter
List matching globals in the database (paginated, filtered)
| Parameter | Type | Description |
|---|---|---|
count * | integer | Number of globals to list (100 is a good default, 0 means remainder) |
filter * | string | Filter to apply to the list (required parameter, empty string for no filter). Case-insensitive contains or /regex/ syntax |
offset * | integer | Offset to start listing from (start at 0) |
list_globals
List all globals in the database (paginated)
| Parameter | Type | Description |
|---|---|---|
count * | integer | Number of globals to list (100 is a good default, 0 means remainder) |
offset * | integer | Offset to start listing from (start at 0) |
list_imports
List all imported symbols with their name and module (paginated)
| Parameter | Type | Description |
|---|---|---|
count * | integer | Number of imports to list (100 is a good default, 0 means remainder) |
offset * | integer | Offset to start listing from (start at 0) |
list_strings_filter
List matching strings in the database (paginated, filtered)
| Parameter | Type | Description |
|---|---|---|
count * | integer | Number of strings to list (100 is a good default, 0 means remainder) |
filter * | string | Filter to apply to the list (required parameter, empty string for no filter). Case-insensitive contains or /regex/ syntax |
offset * | integer | Offset to start listing from (start at 0) |
list_strings
List all strings in the database (paginated)
| Parameter | Type | Description |
|---|---|---|
count * | integer | Number of strings to list (100 is a good default, 0 means remainder) |
offset * | integer | Offset 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
| Parameter | Type | Description |
|---|---|---|
address * | string | Address of the function to decompile |
disassemble_function
Get assembly code for a function (API-compatible with older IDA builds)
| Parameter | Type | Description |
|---|---|---|
start_address * | string | Address of the function to disassemble |
get_xrefs_to
Get all cross references to the given address
| Parameter | Type | Description |
|---|---|---|
address * | string | Address to get cross references to |
get_xrefs_to_field
Get all cross references to a named struct field (member)
| Parameter | Type | Description |
|---|---|---|
field_name * | string | Name of the field (member) to get xrefs to |
struct_name * | string | Name of the struct (type) containing the field |
get_callees
Get all the functions called (callees) by the function at function_address
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the function to get callee functions |
get_callers
Get all callers of the given address
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address 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
| Parameter | Type | Description |
|---|---|---|
address * | string | Address in the function to set the comment for |
comment * | string | Comment text |
rename_local_variable
Rename a local variable in a function
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the function containing the variable |
new_name * | string | New name for the variable (empty for a default name) |
old_name * | string | Current name of the variable |
rename_global_variable
Rename a global variable
| Parameter | Type | Description |
|---|---|---|
new_name * | string | New name for the global variable (empty for a default name) |
old_name * | string | Current name of the global variable |
set_global_variable_type
Set a global variable's type
| Parameter | Type | Description |
|---|---|---|
new_type * | string | New type for the variable |
variable_name * | string | Name of the global variable |
patch_address_assembles
| Parameter | Type | Description |
|---|---|---|
address * | string | Starting Address to apply patch |
instructions * | string | Assembly 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.
| Parameter | Type | Description |
|---|---|---|
variable_name * | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address of the global variable |
rename_function
Rename a function
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the function to rename |
new_name * | string | New name for the function (empty for a default name) |
set_function_prototype
Set a function's prototype
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the function |
prototype * | string | New function prototype |
declare_c_type
Create or update a local type from a C declaration
| Parameter | Type | Description |
|---|---|---|
c_declaration * | string | C 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
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the decompiled function containing the variable |
new_type * | string | New type for the variable |
variable_name * | string | Name of the variable |
get_stack_frame_variables
Retrieve the stack frame variables for a given function
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address 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
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the structure to analyze |
get_struct_at_address
Get structure field values at a specific address
| Parameter | Type | Description |
|---|---|---|
address * | string | Address to analyze structure at |
struct_name * | string | Name of the structure |
get_struct_info_simple
Simple function to get basic structure information
| Parameter | Type | Description |
|---|---|---|
name * | string | Name of the structure |
search_structures
Search for structures by name pattern
| Parameter | Type | Description |
|---|---|---|
filter * | string | Filter pattern to search for structures (case-insensitive) |
rename_stack_frame_variable
Change the name of a stack variable for an IDA function
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the disassembled function to set the stack frame variables |
new_name * | string | New name for the variable (empty for a default name) |
old_name * | string | Current name of the variable |
create_stack_frame_variable
For a given function, create a stack variable at an offset and with a specific type
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the disassembled function to set the stack frame variables |
offset * | string | Offset of the stack frame variable |
type_name * | string | Type of the stack variable |
variable_name * | string | Name of the stack variable |
set_stack_frame_variable_type
For a given disassembled function, set the type of a stack variable
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the disassembled function to set the stack frame variables |
type_name * | string | Type of the stack variable |
variable_name * | string | Name of the stack variable |
delete_stack_frame_variable
Delete the named stack variable for a given function
| Parameter | Type | Description |
|---|---|---|
function_address * | string | Address of the function to set the stack frame variables |
variable_name * | string | Name 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.
| Parameter | Type | Description |
|---|---|---|
memory_address * | string | Address of the memory value to be read |
size * | integer | size 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.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address 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.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address 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.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address 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.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address 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.
| Parameter | Type | Description |
|---|---|---|
address * | string | Address to get string from |