Logo di IDA Free MCP

IDA Free MCP

Community
0xshlomil

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

Pubblicato da0xshlomil
Repositoryida-free-mcp
LinguaC++
Fork
15
Stelle
46
Strumenti disponibili
0
Tipo di trasportostreamable-http
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    IDA Free MCP mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • Strumenti disponibili: 0

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni se il server li fornisce.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse della comunità open source

    Stelle: 46; fork: 15 (repository collegato).

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.

Usa IDA Free MCP MCP con più modelli AI

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso IDA Free MCP, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP si connette in TypingMind tramite l'URL di un server MCP ospitato in remoto.

Aggiungi l'URL di un server MCP

Usa questo metodo se IDA Free MCP è già ospitato in remoto o se il tuo team vuole un unico connettore condiviso accessibile a più utenti.

1

Apri Connettori MCP

In TypingMind, vai su Plugin, apri Connettori MCP e scegli Aggiungi URL.

  1. Apri TypingMind nel tuo browser.
  2. Vai a Plugin.
  3. Apri Connettori MCP.
  4. Fai clic su Aggiungi URL.
Modulo di TypingMind per aggiungere l'URL di un server MCP personalizzato
2

Incolla l'URL del server

Inserisci l'URL del server MCP fornito dal provider nel campo URL del server. Aggiungi un nome per la connessione, una descrizione, un'icona, header HTTP personalizzati o le impostazioni del client OAuth se richiesti dal server.

  1. Incolla l'URL del server MCP fornito dal provider nel campo URL del server.
  2. Inserisci un nome per la connessione a IDA Free MCP.
  3. Se vuoi riconoscere più facilmente la connessione, aggiungi una descrizione e un’icona.
  4. Aggiungi header HTTP personalizzati o i dati del client OAuth se il server richiede l'autenticazione.
3

Crea la connessione

Fai clic su Crea connessione, poi torna all'elenco dei plugin e verifica che la nuova connessione MCP sia attiva.

  1. Fai clic su Crea connessione.
  2. Torna all'elenco dei connettori MCP.
  3. Verifica che la connessione IDA Free MCP risulti attiva.
  4. Aggiorna l'elenco dei plugin se la connessione non appare subito.
4

Cambia modello senza dover ristabilire la connessione MCP

Avvia una chat con il tuo modello preferito, abilita gli strumenti di IDA Free MCP dalla sezione Plugin e passa a un altro modello quando serve. La connessione MCP rimane disponibile nell'area di lavoro di TypingMind.

  1. Avvia una nuova chat in TypingMind.
  2. Seleziona il modello IA che vuoi usare.
  3. Abilita gli strumenti di IDA Free MCP dalla sezione Plugin.
  4. Chiedi al modello di usare lo strumento quando serve.
  5. Passa a un altro modello IA e riutilizza la stessa connessione MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare IDA Free MCP per aiutarmi con questa attività?
IDA Free MCP
Certo. L’ho letto.
Ecco cosa ho trovato con IDA Free MCP.

Domande frequenti

A cosa serve il server MCP IDA Free MCP?

IDA Free MCP è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare il server MCP IDA Free MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare IDA Free MCP con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP IDA Free MCP con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando IDA Free MCP, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego il server MCP IDA Free MCP a TypingMind?

Puoi collegare IDA Free MCP a TypingMind aggiungendo l'URL del suo server MCP ospitato in remoto. È utile se vuoi una connessione MCP remota disponibile dalla tua area di lavoro TypingMind.

Quali strumenti offre il server MCP IDA Free MCP in TypingMind?

IDA Free MCP mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare il server MCP IDA Free MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se IDA Free MCP richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇