Logo van IDA Free MCP

IDA Free MCP

Community
0xshlomil

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

Uitgever0xshlomil
Repositoryida-free-mcp
TaalC++
Forks
15
Sterren
46
Beschikbare tools
0
Transporttypestreamable-http
Categorieën
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    IDA Free MCP biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • Beschikbare tools: 0

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Belangstelling voor het opensourceproject

    Statistieken van de gekoppelde repository (sterren: 46, forks: 15).

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.

Gebruik IDA Free MCP MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra IDA Free MCP is verbonden, kun je de verbinding dus met verschillende AI-modellen in TypingMind gebruiken, zonder die voor elk model apart in te stellen. Deze MCP-integratie maakt in TypingMind verbinding via de URL van een gehoste MCP-server.

Voeg een MCP-server-URL toe

Gebruik dit als IDA Free MCP al extern wordt gehost of als je team één gedeelde connector wil waar meerdere gebruikers toegang toe hebben.

1

Open MCP-connectoren

Ga in TypingMind naar Plug-ins, open MCP-connectoren en kies URL toevoegen.

  1. Open TypingMind in je browser.
  2. Ga naar Plug-ins.
  3. Open MCP-connectoren.
  4. Klik op URL toevoegen.
TypingMind-formulier om een eigen MCP-server-URL toe te voegen
2

Plak de server-URL

Voer de MCP-server-URL van de aanbieder in het veld Server-URL in. Voeg een verbindingsnaam, beschrijving, icoon, aangepaste HTTP-headers of OAuth-clientinstellingen toe als de server die vereist.

  1. Plak de MCP-server-URL van de aanbieder in het veld Server-URL.
  2. Voer een verbindingsnaam in voor IDA Free MCP.
  3. Voeg een beschrijving en een icoon toe als je de verbinding makkelijker wilt herkennen.
  4. Voeg aangepaste HTTP-headers of OAuth-clientgegevens toe als de server authenticatie vereist.
3

Maak de verbinding aan

Klik op Verbinding maken, ga terug naar de lijst met plug-ins en controleer of de nieuwe MCP-verbinding actief is.

  1. Klik op Verbinding maken.
  2. Ga terug naar de lijst met MCP-connectoren.
  3. Controleer of de verbinding met IDA Free MCP als actief wordt weergegeven.
  4. Vernieuw de lijst met plug-ins als de verbinding niet meteen verschijnt.
4

Wissel van model zonder opnieuw verbinding te maken

Start een chat met je favoriete model, schakel de tools van IDA Free MCP in via Plug-ins en wissel van model wanneer dat nodig is. De MCP-verbinding blijft beschikbaar in de TypingMind-werkruimte.

  1. Start een nieuwe chat in TypingMind.
  2. Selecteer het AI-model dat je wilt gebruiken.
  3. Schakel de tools van IDA Free MCP in via Plug-ins.
  4. Vraag het model om de tool te gebruiken wanneer dat nodig is.
  5. Schakel over naar een ander AI-model en gebruik dezelfde MCP-verbinding opnieuw.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je IDA Free MCP gebruiken om me hiermee te helpen?
IDA Free MCP
Zeker. Ik heb het gelezen.
Dit vond ik met IDA Free MCP.

Veelgestelde vragen

Waarvoor wordt de MCP-server IDA Free MCP gebruikt?

IDA Free MCP is een MCP-server waarmee compatibele AI-clients toegang krijgen tot externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik IDA Free MCP MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je IDA Free MCP gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom IDA Free MCP MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als IDA Free MCP verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik IDA Free MCP MCP met TypingMind?

Je kunt IDA Free MCP met TypingMind verbinden door de URL van de gehoste MCP-server toe te voegen. Dit is handig als je een externe MCP-verbinding wilt die beschikbaar is vanuit je TypingMind-werkruimte.

Welke tools biedt IDA Free MCP MCP in TypingMind?

IDA Free MCP biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om IDA Free MCP MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als IDA Free MCP authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇