---
name: ghidra-mcp-0171f1dfb6f4
description: Ghidra reverse engineering via GhidraMCP + radare2 MCP with port resurrection.
---
# Ghidra MCP Skill

Ghidra reverse engineering via GhidraMCP + radare2 MCP with port resurrection.

## Trigger Conditions

- Binary analysis, disassembly, decompilation
- Malware analysis, vulnerability research
- CTF challenges, firmware extraction
- Function renaming, structure recovery

## Port Resurrection

Ports derived from Gay.jl colors (seed 137508):

| Service | Port | Color |
|---------|------|-------|
| ghidra_mcp | 8647 | #223857 |
| radare2_mcp | 8055 | #90EDC7 |

```bash
# Get current port
python3 /Users/bob/ies/port_resurrect.py -s ghidra_mcp
```

## Setup

### 1. Configure Ghidra Extension Port
In Ghidra: **Edit → Tool Options → GhidraMCP HTTP Server → Port: 8647**

### 2. Start MCP Bridge
```bash
python3 /Users/bob/ies/GhidraMCP/bridge_mcp_ghidra.py \
  --ghidra-server http://127.0.0.1:8647/
```

### 3. Or Use radare2 MCP (Already Loaded)
The `mcp__radare2__*` tools are available in this context.

## Available Tools

### radare2 MCP (Active)
```
mcp__radare2__open_file        - Open binary
mcp__radare2__analyze          - Run analysis
mcp__radare2__list_functions   - List functions
mcp__radare2__decompile_function - Decompile
mcp__radare2__list_strings     - Find strings
mcp__radare2__list_imports     - List imports
mcp__radare2__xrefs_to         - Cross-references
mcp__radare2__rename_function  - Rename function
```

### GhidraMCP (When Bridge Running)
- `get_program_info` - Binary info
- `list_functions` - All functions
- `decompile_function` - Pseudocode
- `search_functions` - Find by pattern
- `auto_create_struct` - Structure recovery

## Workflows

### Quick Binary Analysis
```
1. mcp__radare2__open_file "/path/to/binary"
2. mcp__radare2__analyze level=2
3. mcp__radare2__list_functions
4. mcp__radare2__decompile_function address="main"
```

### Malware Triage
```
1. mcp__radare2__open_file 
2. mcp__radare2__list_imports filter="CreateRemoteThread|VirtualAlloc"
3. mcp__radare2__list_strings filter="http|cmd|powershell"
4. mcp__radare2__list_functions filter="crypt|encode|decode"
```

### Vulnerability Hunt
```
1. mcp__radare2__list_functions filter="strcpy|sprintf|gets"
2. mcp__radare2__decompile_function address="vuln_func"
3. mcp__radare2__xrefs_to address="dangerous_call"
```

## Local Binaries

```
/Users/bob/ies/ghidra_12.0_PUBLIC/  - Ghidra installation
/Users/bob/ies/GhidraMCP/           - MCP bridge
```

## GF(3) Conservation

| Component | Trit |
|-----------|------|
| ghidra_mcp | 0 (ERGODIC) |
| radare2_mcp | -1 (MINUS) |
| port_resurrect | +1 (PLUS) |

**Sum**: 0 ✓

## Related Skills

- `reverse-engineering` - Full RE workflow
- `port-resurrection` - Port derivation
- `cantordust-viz` - Binary visualization
- `blackhat-go` - Security techniques


---

## Autopoietic Marginalia

> **The interaction IS the skill improving itself.**

Every use of this skill is an opportunity for worlding:
- **MEMORY** (-1): Record what was learned
- **REMEMBERING** (0): Connect patterns to other skills  
- **WORLDING** (+1): Evolve the skill based on use



*Add Interaction Exemplars here as the skill is used.*


---
Source attribution: plurigrid
Original project: https://github.com/plurigrid/asi/blob/293ce9f76e3abcd5ba18db284688bc0d9ac6691d/skills/ghidra-mcp/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 SkillCreator.ai

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: plurigrid
Original project: https://github.com/plurigrid/asi/blob/293ce9f76e3abcd5ba18db284688bc0d9ac6691d/skills/ghidra-mcp/SKILL.md
Attribution basis: Source repository record

Fields of work: Development & Engineering, Education & Research, Product Management
Roles: Data Engineer, Product Manager, QA / Test Engineer, Researcher, Security Engineer
Specialties: Backend, Frontend
Tools: Ghidra, Radare2
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: e5c254b19bfd31e77e96045f7090ca8bd3e54d75f877140f3824ec73c689400d
