Skip to content
← All MCP servers

Is the Ghidra MCP server safe? What it can reach

What the Ghidra MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

GhidraMCP is a community server by LaurieWired that lets an agent decompile and annotate binaries in Ghidra. It runs locally: a Ghidra plugin serves an HTTP backend and a Python bridge speaks MCP over stdio. It has no sign-in. Its write tools only rename and retype items in the open program, and it has no delete tool.

Who maintains it

ImplementationKindStatus
LaurieWired/GhidraMCP (community)Communityactive

It runs as a local process on your machine.

How it signs in

No credential is documented. The bridge talks to the Ghidra plugin’s HTTP server, by default at http://127.0.0.1:8080/, and acts on whatever program is open there.

What its tools can do

KindTools
Readget_program_info, list_functions, list_methods, search_functions_by_name, list_classes, list_namespaces, list_segments, list_imports, list_exports, list_data_items, list_strings, get_function_by_address, get_current_address, get_current_function, decompile_function, decompile_function_by_address, disassemble_function, get_xrefs_to, get_xrefs_from, get_function_xrefs, get_function_calls, read_memory
Writerename_function_by_address, rename_function, rename_data, rename_variable, set_function_prototype, set_local_variable_type, set_decompiler_comment, set_disassembly_comment
Can’t be undonenone documented

Source: the tool definitions in src/ghidra_mcp/server.py, since the README gives no tool list. list_methods is deprecated. get_current_address and get_current_function register only when the Ghidra GUI is attached.

Built-in limits

OptionWhat it does
--discard / --saveIn headless mode, changes are discarded on exit for a temporary project and saved when you pass --project. You can force either with --discard or --save.
--headless --binaryAnalyze one binary without the Ghidra GUI, in a throwaway project by default.
--transport and --mcp-hostThe default transport is stdio. For HTTP transports the bind host defaults to 127.0.0.1.
--ghidra-serverPoints the bridge at a specific Ghidra backend URL.

The risks

  • The binary under analysis is untrusted input, and strings, symbol names and comments inside it can carry instructions aimed at the agent.
  • set_function_prototype, set_local_variable_type and the rename tools overwrite analysis work in the open program, which stays changed if the project is saved.
  • read_memory and the decompiler tools expose the full contents of the target, so a sample you were told to keep private goes to your model provider.
  • The README documents no authentication on the Ghidra HTTP backend, so keep it on localhost and do not expose its port.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

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

Claude Code names MCP tools mcp__ghidra__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "ask": [
      "mcp__ghidra__rename_function_by_address",
      "mcp__ghidra__rename_function",
      "mcp__ghidra__rename_data",
      "mcp__ghidra__rename_variable",
      "mcp__ghidra__set_function_prototype",
      "mcp__ghidra__set_local_variable_type",
      "mcp__ghidra__set_decompiler_comment",
      "mcp__ghidra__set_disassembly_comment"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

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

Checklist

  • Work on a copy of the Ghidra project, or use headless mode with a temporary project.
  • Analyze only samples you may send to your model provider.
  • Treat strings and comments in a binary as untrusted text.
  • Keep the Ghidra HTTP port bound to localhost.

Checked against the vendor documentation on November 25, 2026. LaurieWired/GhidraMCP README · GhidraMCP tool definitions (server.py) · GhidraMCP command-line options (cli.py)

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing