LaurieWired/GhidraMCP

▲ 1,493 stars today★ 11,145⑂ 1,154

MCP Server for Ghidra

About LaurieWired/GhidraMCP

LaurieWired/GhidraMCP is an open-source project on GitHub, mainly written in Java. MCP Server for Ghidra It currently holds 11,145 stars and 1,154 forks with 88 open issues, and was last pushed on 2026-10-10 (repository created 2025-03-23).

Project Overview

AI Homed tracks it on the Today's Trending board.

GitHub Repository Details

Repository LaurieWired/GhidraMCP · default branch main · size 414 KB · watchers 82 · source: GitHub REST API and repository README

README

License GitHub release (latest by date) GitHub stars GitHub forks GitHub contributors Follow @lauriewired

ghidra_MCP_logo

ghidraMCP

ghidraMCP is an Model Context Protocol server for allowing LLMs to autonomously reverse engineer applications. It exposes numerous tools from core Ghidra functionality to MCP clients.

https://github.com/user-attachments/assets/36080514-f227-44bd-af84-78e29ee1d7f9

Features

MCP Server + Ghidra Plugin

Installation

Prerequisites

Ghidra

First, download the latest release from this repository. This contains the Ghidra plugin and Python MCP client. Then, you can directly import the plugin into Ghidra.

1. Run Ghidra 2. Select File -> Install Extensions 3. Click the + button 4. Select the ghidra_12.1.4_PUBLIC__GhidraMCP.zip from the downloaded release 5. Restart Ghidra 6. Make sure the GhidraMCPPlugin is enabled in File -> Configure -> Developer 7. Optional: Configure the port in Ghidra with Edit -> Tool Options -> GhidraMCP HTTP Server

Video Installation Guide:

https://github.com/user-attachments/assets/75f0c176-6da1-48dc-ad96-c182eb4648c3

MCP Clients

Theoretically, any MCP client should work with ghidraMCP. Most clients accept a JSON config like the following:

{
  "mcpServers": {
    "ghidra": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/LaurieWired/GhidraMCP",
        "ghidra-mcp",
        "--ghidra-server",
        "http://127.0.0.1:8080/"
      ]
    }
  }
}

The server IP and port are configurable and should be set to point to the target Ghidra instance. If not set, both will default to localhost:8080.

For clients that connect to a URL instead of launching a command, first run the MCP server yourself:

uvx --from git+https://github.com/LaurieWired/GhidraMCP ghidra-mcp --transport streamable-http --mcp-host 127.0.0.1 --mcp-port 8081 --ghidra-server http://127.0.0.1:8080/

Then add http://127.0.0.1:8081/mcp as a remote server in your client.

Example 1: VS Code

Run MCP: Add Server from the Command Palette, or add the following to .vscode/mcp.json in your workspace:
{
  "servers": {
    "ghidra": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/LaurieWired/GhidraMCP",
        "ghidra-mcp",
        "--ghidra-server",
        "http://127.0.0.1:8080/"
      ]
    }
  }
}

Example 2: Claude Code

Run the following command:
claude mcp add ghidra -- uvx --from git+https://github.com/LaurieWired/GhidraMCP ghidra-mcp --ghidra-server http://127.0.0.1:8080/

Headless (no Ghidra GUI)

ghidra-mcp can also import and analyze a binary itself using PyGhidra, with no Ghidra GUI running. This needs Python 3.10–3.13, the GhidraMCP extension installed in Ghidra (or --extension-jar /path/to/GhidraMCP.jar), and GHIDRA_INSTALL_DIR set to your Ghidra 12.1.4 directory:
uvx --python 3.13 --from "ghidra-mcp[headless] @ git+https://github.com/LaurieWired/GhidraMCP" ghidra-mcp --headless --binary /path/to/target

Use the same command and arguments in any of the client configs above. Add --project DIR to keep the Ghidra project (and save changes) between runs. On macOS, build Ghidra's decompiler once with support/gradle/gradlew buildNatives from the Ghidra directory.

Building from Source

1. Set GHIDRA_INSTALL_DIR to your Ghidra 12.1.4 directory 2. Build the extension with Gradle (Java 21) by running:

cd extension && $GHIDRA_INSTALL_DIR/support/gradle/gradlew buildExtension

The generated zip file in extension/dist/ includes the built Ghidra plugin and its resources. These files are required for Ghidra to recognize the new extension.

The Python MCP server can be run from a checkout with uv run ghidra-mcp, and tested with uv run pytest.

GitHub Stars & Activity

11,145Stars
1,154Forks
88Open issues
JavaLanguage

GitHub Popularity

GitHub stars11,145
Forks1,154
Open issues88
Primary languageJava
LicenseApache-2.0
Stars gained today1,493
Created2025-03-23
Last pushed2026-10-10

Trending History

Monthly boardrank #57 · ▲ 1,493 stars

Related AI Projects

1

conductor-oss / conductor

Java★ 32,400⑂ 1,048▲ 5 stars
→
2

apache / doris

Java★ 16,160⑂ 4,005▲ 3 stars
→
3

github / copilot-sdk

Java★ 10,645⑂ 1,518▲ 15 stars
→
4

obra / superpowers

Shell★ 309,942⑂ 27,571▲ 663 stars
→
5

mattpocock / skills

Shell★ 308,196⑂ 25,934▲ 882 stars
→
6

anthropics / skills

Python★ 185,808⑂ 21,939▲ 756 stars
→
7

DietrichGebert / ponytail

JavaScript★ 181,437⑂ 9,980▲ 621 stars
→
8

f / prompts.chat

HTML★ 175,423⑂ 22,393▲ 213 stars
→

More AI Rankings