IDA Free MCP logo

IDA Free MCP

Community
0xshlomil

A native C++ plugin that brings AI into your IDA reverse engineering workflow.

Publisher0xshlomil
Repositoryida-free-mcp
LanguageC++
Forks
15
Stars
46
Available tools
0
Transport typestreamable-http
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    IDA Free MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    46 stars and 15 forks from the linked repository.

IDA Free MCP

A native C++ plugin that brings AI into your IDA reverse engineering workflow.

It exposes IDA's analysis capabilities through the Model Context Protocol (MCP) — a standard interface that lets LLMs talk to tools. The plugin runs an HTTP server inside IDA's process, so your AI assistant can read disassembly, decompile functions, follow cross-references, rename variables, patch bytes, and more.

Usage

  1. Open a binary in IDA
  2. Edit > Plugins > MCP (or Ctrl+Alt+M) to start the server
  3. Connect your MCP client to http://0.0.0.0:13337/mcp
  4. Press Ctrl+Alt+M again to stop

Connecting an MCP client

bash
# Claude Code
claude mcp add --transport http ida-mcp http://127.0.0.1:13337/mcp

For other clients (Claude Desktop, Cursor, Windsurf, etc.), add to your MCP config:

json
{
  "mcpServers": {
    "ida-mcp": {
      "url": "http://127.0.0.1:13337/mcp"
    }
  }
}

Multiple IDA instances

Multiple IDA sessions can run MCP simultaneously — the port auto-increments if already in use (up to 10 attempts). Each instance writes its port, PID, and IDB path to ~/.ida-mcp/instances/<pid>.json. Stale files from crashed sessions are cleaned up automatically.

Environment variables

VariableDescriptionDefault
IDA_MCP_PORTBase port for the HTTP server13337
IDA_MCP_TOOL_TIMEOUT_SECTool execution timeout in seconds—
IDA_MCP_URLDownload base URL for large outputshttp://127.0.0.1:<port>

Requirements

  • CMake 3.16+, C++17 compiler (GCC, Clang, or MSVC)
  • IDA SDK (for building the plugin; not needed for tests)
  • IDA Pro / IDA Free 9.0+

Building

Quick start

bash
# Linux / macOS
./build.sh

# Windows (Developer Command Prompt)
build.bat

Both scripts build tests, run them, build the plugin, and install it. Set IDASDK to override the SDK path (default: idasdk/src submodule).

Manual build

bash
# Tests only (no IDA SDK required)
cmake -S . -B build/tests -DBUILD_PLUGIN=OFF -DBUILD_TESTS=ON
cmake --build build/tests --config Release

# Plugin
cmake -S . -B build/plugin -DBUILD_PLUGIN=ON -DBUILD_TESTS=OFF -DIDASDK=/path/to/idasdk
cmake --build build/plugin --config Release

Copy the built plugin (ida_mcp.so / .dll / .dylib) to your IDA plugins/ directory.

Pre-built binaries are available on the releases page.

Architecture

IDA Plugin (plugin.cpp)
  └─ McpPlugmod
       ├─ McpProtocol (mcp.h)        ← Tool/resource registry, MCP methods
       │    └─ JsonRpcRegistry        ← JSON-RPC 2.0 dispatch
       └─ McpHttpServer (server.h)    ← HTTP routes, CORS, SSE

All IDA SDK calls are marshalled to IDA's main thread via execute_sync(MFF_WRITE) with timeout and cancellation support.

Transports: Streamable HTTP (POST /mcp) and SSE (GET /sse).

Tools & Resources

37 tools organized into 7 groups. Every tool runs on IDA's main thread via execute_sync for thread safety.

GroupTools
Coreint_convert, lookup_funcs, list_funcs, list_globals, imports, find_regex
Analysisdisasm, xrefs_to, xrefs_to_field, callees, callgraph, basic_blocks, find, find_bytes, export_funcs
Memoryget_bytes, get_string, get_int, get_global_value, patch, put_int
Modifyset_comments, rename, patch_asm, define_func, define_code, undefine
Typesdeclare_type, read_struct, search_structs, set_type
Stackstack_frame, declare_stack, delete_stack
Decompilerdecompile, hexrays_diag, debug_mode

Note: The decompile tool works on both IDA Pro and IDA Free. It uses GUI-based decompilation (triggers F5 and reads the pseudocode widget) — no Hex-Rays SDK initialization required. The hexrays_diag tool reports SDK status for diagnostics only; init_hexrays_plugin: false is expected on IDA Free and does not affect decompilation.

11 MCP resources for read access to IDA state: ida://idb/metadata, ida://idb/segments, ida://idb/entrypoints, ida://cursor, ida://selection, ida://types, ida://structs, ida://struct/{name}, ida://import/{name}, ida://export/{name}, ida://xrefs/from/{addr}.

Dependencies

All vendored in deps/ (header-only): nlohmann/json, cpp-httplib, doctest.

License

See LICENSE file.

Use IDA Free MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once IDA Free MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP connects through a hosted MCP server URL in TypingMind.

Add an MCP server URL

Use this when IDA Free MCP is already hosted remotely or your team wants one shared connector that multiple users can access.

1

Open MCP connectors

In TypingMind, go to Plugins, open MCP connectors, then choose Add URL.

  1. Open TypingMind in your browser.
  2. Go to Plugins.
  3. Open MCP connectors.
  4. Click Add URL.
TypingMind Add Custom MCP Server URL form
2

Paste the server URL

Enter the MCP server URL from the provider in the Server URL field. Add a connection name, description, icon, custom HTTP headers, or OAuth client settings if the server requires them.

  1. Paste the MCP server URL from the provider into the Server URL field.
  2. Enter a connection name for IDA Free MCP.
  3. Add a description and icon if you want it to be easier to identify.
  4. Add custom HTTP headers or OAuth client details if the server requires authentication.
3

Create the connection

Click Create connection, then return to the Plugins list and confirm the new MCP connection is active.

  1. Click Create connection.
  2. Return to the MCP connectors list.
  3. Confirm the IDA Free MCP connection appears as active.
  4. Refresh the plugin list if the connection does not appear immediately.
4

Switch models without reconnecting

Start a chat with your preferred model, enable the IDA Free MCP tools from Plugins, and switch to another model whenever needed. The MCP connection stays available to the TypingMind workspace.

  1. Start a new chat in TypingMind.
  2. Select the AI model you want to use.
  3. Enable the IDA Free MCP tools from Plugins.
  4. Ask the model to use the tool when needed.
  5. Switch to another AI model and reuse the same MCP connection.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use IDA Free MCP to help me with this task?
IDA Free MCP
Sure. I read it.
Here is what I found using IDA Free MCP.

Frequently asked questions

What is the IDA Free MCP MCP server used for?

IDA Free MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use IDA Free MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use IDA Free MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use IDA Free MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With IDA Free MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect IDA Free MCP MCP to TypingMind?

IDA Free MCP can be connected in TypingMind by adding its hosted MCP server URL. This is useful when you want a remote MCP connection that is available from your TypingMind workspace.

What tools does IDA Free MCP MCP provide in TypingMind?

IDA Free MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use IDA Free MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If IDA Free MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇