# idamesh

Connects Hex-Rays decompiler and IDA Pro to coding assistants via MCP. Helps analyze binary targets, audit vulnerabilities, and coordinate multi-agent research.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7
- Author: JordanRO2
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/JordanRO2/idamesh
- Updated: 2026-10-18
- HTML: https://affpapa.org/en/nevibecode/mcp/idamesh

## What it does

The server exposes IDA Pro disassembly and Hex-Rays decompilation to MCP clients. It turns executable analysis data into tools and read-only `ida://…` resources. Models inspect memory directly. They can search text strings, examine struct layouts, and run vulnerability heuristics.

You can launch a headless worker for a single binary or run a supervisor at `http://127.0.0.1:8745/mcp`. The supervisor coordinates multiple databases behind one HTTP endpoint. Several agents can analyze private copies of the same binary simultaneously and reconcile their modifications with `idb_merge`. Running `idamesh install` adds a companion plugin directly into the IDA GUI.

Running the tool requires Python 3.9+ and a licensed IDA Pro installation with `idalib` or `idapro`. Without `IDADIR` pointing to your IDA folder, the server cannot access disassembler APIs.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `IDADIR` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env IDADIR=<IDADIR> --transport stdio idamesh -- uvx idamesh
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from idamesh <command>

### Codex

**Platform CLI**
```bash
codex mcp add idamesh --env IDADIR=<IDADIR> -- uvx idamesh
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from idamesh <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "idamesh": {
            "command": "uvx",
            "args": [
                "idamesh"
            ],
            "env": {
                "IDADIR": "<IDADIR>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from idamesh <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "idamesh": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "idamesh"
            ],
            "env": {
                "IDADIR": "<IDADIR>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from idamesh <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e IDADIR=<IDADIR> idamesh uvx idamesh
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from idamesh <command>

## When to use it
- decompile executable routines with Hex-Rays
- locate dangerous API usage and cryptographic routines
- track taint and reconstruct stack strings
- patch assembly and rename variables directly in IDA databases
- reconcile concurrent agent edits with idb_merge

## Example prompts
- Decompile the routine at `0x140001080` and explain the logic.
- Check for cross-references to crypto constants and show the call graph.
- Rename variable `v1` to `buffer_ptr` and update its type definition.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89609
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12110
- [Robin: AI-Powered Dark Web OSINT](https://affpapa.org/en/nevibecode/mcp/robin-ai-powered-dark-web-osint.md) — MCP server · ★ 7718
- [jshookmcp](https://affpapa.org/en/nevibecode/mcp/jshookmcp.md) — MCP server · ★ 2066
- [OpenOSINT](https://affpapa.org/en/nevibecode/mcp/openosint.md) — MCP server · ★ 1816

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
