agentleFS
mrexodiamrexodia/ida-pro-mcp/CLAUDE.md

ida-pro-mcp

CLAUDE.md12k starsChanged 4 months agoMITView on GitHub

Guidance for working in this repository. IDA Pro MCP Server: exposes IDA Pro / idalib functionality to MCP clients. Main pieces: - src/ida_pro_mcp/server.py: MCP server entrypoint - src/ida_pro_mcp/idalib_server.py: headless idalib server - src/ida_pro_mcp/ida_mcp/: IDA/plugin-side APIs Important API modules: - api_core.py: IDB metadata, functions, strings, imports - api_analysis.py: decompilation, disassembly, xrefs, paths, pattern search - api_memory.py: bytes/ints/strings, patching - api_types.py: structs, type inference, type application - api_modify.py: comments, renaming, asm patching - api_stack.py: stack frame operations - api_sigmaker.py: signature creation, scanning,…

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 1 mentionFeb 2026: 2 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 4 mentionsJun 2026: 2 mentionsJul 2026: 3 mentionsAug 2026: 3 mentionsSep 2026: 15 mentionsOct 2026: 2 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the mrexodia/ida-pro-mcp repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about mrexodia/ida-pro-mcp

The biggest 5 of 45 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 45

Talked about on GitHub, Bluesky and Hacker News (45 times).

On GitHub · 41

36 more on GitHub
  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All IDA SDK calls must run on the main thread.

    line 29
  2. Very specific:

    Use full type hints and Annotated[...] descriptions.

    line 44
  3. Very specific:

    Use shared pagination / filtering helpers from utils.py

    line 56
  4. Distinctive:

    Use the headless test runner:

    line 95
  5. Distinctive:

    Prefer semantic assertions, not weak "field exists" checks

    line 122
  6. Distinctive:

    Prefer round-trip tests for mutating APIs

    line 123
  7. Distinctive:

    If tests expose clearly wrong API behavior, fix the API instead of weakening the test

    line 124
  8. Distinctive:

    When adding generic tests, also try a non-fixture binary to avoid ELF-specific assumptions:

    line 129
  9. Very specific:

    If IDA uses the wrong Python, use idapyswitch

    line 157

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

CLAUDE.md

Guidance for working in this repository.

What this project is

IDA Pro MCP Server: exposes IDA Pro / idalib functionality to MCP clients.

Main pieces:

  • src/ida_pro_mcp/server.py: MCP server entrypoint
  • src/ida_pro_mcp/idalib_server.py: headless idalib server
  • src/ida_pro_mcp/ida_mcp/: IDA/plugin-side APIs

Important API modules:

  • api_core.py: IDB metadata, functions, strings, imports
  • api_analysis.py: decompilation, disassembly, xrefs, paths, pattern search
  • api_memory.py: bytes/ints/strings, patching
  • api_types.py: structs, type inference, type application
  • api_modify.py: comments, renaming, asm patching
  • api_stack.py: stack frame operations
  • api_sigmaker.py: signature creation, scanning, xref signatures (uses sigmaker.py)
  • api_debug.py: debugger control, unsafe / low priority for tests
  • api_python.py: execute Python in IDA context
  • api_resources.py: ida:// MCP resources

Core implementation rules

IDA thread safety

All IDA SDK calls must run on the main thread. Use:

from .rpc import tool
from .sync import idasync

@tool
@idasync
def my_tool(...):
    ...

API conventions

  • Prefer batch-first APIs.
  • Many functions accept either a comma-separated string or a list.
  • Use full type hints and Annotated[...] descriptions.
  • The function docstring becomes the MCP tool description.

Example:

def my_api(addrs: Annotated[str, "Addresses (0x401000, main) or list"]) -> list[dict]:
    ...

Common helpers

  • Parse addresses with parse_address()
  • Normalize batch input with normalize_list_input() / normalize_dict_list()
  • Use shared pagination / filtering helpers from utils.py

Unsafe operations

Debugger or destructive operations should be marked unsafe:

from .rpc import tool, unsafe

@unsafe
@tool
@idasync
def dangerous_op(...):
    ...

Development commands

Run

uv run ida-pro-mcp
uv run ida-pro-mcp --transport http://127.0.0.1:8744/sse
uv run idalib-mcp --stdio path/to/binary
uv run idalib-mcp --host 127.0.0.1 --port 8745 path/to/binary
uv run ida-pro-mcp --unsafe

MCP inspector

uv run mcp dev src/ida_pro_mcp/server.py

Install / uninstall

uv run ida-pro-mcp --install
uv run ida-pro-mcp --uninstall

Testing and coverage

Run tests

Use the headless test runner:

uv run ida-mcp-test tests/crackme03.elf -q
uv run ida-mcp-test tests/typed_fixture.elf -q
uv run ida-mcp-test tests/crackme03.elf -c api_analysis
uv run ida-mcp-test tests/typed_fixture.elf -p "*stack*"

Notes:

  • Use uv run ...
  • Non-interactive output should show failures only plus a summary
  • Binary-specific tests should use @test(binary="...") with the executable basename

Coverage

Measure coverage across both maintained fixtures:

uv run coverage erase
uv run coverage run -m ida_pro_mcp.test tests/crackme03.elf -q
uv run coverage run --append -m ida_pro_mcp.test tests/typed_fixture.elf -q
uv run coverage report --show-missing

Current fixture intent:

  • tests/crackme03.elf: compact general regression fixture
  • tests/typed_fixture.elf: typed globals / structs / locals / stack coverage fixture

Test expectations

  • Prefer semantic assertions, not weak "field exists" checks
  • Prefer round-trip tests for mutating APIs
  • If tests expose clearly wrong API behavior, fix the API instead of weakening the test
  • Focus on IDA-facing modules, not server/config plumbing
  • Expect some IDA / Hex-Rays variance; guarded assertions or runtime skips are acceptable when justified

Generic-test sanity check

When adding generic tests, also try a non-fixture binary to avoid ELF-specific assumptions:

uv run ida-mcp-test "C:\CodeBlocks\x64dbg\bin\x64\x64dbg.dll" -q

Scope priorities

High priority:

  • api_analysis.py
  • api_types.py
  • api_modify.py
  • api_stack.py
  • api_memory.py
  • api_core.py
  • api_resources.py
  • utils.py
  • framework.py

Lower priority:

  • api_debug.py
  • MCP transport / hosting details
  • install / config mutation logic

Practical notes

  • Server/plugin Python: 3.11+
  • IDA Pro 8.3+; 9.0 recommended
  • IDA Free is not supported
  • If IDA uses the wrong Python, use idapyswitch

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.