Skip to main content
Glama

IDA MCP Server

NOTE

The idalib mode is under development, and it will not require installing the IDA plugin or running IDA (idalib is available from IDA Pro 9.0+).

Overview

A Model Context Protocol server for IDA interaction and automation. This server provides tools to read IDA database via Large Language Models.

Please note that mcp-server-ida is currently in early development. The functionality and available tools are subject to change and expansion as we continue to develop and improve the server.

Related MCP server: Binary Ninja MCP Server

Installation

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-ida.

Using PIP

Alternatively you can install mcp-server-ida via pip:

pip install mcp-server-ida

After installation, you can run it as a script using:

python -m mcp_server_ida

IDA-Side

Copy repository/plugin/ida_mcp_server_plugin.py and repository/plugin/ida_mcp_server_plugin directory into IDAs plugin directory

Windows: %APPDATA%\Hex-Rays\IDA Pro\plugins

Linux/macOS: $HOME/.idapro/plugins eg: ~/.idapro/plugins

igors-tip-of-the-week-103-sharing-plugins-between-ida-installs

Configuration

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

"mcpServers": {
  "ida": {
    "command": "uvx",
    "args": [
        "mcp-server-ida"
    ]
  }
}
"mcpServers": {
  "ida": {
    "command": "python",
    "args": [
        "-m", 
        "mcp_server_ida"
    ]
  }
}

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-ida

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/mcp-server-ida/src
npx @modelcontextprotocol/inspector uv run mcp-server-ida

Running tail -n 20 -f ~/Library/Logs/Claude/mcp*.log will show the logs from the server and may help you debug any issues.

Development

If you are doing local development, there are two ways to test your changes:

  1. Run the MCP inspector to test your changes. See Debugging for run instructions.

  2. Test using the Claude desktop app. Add the following to your claude_desktop_config.json:

UVX

{
"mcpServers": {
  "ida": {
    "command": "uv",
    "args": [ 
      "--directory",
      "/<path to mcp-server-ida>",
      "run",
      "mcp-server-ida"
    ]
  }
}

Alternatives

ida-pro-mcp

ida-mcp-server-plugin

mcp-server-idapro

pcm

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3

Available Tools

19 tools
ida_add_assembly_commentC

Add a comment at a specific address in the assembly view of the IDA database

Inputs: address (required), comment (required), is_repeatable.

ida_add_function_commentC

Add a comment to a function in the IDA database

Inputs: function_name (required), comment (required), is_repeatable.

ida_add_pseudocode_commentC

Add a comment to a specific address in the function's decompiled pseudocode

Inputs: function_name (required), address (required), comment (required), is_repeatable.

ida_execute_scriptC

Execute a Python script in IDA Pro and return its output. The script runs in IDA's context with access to all IDA API modules.

Inputs: script (required).

ida_execute_script_from_fileB

Execute a Python script from a file path in IDA Pro and return its output. The file should be accessible from IDA's process.

Inputs: file_path (required).

ida_get_current_function_assemblyB

Get assembly code for the function at the current cursor position

Inputs: no named parameters.

ida_get_current_function_decompiledB

Get decompiled pseudocode for the function at the current cursor position

Inputs: no named parameters.

ida_get_function_assembly_by_addressC

Get assembly code for a function by address

Inputs: address (required).

ida_get_function_assembly_by_nameC

Get assembly code for a function by name

Inputs: function_name (required).

ida_get_function_decompiled_by_addressC

Get decompiled pseudocode for a function by address

Inputs: address (required).

ida_get_function_decompiled_by_nameC

Get decompiled pseudocode for a function by name

Inputs: function_name (required).

ida_get_global_variable_by_addressC

Get information about a global variable by address

Inputs: address (required).

ida_get_global_variable_by_nameC

Get information about a global variable by name

Inputs: variable_name (required).

ida_rename_functionB

Rename a function in the IDA database

Inputs: old_name (required), new_name (required).

ida_rename_global_variableC

Rename a global variable in the IDA database

Inputs: old_name (required), new_name (required).

ida_rename_local_variableC

Rename a local variable within a function in the IDA database

Inputs: function_name (required), old_name (required), new_name (required).

ida_rename_multi_functionsC

Rename multiple functions at once in the IDA database

Inputs: rename_pairs_old2new (required).

ida_rename_multi_global_variablesC

Rename multiple global variables at once in the IDA database

Inputs: rename_pairs_old2new (required).

ida_rename_multi_local_variablesC

Rename multiple local variables within a function at once in the IDA database

Inputs: function_name (required), rename_pairs_old2new (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 19 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific resources (assembly, pseudocode, comments, renaming) with clear boundaries, though the two script execution tools (ida_execute_script and ida_execute_script_from_file) could be confused as they differ only in input source but serve the same core function. Other tools are well-differentiated by action and target.

    Naming Consistency5/5

    All tools follow a consistent 'ida_verb_noun' pattern with snake_case throughout, using clear verbs like 'add', 'get', 'rename', and 'execute'. The naming is predictable and readable, making it easy to understand each tool's function at a glance.

    Tool Count4/5

    With 19 tools, the count is slightly high but reasonable for an IDA Pro server covering analysis tasks like comments, code retrieval, script execution, and renaming. It avoids bloat by focusing on core functionalities, though some tools could potentially be consolidated (e.g., the multiple rename variants).

    Completeness5/5

    The tool set provides comprehensive coverage for IDA Pro interaction, including CRUD-like operations for comments, retrieval of assembly and pseudocode by various identifiers, renaming of functions and variables (single and batch), and script execution. No obvious gaps exist for typical reverse engineering workflows.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables Large Language Models to interact with Binary Ninja for reverse engineering tasks like viewing assembly code, decompiled code, renaming functions, and adding comments.
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An Model Context Protocol server that enables LLMs to autonomously reverse engineer applications by exposing Ghidra's decompilation and analysis tools. It allows AI agents to list code structures, rename methods, and analyze binaries directly through MCP-compatible clients.
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that runs inside IDA Pro for AI tools, exposing reverse-engineering capabilities like function listing, decompilation, and analysis via HTTP.
      MIT