This is a comprehensive reference for writing IDAPython scripts when you're reverse engineering binaries in IDA Pro. It covers the modern ida_* module ecosystem with a routing table for common tasks, code patterns for everything from iterating functions to walking the decompiler's AST, and examples for working with types, cross-references, and Hex-Rays decompilation. The anti-patterns section is especially helpful since it steers you away from the legacy idc module that still shows up in old Stack Overflow answers. If you're doing any serious binary analysis work in IDA, this cuts through the fragmented documentation and gives you working patterns for the most common scripting tasks.

skills.sh installs
368
GitHub stars
13.4K
last updated
Jun 3, 2026

Install

$ npx -y skills add mrexodia/ida-pro-mcp --skill idapython --agent claude-code

Installs into .claude/skills of the current project.

Files

IDAPython

Use modern ida_* modules. Avoid legacy idc module.

Module Router

TaskModuleKey Items
Bytes/memoryida_bytesget_bytes, patch_bytes, get_flags, create_*
Functionsida_funcsfunc_t, get_func, add_func, get_func_name
Namesida_nameset_name, get_name, demangle_name
Typesida_typeinftinfo_t, apply_tinfo, parse_decl
Decompilerida_hexraysdecompile, cfunc_t, lvar_t, ctree visitor
Segmentsida_segmentsegment_t, getseg, add_segm
Xrefsida_xrefxrefblk_t, add_cref, add_dref
Instructionsida_uainsn_t, op_t, decode_insn
Stack framesida_frameget_frame, define_stkvar
IterationidautilsFunctions(), Heads(), XrefsTo(), Strings()
UI/dialogsida_kernwinmsg, ask_*, jumpto, Choose
Database infoida_idainf_get_*, inf_is_64bit()
Analysisida_autoauto_wait, plan_and_wait
Flow graphsida_gdlFlowChart, BasicBlock
Register trackingida_regfinderfind_reg_value, reg_value_info_t

Core Patterns

Sponsors

Details

Repository
github.com/mrexodia/ida-pro-mcp
Category
AI & Agent Building
First seen
Jun 3, 2026
1tech-leads-club avatardomain-analysistech-leads-club/agent-skillsMaps business domains and suggests service boundaries in any codebase using DDD Strategic Design. Use when asking "what are the domains in this codebase?", "whe368skills.sh installs
2buiducnhat avatarquick-implementbuiducnhat/agent-skillsquick implement367skills.sh installs
3krutikjain avatarandroid-di-hiltkrutikjain/android-agent-skillsWire Android dependency injection with Hilt, scopes, testing overrides, and module ownership boundaries.367skills.sh installs
4laravel avatardeploying-laravel-cloudlaravel/agent-skillsDeploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to cloud, create/manage environm364skills.sh installs
5fal-ai-community avatarfal-generatefal-ai-community/skillsGenerate images and videos using fal.ai AI models with queue support. Use when the user requests "Generate image", "Create video", "Make a picture of...", "Text363skills.sh installs
6thedivergentai avatargodot-ui-themingthedivergentai/gd-agentic-skillsExpert blueprint for UI themes using Theme resources, StyleBoxes, custom fonts, and theme overrides for consistent visual styling. Covers StyleBoxFlat/Texture, 363skills.sh installs