Ghidra + python MCP Server

hjtrbo
Posts: 353
Joined: Tue Jul 06, 2021 8:57 am
cars: VF2 R8 LSA
FG XR6T
HJ Ute w/RB25DET

Ghidra + python MCP Server

Post by hjtrbo »

I've forked LaurieWired's ghidra mcp server and added server side python support to it.

What this gives you is the best of both worlds: GhidraMCP + ghidra_bridge capability. Tested with claude code desktop.

Use the conventional MCP tool calls for normal back-and-forth with the LLM, and run_python for the heavy a2l type work - mass renames, xref sweeps, batch comments, applying data types across many addresses. These run as a single loop inside Ghidra instead of thousands of individual MCP/HTTP round-trips. Only the printed result crosses the wire.

All the original GhidraMCP tools work unchanged.

https://github.com/hjtrbo/PcmHackMCP
User avatar
antus
Site Admin
Posts: 10013
Joined: Sat Feb 28, 2009 10:34 am
cars: TX Gemini 2L Twincam 8psi
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Subaru WRX 2007

Re: Ghidra + python MCP Server

Post by antus »

Nice work!
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
User avatar
turbo_v6
Posts: 513
Joined: Tue Apr 10, 2018 10:50 pm

Re: Ghidra + python MCP Server

Post by turbo_v6 »

Edit: Now I see I have to open the File first.

Not seeing anything when trying to do this step.
Enable PcmHackMCP in File -> Configure -> Developer
Everything seemed to go fine up until this step.
LS1 Boost OS Version 5 Available Here. For feature suggestions post in here Development Thread.