Logotipo de Ramune-ida

Ramune-ida

Organización
RamuneIDA

Headless IDA Pro MCP Server — expose IDA Pro's reverse engineering capabilities to AI agents for more efficient automated analysis.

EditorRamuneIDA
RepositorioRamune-ida
IdiomaPython
Forks
3
Estrellas
30
Herramientas disponibles
0
Tipo de transportestdio, streamable-http
Categorías
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    Ramune-ida ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    30 estrellas y 3 forks en el repositorio enlazado.

Ramune-ida

[WIP] This project is under active development. APIs and features may change without notice.

The main branch contains unstable updates. For stable versions, please use commits marked with release tags.

Headless IDA Pro MCP Server — expose IDA Pro's reverse engineering capabilities to AI agents via the Model Context Protocol.

中文版


What is this?

Ramune-ida runs IDA Pro (idalib) in headless mode and wraps it as an MCP server. AI agents like Claude, Cursor, or any MCP-compatible client can decompile functions, rename symbols, set types, and execute arbitrary IDAPython — all through structured tool calls.

Key Design Decisions

Process separation — The MCP server and IDA run in separate processes. The server is pure async Python; each IDA worker is a single-threaded subprocess communicating via dedicated fd-pair pipes (JSON line protocol). This eliminates all thread-safety issues that plague IDA SDK usage.

Plugin architecture — Tools are defined by metadata (description, parameters, tags) and handler functions. The server discovers tools at startup, dynamically generates MCP tool functions, and dispatches calls to the worker. Adding a new tool requires only a metadata file and a handler — no boilerplate registration code.

Worker is stateless — Workers are disposable command executors. All management state (task queues, crash recovery) lives in the Project layer. If a worker crashes, the project spawns a new one and reopens the IDB transparently.

Architecture

MCP Client (Claude / Cursor / ...)
    │  Streamable HTTP / SSE
    ▼
┌──────────────────────────────────┐
│  MCP Server (async Python)       │
│  FastMCP + Project management    │
│  Plugin discovery + registration │
└──────────────┬───────────────────┘
               │  fd-pair pipe (JSON lines)
         ┌─────┼─────┐
         ▼     ▼     ▼
      Worker Worker Worker
      idalib idalib idalib
      (plugin handlers)

Tools

Ramune-ida provides 28 tools (21 plugin tools + 7 session tools) covering the core reverse engineering workflow:

  • Session (7) — project lifecycle, database open/close, async task management
  • Analysis (4) — decompile, disassemble, cross-references, binary overview
  • Annotation (3) — rename symbols, read/write comments
  • Data (2) — auto-detect address type, read raw bytes
  • Listing (5) — enumerate functions, strings, imports, names, types (with filtering)
  • Search (2) — regex search across strings/names/disasm, byte pattern search
  • Types (3) — get/set types on functions/variables, declare C types (struct/enum/typedef)
  • Execution (1) — run arbitrary IDAPython with stdout/stderr capture
  • Undo (1) — IDA 9.0+ native undo

Low-frequency or exploratory operations are covered by execute_python, which provides full IDAPython access within the IDA environment.

Features

  • Metadata-driven plugin system — tools auto-discovered at startup, dynamic MCP registration, external plugin folder support
  • Framework tags — kind:read / kind:write / kind:unsafe — write tools auto-create undo points
  • Tag filtering — --exclude-tags to hide tools from MCP by tag, path glob, or name
  • Graceful cancellation — SIGUSR1 + sys.setprofile hook → 5s watchdog → SIGKILL fallback
  • Crash recovery — auto-recover from IDA component files, fallback to .i64, periodic .i64 packing
  • Output truncation — oversized output truncated with HTTP download for full content
  • File upload/download — HTTP endpoints for binary and IDB transfer

Plugins

Ramune-ida supports external plugins via <data-dir>/plugins/ (default ~/.ramune-ida/plugins/). Drop a plugin folder with metadata.py + handlers.py and restart — tools appear automatically.

See Writing Plugins for the full guide, including metadata reference, framework tags, handler contract, security model, and a complete example.

Quick Start

Requirements

  • Python >= 3.10
  • IDA Pro 9.0+ with idalib
  • uv (package manager)

Install

bash
git clone https://github.com/RamuneIDA/Ramune-ida.git
cd Ramune-ida
uv sync

Run

bash
# Default: Streamable HTTP on 127.0.0.1:8000
uv run ramune-ida

# Specify host and port
uv run ramune-ida http://0.0.0.0:8745

# Use IDA's bundled Python for workers
uv run ramune-ida --worker-python /opt/ida/python3

# SSE transport (legacy MCP clients)
uv run ramune-ida sse://127.0.0.1:9000

# Stdio transport (MCP over stdin/stdout, no network listener)
uv run ramune-ida stdio://

# Local mode (see "Local mode" below)
uv run ramune-ida --local stdio://

Local Mode

By default Ramune-ida treats each project as its own workspace under <data-dir>/projects/<project_id>/ and exposes HTTP endpoints so clients can upload binaries / download truncated outputs. This works well in containerised deployments but is awkward for direct local use on your own machine.

--local switches to a simpler on-disk layout:

  • All projects use the server cwd as their work_dir — no hidden per-project directory is created.
  • open_database accepts absolute paths or paths relative to cwd; you do not need to upload anything first.
  • The POST /files/... and GET /files/... HTTP endpoints are disabled (return 404).
  • Truncated tool outputs are written to <cwd>/.ramune-outputs/<project_id>/ and referenced by absolute filesystem path so clients can read them directly without HTTP.
  • close_project never deletes the cwd; it only wipes that project's .ramune-outputs/<project_id>/ subdirectory.
  • Web UI (--web) is force-disabled — the Web UI would otherwise enumerate the entire cwd.

Typical configuration for a stdio-based MCP client (Claude Desktop / Cursor / Codex CLI):

json
{
  "mcpServers": {
    "ramune-ida": {
      "command": "uv",
      "args": ["run", "ramune-ida", "--local", "stdio://"],
      "cwd": "/path/to/your/reversing/workspace"
    }
  }
}

MCP Client Configuration

For Claude Desktop or Cursor, add to your MCP config:

json
{
  "mcpServers": {
    "ramune-ida": {
      "type": "http",
      "url": "http://127.0.0.1:8000/mcp"
    }
  }
}

Basic Workflow

1. open_project()                          → get project_id
2. open_database(project_id, "target.exe") → IDA analyzes the binary
3. decompile(project_id, "main")           → decompiled C code
4. rename(project_id, addr="main", new_name="entry_main")
5. set_type(project_id, addr="0x401000", type="int foo(char *buf, int len)")
6. execute_python(project_id, code)        → run any IDAPython script
7. close_database(project_id)              → save and close
8. close_project(project_id)               → clean up

Project Isolation via Authorization Header (Experimental, Provisional)

This is a provisional, hacky implementation. The interface, on-disk format, and overall approach may change or be replaced at any time without notice. It exists today only because we needed some basic isolation for shared deployments; do not depend on it.

When the server runs over HTTP, every inbound request's Authorization header is captured. If a request carries one, the server enforces a tiny per-project ACL:

  • open_project writes the caller's auth string into <work_dir>/.auth for any newly created project.
  • Any subsequent tool call (or open_project reuse) targeting that project_id from a different auth is rejected with project_id '<id>' is already in use.
  • The projects tool only lists projects owned by the current auth, plus any unowned legacy projects.
  • Requests without an Authorization header are trusted and see/use everything (legacy behaviour).
  • --local and stdio:// modes have no HTTP header and therefore skip the entire ACL.

There is no token validation, no user model, no key file — the auth string is treated as an opaque namespace identifier. If you need real authentication / OAuth, terminate it at a reverse proxy (e.g. nginx) in front of Ramune-ida.

The HTTP file endpoints (POST /files/..., GET /files/...) intentionally do not check this ACL — anyone holding the URL can read or write the file. Treat upload/download URLs returned by open_project as capability tokens.

Web UI (Experimental)

Ramune-ida includes an optional web interface for observing AI agent activity and browsing IDA database state in real time. Enable it with --web:

bash
uv run ramune-ida --web

Features:

  • IDA-style linear disassembly (IDA View) with virtual scrolling and bidirectional loading
  • Decompilation with tree-sitter C syntax highlighting and line-level sync
  • Hex View with byte-level selection, multi-format copy, and virtual scrolling
  • Address space overview bar with per-pixel type mapping, zoom, and click-to-navigate
  • Right-click context menu on all panels (Copy address, Xrefs, Go to definition)
  • Keyboard shortcuts (X=Xrefs, G=Search, Esc=Back, mouse side buttons)
  • Cross-reference panel with manual query mode
  • Local Types browser with inline C definition expansion and nested type navigation
  • Search panel (regex + byte pattern)
  • Real-time AI activity stream with per-tool detail expansion
  • Dockable panel layout (drag, float, merge tabs) with persistent state
  • Auto-navigate to main/start on database open

See Web UI Documentation for details.

Note: The Web UI frontend was primarily written by AI (Claude) and has not undergone thorough code review.

Directory Layout

All data is stored under a single data directory (default ~/.ramune-ida, configurable via --data-dir or RAMUNE_DATA_DIR):

PathDescription
<data-dir>/projects/Project work directories (IDB files, outputs)
<data-dir>/plugins/External plugin folder

CLI Options

OptionDefaultDescription
urlhttp://127.0.0.1:8000Transport URL
--worker-pythonpythonPython interpreter for IDA workers
--soft-limit4Advisory threshold for concurrent workers
--hard-limit8Maximum concurrent workers (0 = unlimited)
--data-dir~/.ramune-idaData directory for projects and plugins (RAMUNE_DATA_DIR)
--auto-save-interval300Seconds between auto-saves (0 = disabled)
--output-max-length20000Truncate tool output beyond this many chars
--exclude-tags—Comma-separated tags to exclude from MCP (supports ::* globs)
--weboffEnable Web UI on the same port (ignored under --local or stdio://)
--localoffLocal mode: projects use cwd; disable /files endpoints and Web UI; outputs referenced by absolute path

Building

From source

bash
git clone https://github.com/RamuneIDA/Ramune-ida.git
cd Ramune-ida
uv sync
uv run ramune-ida

With frontend rebuild

Requires Node.js >= 18:

bash
RAMUNE_BUILD_WEB=1 uv build

Without RAMUNE_BUILD_WEB, uv build uses the pre-built frontend assets in the repository.

Docker

Requires a pre-built ida-pro:latest base image with IDA Pro installed

The Dockerfile uses multi-stage build — Node.js builds the frontend, the final image only contains Python + IDA. Web UI is enabled by default.

bash
docker build -t ramune-ida .
docker run -p 8000:8000 ramune-ida
Environment VariableDefaultDescription
TRANSPORThttp://0.0.0.0:8000Transport URL
SOFT_LIMIT4Advisory threshold for concurrent workers
HARD_LIMIT8Maximum concurrent workers
RAMUNE_DATA_DIR/data/ramune-idaData directory (projects + plugins)

License

MIT

Instalación

TypingMind
Requisitos:

Node.js 18+

{
  "mcpServers": {
    "ramuneida-ramune-ida": {
      "command": "",
      "args": []
    }
  }
}

Usa el MCP de Ramune-ida con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado Ramune-ida, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Puedes ejecutar MCP localmente en tu dispositivo o conectarte a la URL de un servidor MCP remoto.

Opción 1: Usa el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade Ramune-ida como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de Ramune-ida.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "ramuneida-ramune-ida": {
      "command": "npx",
      "args": [
        "-y",
        "Ramune-ida"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de Ramune-ida y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de Ramune-ida.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Ramune-ida para ayudarme con esta tarea?
Ramune-ida
Claro. Lo he leído.
Esto he encontrado usando Ramune-ida.

Opción 2: Añade la URL de un servidor MCP

Usa esta opción si Ramune-ida ya está alojado en un servidor remoto o si tu equipo quiere un conector compartido al que puedan acceder varios usuarios.

1

Abre Conectores MCP

En TypingMind, ve a Plugins, abre Conectores MCP y elige Añadir URL.

  1. Abre TypingMind en tu navegador.
  2. Ve a Plugins.
  3. Abre Conectores MCP.
  4. Haz clic en Añadir URL.
Formulario de TypingMind para añadir la URL de un servidor MCP personalizado
2

Pega la URL del servidor

Introduce la URL de tu servidor en el campo URL del servidor. Añade un nombre de conexión, una descripción, un icono, cabeceras HTTP personalizadas o la configuración del cliente OAuth si el servidor los requiere.

  1. Pega la URL de tu servidor en el campo URL del servidor.
  2. Introduce un nombre para la conexión de Ramune-ida.
  3. Añade una descripción y un icono si quieres que sea más fácil de identificar.
  4. Añade cabeceras HTTP personalizadas o los datos del cliente OAuth si el servidor requiere autenticación.
3

Crea la conexión

Haz clic en Crear conexión, vuelve a la lista de plugins y comprueba que la nueva conexión MCP esté activa.

  1. Haz clic en Crear conexión.
  2. Vuelve a la lista de conectores MCP.
  3. Comprueba que la conexión de Ramune-ida aparezca como activa.
  4. Actualiza la lista de plugins si la conexión no aparece de inmediato.
4

Cambia de modelo sin volver a conectar

Inicia un chat con tu modelo preferido, activa las herramientas de Ramune-ida desde Plugins y cambia de modelo cuando lo necesites. La conexión MCP seguirá disponible en el espacio de trabajo de TypingMind.

  1. Inicia un nuevo chat en TypingMind.
  2. Selecciona el modelo de IA que quieras usar.
  3. Activa las herramientas de Ramune-ida desde Plugins.
  4. Pide al modelo que use la herramienta cuando sea necesario.
  5. Cambia a otro modelo de IA y reutiliza la misma conexión MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar Ramune-ida para ayudarme con esta tarea?
Ramune-ida
Claro. Lo he leído.
Esto he encontrado usando Ramune-ida.

Preguntas frecuentes

¿Para qué sirve el servidor MCP Ramune-ida?

Ramune-ida es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP Ramune-ida con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar Ramune-ida con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de Ramune-ida con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con Ramune-ida conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP Ramune-ida a TypingMind?

Puedes conectar Ramune-ida en TypingMind con el conector MCP local o añadiendo la URL de un servidor MCP remoto. Usa el conector local cuando el servidor necesite acceder a archivos, aplicaciones o recursos privados de tu dispositivo, y una URL de servidor cuando el servidor MCP esté alojado de forma remota.

¿Qué herramientas ofrece el servidor MCP Ramune-ida en TypingMind?

Ramune-ida ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP Ramune-ida?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si Ramune-ida requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇