MCP ScannerCustom audit
All servers

bethington/ghidra-mcp

Ghidra MCP Server — 200+ MCP tools for AI-powered reverse engineering. GUI plugin + headless server, lazy tool loading, convention enforcement, batch operations, Ghidra Server integration, and Docker deployment.

Packageghidra-mcp-bridge
Version7.1.0 in pyproject.toml
Publisherbethington community
MCP Registrynot listed
Scanned2026-11-25
Scannerv1.3.0
Methodologyv1.2
Stars 6,238Forks 392Last push 2026-11-13
Java 72.2%Python 27.8%by source files the scanner reads
Code safetypartly tracedExposure7.1Prompts10.0Supply chain7.0Secrets10.0Transparency10.0
Analysis confidence80%
How much of the server the scanner could read: tools analyzed, files parsed, limits hit.
Code Safetypartly traced—

Paths from tool input into commands, SQL, files and URLs

Capability Exposure7.1/10Fair

How much power the tools give an agent over the machine

Prompt Integritynothing published yet10.0/10

Hidden instructions and poisoning in text for the model

Supply Chain7.0/10Fair

Known vulnerabilities in the packages the server uses

Secrets & Credentialsnothing published yet10.0/10

How the server reads credentials and where they can go

Behavior Transparencynothing published yet10.0/10

Whether the tools do only what their descriptions say

How far the analysis went

The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.

  • Some paths pass through more than 8 functions one inside another; the scanner stops there
  • In 2,441 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
  • 7 of 257 tools, prompts and resources could not be followed through the code
  • 5 places in the code register tools whose names are computed at run time; how many tools that makes cannot be read from the code
  • 17 tools, prompts and resources registered only in the repository's tests are not counted on this page

Top risks in plain words

  • INFONo published risk: no tool declared to run commands, files, addresses or queries of the caller's choice, no known vulnerability in a production package, no advisory. Not every path through the code could be followed. Code findings appear here only after a person has verified them.

How to use it safely

Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.

  • Give it a narrowly scoped token

    Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.

  • Keep confirmations on

    Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.

What its tools can do on your machine

The server offers 232 tools, 8 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.

Read or write filesopen, create, change or delete files
archiveIngestFunction, archiveIngestProgram, deleteFile, exportProgram, getProjectInfo, importProgram and 6 more
12 of 240
Connect to the internet or other hostssend requests or open connections
Ghidra change token, Ghidra decompilation tree, Ghidra function bundle, Ghidra function by name, Ghidra function index, Ghidra function search and 2 more
8 of 240
Read environment variablesoften where API keys are kept
Ghidra change token, Ghidra decompilation tree, Ghidra function bundle, Ghidra function by name, Ghidra function index, Ghidra function search and 4 more
10 of 240

No tool was seen to: start other programs on the machine; read passwords, tokens or keys; touch sensitive locations.

Where its requests and secrets go

Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.

Hosts written in the code

The literal addresses the tools' requests name.

  • None: no request names a fixed host.
Addresses from settings

Constants or settings that start an address; the value comes from configuration.

  • None seen.
Secrets it reads

Credential-like environment variables. Give the server a key with the least access it needs.

  • None: no credential-like variable is read by the tools.

8 request addresses could not be settled from the code (built at run time).

Text it brings in from outside

Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.

  • web or API responses8 tools · Ghidra change token, Ghidra decompilation tree, Ghidra function bundle +5
  • files8 tools · deleteFile, getProjectInfo, importProgram +5

Tool annotations

No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.

Tools, prompts and resources (240: 232 tools, 8 resources)

Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.

Ghidra change tokenresource The program's change token plus what this session can expect in the way of change notifications. Read this when a cached bundle might be stale: compare its tokeNetworkEnv varsoutside text
The program's change token plus what this session can expect in the way of change notifications. Read this when a cached bundle might be stale: compare its token with the bundle's own revision.token.
Ghidra decompilation treeresource Status and configuration for one decompilation tree. The tree itself lives on disk under the root this document names — Glob/Grep that; read this resource to leNetworkEnv varsoutside text
Status and configuration for one decompilation tree. The tree itself lives on disk under the root this document names — Glob/Grep that; read this resource to learn whether the tree is still trustworthy.
Ghidra function bundleresource Everything about one function from a single decompilation: decompiled C, signature, plate and inline comments, parameters, locals, labels, callers with their acNetworkEnv varsoutside text
Everything about one function from a single decompilation: decompiled C, signature, plate and inline comments, parameters, locals, labels, callers with their actual call-site source lines, callees and xrefs. Replaces the decompile_function + get_function_variables + get_function_callers + get_comment + get_function_xrefs sequence.
Ghidra function by nameresource Resolve a function name to its canonical address URI. Deliberately tiny: names change, so the address URI is what should be cached and read.NetworkEnv varsoutside text
Resolve a function name to its canonical address URI. Deliberately tiny: names change, so the address URI is what should be cached and read.
Ghidra function indexresource Every function as {name, address}, plus the uri_template that turns an address into its bundle URI. This is where a function's current descriptive name is visibNetworkEnv varsoutside text
Every function as {name, address}, plus the uri_template that turns an address into its bundle URI. This is where a function's current descriptive name is visible — a resource read result has no name field of its own.
Ghidra function searchresource Functions whose name matches a pattern, as {name, address} plus a uri_template. A filtered result set has no stable identity, so this is not cached against per-NetworkEnv varsoutside text
Functions whose name matches a pattern, as {name, address} plus a uri_template. A filtered result set has no stable identity, so this is not cached against per-function invalidation — re-read it when the program changes.
Ghidra program summaryresource Metadata for one program: language, image base, function count.NetworkEnv varsoutside text
Metadata for one program: language, image base, function count.
Ghidra programsresource Every program open in the connected Ghidra, plus the URI contract for reading a function bundle. Start here.NetworkEnv varsoutside text
Every program open in the connected Ghidra, plus the URI contract for reading a function bundle. Start here.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
(name computed at run time)tool
No description.
addFunctionTagtool Attach tags to ONE function (function + tags) OR MANY in one transaction (assignments=[{function,tags}, ...]). Tags are comma-separated and created on the fly (
Attach tags to ONE function (function + tags) OR MANY in one transaction (assignments=[{function,tags}, ...]). Tags are comma-separated and created on the fly (give a new tag a description with tag_comments). Replaces batch_add_function_tags and create_function_tag.
addMemoryReferencetool
No description.
addStructFieldtool Add a field to a structure
Add a field to a structure
addToVersionControltool Add a file of the open shared project to version control.
Add a file of the open shared project to version control.
analysisStatustool Get auto-analysis status for open programs
Get auto-analysis status for open programs
analyzeAPICallChainstool Detect suspicious API call patterns
Detect suspicious API call patterns
analyzeCallGraphtool Analyze call graph paths between functions
Analyze call graph paths between functions
analyzeControlFlowtool Analyze function control flow complexity
Analyze function control flow complexity
analyzeDataRegiontool Comprehensive data region analysis. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid
Comprehensive data region analysis. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
analyzeDataflowtool
No description.
analyzeForDocumentationtool Composite analysis for RE documentation workflow. decompiled_code is stamped with language_id + variant, and carries variant_ambiguous where the processor offer
Composite analysis for RE documentation workflow. decompiled_code is stamped with language_id + variant, and carries variant_ambiguous where the processor offers more than one SLEIGH decoder (PowerPC vs PowerPC VLE). variant= is optional and checked: name one the program is not loaded under and that single field is withheld (decompiled_code_withheld explains why) while the rest of the analysis is returned as usual. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
analyzeFunctionCompletetool Comprehensive single-call function analysis. Accepts function name or address. For a cacheable read of decompile+callers+comments+xrefs prefer ghidra://function
Comprehensive single-call function analysis. Accepts function name or address. For a cacheable read of decompile+callers+comments+xrefs prefer ghidra://function/{program}/{address} (or /get_functions). decompiled_code is stamped with language_id + variant, and carries variant_ambiguous where the processor offers more than one SLEIGH decoder (PowerPC vs PowerPC VLE). variant= is optional and checked: name one the program is not loaded under and that single field is withheld (decompiled_code_withheld explains why) while the rest of the analysis is returned as usual.
analyzeFunctionCompletenesstool Check documentation completeness for ONE function (function_address) OR MANY (addresses=comma-separated list). On programs with multiple address spaces, prefix
Check documentation completeness for ONE function (function_address) OR MANY (addresses=comma-separated list). On programs with multiple address spaces, prefix addresses with the space name (mem:1000). Replaces batch_analyze_completeness.
analyzeGlobalCompletenesstool Score a global variable's documentation completeness on a budgeted 0-100 scale — the data-address analog of analyze_function_completeness. Six axes: meaningful
Score a global variable's documentation completeness on a budgeted 0-100 scale — the data-address analog of analyze_function_completeness. Six axes: meaningful name, explanatory plate comment, real type, formatted bytes (core, drive effective_score + DOC_DRAFT) plus enum/equate and struct membership (advanced, forgiven in effective_score). A global with no real type (no defined data, or an undefined* type) is hard-capped at 79 and can never band COMPLETE_80 or above, no matter how good its name and comment are — apply a type with set_global first. Returns raw score, effective_score, COMPLETE_<band>, per-axis breakdown, and which axes are still missing.
analyzeStructFieldUsagetool Analyze structure field access patterns. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to a
Analyze structure field access patterns. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
applyDataClassificationtool Atomic type application with classification. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000)
Atomic type application with classification. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
applyDataTypetool Apply data type at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguou
Apply data type at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
applyDocumentationtool
No description.
archiveIngestFunctiontool FilesEnv vars
No description.
archiveIngestProgramtool FilesEnv vars
No description.
archiveProjecttool
No description.
auditGlobaltool Audit a global variable's documentation state. Returns name, type, length, plate comment, xref count, and list of issues. Use this before set_global so you know
Audit a global variable's documentation state. Returns name, type, length, plate comment, xref count, and list of issues. Use this before set_global so you know exactly what's missing.
auditGlobalsInFunctiontool Audit every global variable referenced from within a function in one call. Walks the function's instructions, collects unique data references, and returns the p
Audit every global variable referenced from within a function in one call. Walks the function's instructions, collects unique data references, and returns the per-global audit (same shape as audit_global) plus a summary of how many are fully documented vs have issues. The killer per-function pre-flight tool — start every doc pass with this when the function has global xrefs.
authenticatetool
No description.
batchRenameFunctionComponentstool Rename function and components atomically. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to
Rename function and components atomically. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
batchRenameVariablestool Rename multiple variables atomically. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoi
Rename multiple variables atomically. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
batchSetCommentstool Set multiple comments in one operation. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to av
Set multiple comments in one operation. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
batchStringAnchorReporttool Report of source file strings and their FUN_* functions
Report of source file strings and their FUN_* functions
canRenameAtAddresstool Check if address supports rename. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid am
Check if address supports rename. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
check_toolstool Check if specific tools are callable right now. Returns status for each tool:
Check if specific tools are callable right now. Returns status for each tool:
    "callable", "not_loaded" (exists but group not loaded), or "not_found" (doesn't exist).

    Args:
        tools: Comma-separated tool names, e.g. "rename_symbol,batch_set_comments,analyze_function_completeness"
checkinProgramtool
No description.
checkouttool
No description.
checkoutstool
No description.
clearFlowAndRepairtool Run Ghidra's GUI 'Clear Flow and Repair' action on a seed range: clears instruction flow reachable from the seed, then repairs function bodies and re-disassembl
Run Ghidra's GUI 'Clear Flow and Repair' action on a seed range: clears instruction flow reachable from the seed, then repairs function bodies and re-disassembles retained flow (ClearFlowAndRepairCmd with clear_data=false, clear_labels=false, repair=true). Use to rebuild regions whose flow was created under wrong assumptions, e.g. a function truncated while a callee was incorrectly marked non-returning. The command follows control flow BEYOND the seed range; the reported observations are seed-local only and do not describe everything the command changed. The flow traversal is not cancellable — a very large connected flow can hold the write lock until it completes. Ghidra treats a seed with exactly one candidate flow start (an instruction that is neither a function entry nor reached by fallthrough from inside the seed) as the flow being intentionally removed and does not reseed that start during repair; consequently, applying this action to otherwise healthy flow can clear code, matching the GUI action's behavior. The response's seed_range.end_address_exclusive is null when the seed ends at its address space's maximum address, since that boundary has no representable exclusive successor. Results are reachability-dependent and the command is not idempotent: some damaged regions may require more than one application to rebuild, while applying it again to healthy flow can clear code — inspect the before/after observations and resulting disassembly after every call.
clearFunctionCommentstool Clear all comments within a function. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoi
Clear all comments within a function. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
clearInstructionFlowOverridetool Clear flow override at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambi
Clear flow override at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
cloneDataTypetool Clone a data type with new name
Clone a data type with new name
closeProgramtool
No description.
closeProjecttool Close the currently open project
Close the currently open project
compareProgramsDocumentationtool Compare documented vs undocumented counts
Compare documented vs undocumented counts
configtool
No description.
configuretool Temporarily enable, disable, or query scoped automation prompt handling
Temporarily enable, disable, or query scoped automation prompt handling
configureAnalyzertool Enable or disable one analyzer (a name exactly as list_analyzers reports it) on a program.
Enable or disable one analyzer (a name exactly as list_analyzers reports it) on a program.
connecttool
No description.
connect_instancetool Switch the MCP bridge to a different Ghidra instance by project name.
Switch the MCP bridge to a different Ghidra instance by project name.

    IMPORTANT: Before calling this function only the static bridge tools are
    exposed (list_instances, connect_instance, tool-group management,
    debugger proxy). After a successful connect the bridge fetches the
    instance's /mcp/schema and registers Ghidra analysis tools dynamically.
    By default all tool groups are loaded on connect. When started with
    --lazy, only the default groups are loaded initially and clients may need
    to call load_tool_group() for additional categories. Clients that cache
    the initial tools/list and don't honor tools/list_changed must re-list
    tools after this call.

    Use list_instances() first to see available instances.

    Args:
        project: Project name (or substring) to connect to
convertNumbertool Convert number between hex/decimal/binary formats
Convert number between hex/decimal/binary formats
createDataTypeCategorytool Create a new data type category
Create a new data type category
createDerivedTypetool
No description.
createEnumtool Create an enum data type
Create an enum data type
createFoldertool Create a folder in the project
Create a folder in the project
createFunctionAtAddresstool Create function at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguou
Create function at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
createFunctionSignaturetool Create a function signature data type
Create a function signature data type
createLabeltool Create ONE label (address + name) OR MANY in one call (labels=[{address,name}, ...]). On programs with multiple address spaces, prefix addresses with the space
Create ONE label (address + name) OR MANY in one call (labels=[{address,name}, ...]). On programs with multiple address spaces, prefix addresses with the space name (mem:1000). Replaces batch_create_labels.
createMemoryBlocktool Create a new memory block, optionally initialized with byte contents supplied as hex or base64. On programs with multiple address spaces (e.g., embedded targets
Create a new memory block, optionally initialized with byte contents supplied as hex or base64. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
createProjecttool
No description.
createPropertyMaptool Create a user property map to store typed values keyed by address. Types: int, long, string, void (address-presence tag). Use a string map holding JSON to store
Create a user property map to store typed values keyed by address. Types: int, long, string, void (address-presence tag). Use a string map holding JSON to store arbitrary structured per-address data. Call save_program to persist.
createRepositorytool Create a new repository on the connected Ghidra Server (needs admin access).
Create a new repository on the connected Ghidra Server (needs admin access).
createStructtool Create a structure data type. Body fields must be a JSON array of objects; each object needs name and type, with optional offset. Example fields: [{ "name":"dwI
Create a structure data type. Body fields must be a JSON array of objects; each object needs name and type, with optional offset. Example fields: [{ "name":"dwId", "type":"uint", "offset":0},{ "name":"pNext", "type":"void *", "offset":4}]. Type may be any resolvable Ghidra data type or existing struct name. Set replace_placeholder=true to delete a 1-byte demangler/placeholder type with the same name before creating. To change size of an existing struct in place, use resize_struct; for atomic delete+recreate, use recreate_struct (see docs/STRUCT_RESIZE_WORKFLOW.md).
createUniontool Create a union data type
Create a union data type
deleteBookmarktool Delete a bookmark. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolut
Delete a bookmark. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
deleteDataTypetool Delete a data type by name. Fails if the type is referenced; use resolve_duplicate_type first to remove unused /Demangler 1-byte stubs when a full type exists.
Delete a data type by name. Fails if the type is referenced; use resolve_duplicate_type first to remove unused /Demangler 1-byte stubs when a full type exists.
deleteFiletool Delete a file from the projectFilesoutside text
Delete a file from the project
deleteFunctionAtAddresstool Delete function at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguou
Delete function at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
deleteFunctionTagtool Delete a program-wide function tag definition. This detaches the tag from every function that had it.
Delete a program-wide function tag definition. This detaches the tag from every function that had it.
deleteLabeltool Delete ONE label (address + name) OR MANY in one call (labels=[{address,name}, ...]). On programs with multiple address spaces, prefix addresses with the space
Delete ONE label (address + name) OR MANY in one call (labels=[{address,name}, ...]). On programs with multiple address spaces, prefix addresses with the space name (mem:1000). Replaces batch_delete_labels.
deleteProjecttool Delete a Ghidra project from disk
Delete a Ghidra project from disk
deletePropertyMaptool Delete a user property map and all values it holds. Call save_program to persist.
Delete a user property map and all values it holds. Call save_program to persist.
detectArrayBoundstool Detect array/table size from context. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoi
Detect array/table size from context. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
detectCryptoConstantstool Detect crypto algorithm constants
Detect crypto algorithm constants
detectMalwareBehaviorstool Detect common malware behaviors
Detect common malware behaviors
disassembleBytestool Disassemble a range of bytes. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambigu
Disassemble a range of bytes. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution. Returns the disassembled instruction text (mnemonic + operands + bytes) when `include_instructions` is true (default), so callers working on custom processor definitions (#205) can read back what Ghidra produced without a follow-up call.
disassembleFunctiontool Get assembly listing of function. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid am
Get assembly listing of function. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution. When Ghidra's stored function body is degenerate (body_end == body_start, which would truncate the listing to a single instruction), the listing is instead bounded by the next function or the containing memory block and the response adds body_degenerate=true, bounded_by (next_function | memory_block | function_body) and a warning; do not trust this function's stored extent in that case.
disconnecttool Disconnect from the Ghidra Server.
Disconnect from the Ghidra Server.
dynamicToStatictool
No description.
emulateFunctiontool
No description.
emulateHashBatchtool
No description.
exittool
No description.
exportProgramtool Files
No description.
extractIOCsWithContexttool Enhanced IOC extraction with context
Enhanced IOC extraction with context
findAntiAnalysisTechniquestool Detect anti-analysis and anti-debug techniques
Detect anti-analysis and anti-debug techniques
findCodeGapstool
No description.
findDataTypestool
No description.
findDeadCodetool Identify unreachable code blocks
Identify unreachable code blocks
findFunctionstool
No description.
findNextUndefinedFunctiontool Find next function needing analysis. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid
Find next function needing analysis. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
findSimilarFunctionstool Find structurally similar functions
Find structurally similar functions
findTypeUserstool
No description.
findUndocumentedByStringtool Find FUN_* functions referencing a string. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to
Find FUN_* functions referencing a string. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
forceDecompiletool Force decompiler cache refresh for function. Stamped with language_id + variant like get_functions' decompiled_code, and carries variant_ambiguous on a processo
Force decompiler cache refresh for function. Stamped with language_id + variant like get_functions' decompiled_code, and carries variant_ambiguous on a processor offering more than one SLEIGH decoder — a cache flush re-runs the SAME language, so a wrong variant simply re-derives the same wrong C rather than fixing it. Pass variant= to assert which dialect you believe you are reading; naming one the program is not loaded under is refused. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
getAddressSpacestool
No description.
getAssemblyContexttool Get assembly pattern context for xref sources
Get assembly pattern context for xref sources
getChangeTokentool
No description.
getCommenttool Get listing comments (plate/pre/eol/post/repeatable) at ANY address, including data addresses (works on functions and data globals alike), for ONE address (addr
Get listing comments (plate/pre/eol/post/repeatable) at ANY address, including data addresses (works on functions and data globals alike), for ONE address (address=) or MANY in one call (addresses=a,b,c). All five kinds are always present in each result: null means the kind has no comment record (never set, or cleared -- set_comment removes the record instead of storing "") while "" can still appear for a legacy record whose stored text is empty. Each result also has a convenience `comment` (first non-empty) and `has_comment` flag. Bulk mode wraps the results with requested / returned / with_comments counts.
getEntryPointstool Get program entry points
Get program entry points
getEnumValuestool Get enum member values
Get enum member values
getExternalLocationDetailstool Get external location details by address or DLL name
Get external location details by address or DLL name
getFieldAccessContexttool Get assembly context for struct field offsets. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000
Get assembly context for struct field offsets. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
getFullCallGraphtool Get entire program call graph
Get entire program call graph
getFunctionCallGraphtool Traverse call graph from a function. Accepts function name or address.
Traverse call graph from a function. Accepts function name or address.
getFunctionCounttool Get total function count
Get total function count
getFunctionDocumentationtool Export all documentation for a function. Prefer /get_functions when you want decompile + docs + callers in one read. On programs with multiple address spaces (e
Export all documentation for a function. Prefer /get_functions when you want decompile + docs + callers in one read. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
getFunctionHashtool Compute the normalized opcode hash of ONE function (function=), or of MANY in one call by omitting it: every function, paged, optionally only the documented or
Compute the normalized opcode hash of ONE function (function=), or of MANY in one call by omitting it: every function, paged, optionally only the documented or undocumented ones (filter=). On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
getFunctionPcodetool Dump raw P-code for a function (issue #192). Returns low (basic-iter) and high (HighFunction) P-code with basic blocks and varnodes. Granularity controls output
Dump raw P-code for a function (issue #192). Returns low (basic-iter) and high (HighFunction) P-code with basic blocks and varnodes. Granularity controls output: 'basic' = basic-block iter only (less memory), 'high' = HighFunction graph (default; includes both BB iter and op-iter). For P-code emulators / ML pipelines / alternative decompilers.
getFunctionstool
No description.
getLanguageMetadatatool Dump the program's language description: address spaces, registers (with parent/child/aliases/description), default symbols (with end address and isEntry/isPrim
Dump the program's language description: address spaces, registers (with parent/child/aliases/description), default symbols (with end address and isEntry/isPrimary/isVolatile flags), endianness, pointer size. Also reports the SLEIGH variant the program is loaded under plus available_variants (each with the decoder it loads) and variant_ambiguous — true when the processor offers more than one SLEIGH decoder at this endian/size (PowerPC vs PowerPC VLE), meaning the loader guessed that column and decompiler output may be confidently wrong. variant_enumeration_failed is true when Ghidra's language table could not be walked at all, in which case variant_ambiguous reports ignorance rather than a single variant. This is where the legal variant= values are enumerated. For P-code emulators / ML pipelines that need the SLEIGH-level facts.
getMetadatatool Get program metadata
Get program metadata
getProgramOptionstool Read all options in a program option group with types, current values, defaults, and descriptions. Omit group to list the option groups instead (e.g. 'Program I
Read all options in a program option group with types, current values, defaults, and descriptions. Omit group to list the option groups instead (e.g. 'Program Information', 'Analyzers', 'Decompiler'), each with its option count.
getProjectInfotool Filesoutside text
No description.
getPropertytool Read the value stored at an address in a property map. Returns has_value=false and a null value when the address holds no property.
Read the value stored at an address in a property map. Returns has_value=false and a null value when the address holds no property.
getRegisterstool
No description.
getStackTracetool Get the call stack backtrace for the current thread
Get the call stack backtrace for the current thread
getStatustool Get debugger status: active trace, thread, execution state, module count
Get debugger status: active trace, thread, execution state, module count
getStructLayouttool Get structure field layout
Get structure field layout
getTypeSizetool Get data type size and info
Get data type size and info
getUiCursortool
No description.
getValidDataTypestool List valid Ghidra data type strings
List valid Ghidra data type strings
getXrefsFromtool Get cross-references from an address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoi
Get cross-references from an address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
getXrefsTotool
No description.
gotoAddresstool
No description.
handleBulkFuzzyMatchtool Bulk cross-binary function matching
Bulk cross-binary function matching
handleDiffFunctionstool Compute structured diff between two functions. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000
Compute structured diff between two functions. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
handleFindSimilarFunctionsFuzzytool Cross-binary fuzzy function matching. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoi
Cross-binary fuzzy function matching. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
handlertool
No description.
importDataTypestool Parse C source (structs/unions/enums/typedefs) into the program's data type manager via Ghidra's CParser. Returns how many types were added and any parser messa
Parse C source (structs/unions/enums/typedefs) into the program's data type manager via Ghidra's CParser. Returns how many types were added and any parser messages. Used to load a project's canonical type vocabulary from a generated header.
importFiletool
No description.
importProgramtool Filesoutside text
No description.
import_filetool Import a binary file from disk into the current Ghidra project.
Import a binary file from disk into the current Ghidra project.

    Imports the file, opens it in the CodeBrowser, and optionally starts auto-analysis.
    When analysis is enabled, sends a log notification when analysis completes.

    For raw firmware binaries, specify language (e.g. "ARM:LE:32:Cortex") and
    optionally compiler_spec (e.g. "default"). Without language, Ghidra auto-detects
    the format (works for ELF, PE, Mach-O, etc.).

    Args:
        file_path: Absolute path to the binary file on disk
        project_folder: Destination folder in the Ghidra project (default: "/")
        language: Language ID for raw binaries (e.g. "ARM:LE:32:Cortex", "x86:LE:64:default")
        compiler_spec: Compiler spec ID (e.g. "default", "gcc"). Uses language default if omitted.
        auto_analyze: Start auto-analysis after import (default: true)
inspectMemoryContenttool Inspect memory with string detection. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoi
Inspect memory with string detection. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
interrupttool Interrupt (break into) the running target
Interrupt (break into) the running target
launchtool Launch an executable through Ghidra's Trace RMI debugger launcher
Launch an executable through Ghidra's Trace RMI debugger launcher
listAnalyzerstool List available analyzers
List available analyzers
listBookmarkstool List bookmarks with optional filter. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid
List bookmarks with optional filter. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
listBreakpointstool List all breakpoints in the current trace
List all breakpoints in the current trace
listCallingConventionstool List available calling conventions
List available calling conventions
listClassMemberstool List the member functions of a C++ class. A function counts as a member if it lives in the class's namespace (e.g. after set_function_this_type re-parents it) O
List the member functions of a C++ class. A function counts as a member if it lives in the class's namespace (e.g. after set_function_this_type re-parents it) OR its implicit 'this' parameter types as '<class> *'. Each result reports how it matched (namespace / this_type / both). Replaces the manual 'search __thiscall functions then read each signature' workflow.
listDataItemsByXrefstool List data items sorted by xref count (descending). By default returns only defined data items. `filter` and `type_filter` (each: all/defined/undefined) compose
List data items sorted by xref count (descending). By default returns only defined data items. `filter` and `type_filter` (each: all/defined/undefined) compose orthogonally to also include unnamed/untyped addresses — `filter=all,type_filter=all` returns the full data surface (named + DAT_*-style autogen + raw undefined-with-xrefs). `min_xrefs` (default 1) suppresses zero-xref noise on undefined items.
listDefinedStringstool List defined strings with optional filter
List defined strings with optional filter
listFunctionTagstool List all program-wide function tag definitions with their use counts.
List all program-wide function tag definitions with their use counts.
listGhidraScriptstool List available Ghidra scripts
List available Ghidra scripts
listGlobalstool List global DATA symbols. By default returns every global in the program (named + unnamed-but-xrefed undefined addresses). `filter` and `type_filter` (each: all
List global DATA symbols. By default returns every global in the program (named + unnamed-but-xrefed undefined addresses). `filter` and `type_filter` (each: all/defined/undefined) compose orthogonally to scope the result — e.g., `filter=named, type_filter=undefined` returns the cleanup backlog (placeholders awaiting real types). `min_xrefs` (default 1) suppresses zero-xref noise when including undefined items. Code labels (branch targets, error handlers) are still excluded — they're not data globals. Each line ends with `xrefs=N` for prioritization.
listLaunchOfferstool List available debugger launch/attach options for the current program
List available debugger launch/attach options for the current program
listModulestool List modules (DLLs/EXEs) loaded in the debugged process
List modules (DLLs/EXEs) loaded in the debugged process
listOpenProgramstool List all open programs. If more than one is listed, pass program= on subsequent tool calls — omitting it returns an error naming every open program (guessing is
List all open programs. If more than one is listed, pass program= on subsequent tool calls — omitting it returns an error naming every open program (guessing is never acceptable with multiple candidates).
listProgramItemstool
No description.
listProjectFilestool List files in the current project, with each one's version-control state: whether it is versioned, checked out, and (when checked out) whether the checkout hold
List files in the current project, with each one's version-control state: whether it is versioned, checked out, and (when checked out) whether the checkout holds uncommitted work.
listProjectstool Find Ghidra projects (.gpr) in a directory
Find Ghidra projects (.gpr) in a directory
listPropertiestool List (address, value) entries stored in a property map, with pagination. Optionally restrict to an inclusive address range with start/end. Omit map to list the
List (address, value) entries stored in a property map, with pagination. Optionally restrict to an inclusive address range with start/end. Omit map to list the property maps instead: each one's name, value type (int|long|string|object|void) and how many addresses hold a value.
listShadowedGlobalstool List named global DATA symbols that have NO type of their own because a larger data unit starting at an earlier address covers them. These are invisible to /lis
List named global DATA symbols that have NO type of their own because a larger data unit starting at an earlier address covers them. These are invisible to /list_globals — it resolves the CONTAINING unit, so it reports the covering neighbour's type at the shadowed address and the global looks perfectly typed. Each record carries the container that swallowed it. Use this to find documentation that a neighbouring type application destroyed, or a symbol sitting inside an array where it does not belong.
listTracestool List all open debug traces
List all open debug traces
list_instancestool List known Ghidra instances from UDS discovery and the active TCP fallback.
List known Ghidra instances from UDS discovery and the active TCP fallback.

    Returns JSON with each instance's project name, PID, open programs, and
    socket path or TCP URL. Also shows which instance is currently connected.
list_tool_groupstool List all available tool groups with their tool counts and loaded status.
List all available tool groups with their tool counts and loaded status.

    Returns each category with: tool count, loaded status, and tool names.
    Use load_tool_group(group) to load a group's tools.
load_tool_grouptool Load all tools in a category. Accepts a category name or "all" to load everything.
Load all tools in a category. Accepts a category name or "all" to load everything.

    Use list_tool_groups() to see available categories.

    Args:
        group: Category name (e.g. "function", "datatype") or "all"
mergeProgramDocumentationtool
No description.
modifyStructFieldtool Modify a field in a structure: retype it (new_type, which also embeds a struct by value, e.g. Rectangle inside LayoutNode), rename it (new_name), or both. Field
Modify a field in a structure: retype it (new_type, which also embeds a struct by value, e.g. Rectangle inside LayoutNode), rename it (new_name), or both. Fields can be identified by name or by offset (for unnamed fields). For layout size changes (grow/shrink padding), use resize_struct instead of manual delete+create.
moveDataTypeToCategorytool Move data type to category
Move data type to category
moveFiletool Filesoutside text
No description.
moveFoldertool
No description.
openProgramFromProjecttool Filesoutside text
No description.
openProjecttool Files
No description.
partitionProgramtool
No description.
readMemorytool Read memory from the debugged process. Returns hex dump and DWORD interpretation.
Read memory from the debugged process. Returns hex dump and DWORD interpretation.
readMemorytool Read raw memory bytes. Always pass the 'program' argument to target the correct binary — especially when multiple programs are open. On programs with multiple a
Read raw memory bytes. Always pass the 'program' argument to target the correct binary — especially when multiple programs are open. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
reanalyzetool Trigger full auto-analysis on a program
Trigger full auto-analysis on a program
recreateStructtool Replace a structure in one step: optionally remove an existing same-named type, then create with fields JSON (same shape as create_struct). Use when resize_stru
Replace a structure in one step: optionally remove an existing same-named type, then create with fields JSON (same shape as create_struct). Use when resize_struct cannot apply or you are rebuilding layout from get_struct_layout export. Set force=true to delete a non-stub type that is not referenced.
removeBreakpointtool Remove a breakpoint at an address
Remove a breakpoint at an address
removeFunctionTagtool Detach tags from ONE function (function + tags) OR MANY in one transaction (assignments=[{function,tags}, ...]). Does not delete the program-wide tag definition
Detach tags from ONE function (function + tags) OR MANY in one transaction (assignments=[{function,tags}, ...]). Does not delete the program-wide tag definition — use delete_function_tag for that. Replaces batch_remove_function_tags.
removeProgramOptiontool Remove an option from a program option group. Built-in registered options may be re-created with defaults by Ghidra; primarily for clearing custom options. Call
Remove an option from a program option group. Built-in registered options may be re-created with defaults by Ghidra; primarily for clearing custom options. Call save_program to persist.
removePropertytool Remove the value stored at a single address in a property map. Call save_program to persist.
Remove the value stored at a single address in a property map. Call save_program to persist.
removeReferencetool
No description.
removeStructFieldtool Remove a field from a structure (by the name you created it with, even after Hungarian auto-prefixing).
Remove a field from a structure (by the name you created it with, even after Hungarian auto-prefixing).
renameDataTypetool Rename a data type (struct, union, enum, typedef) in place, preserving existing applications of it
Rename a data type (struct, union, enum, typedef) in place, preserving existing applications of it
renameFunctionByAddresstool Rename a function identified by name OR address. Runs the full naming-quality gate (verb-tier specificity + token-subset collision) with an optional strict_mode
Rename a function identified by name OR address. Runs the full naming-quality gate (verb-tier specificity + token-subset collision) with an optional strict_mode override. Replaces rename_function_by_address.
renameSymboltool Rename a symbol of any kind. kind=auto (default): an address target routes to rename-or-create-label (handles data/label/any symbol at the address); a name targ
Rename a symbol of any kind. kind=auto (default): an address target routes to rename-or-create-label (handles data/label/any symbol at the address); a name target routes to a global. Force with kind=data|global|label|external. For kind=label pass old_name (the current label). Replaces rename_data / rename_global_variable / rename_label / rename_or_label / rename_external_location.
repositoriestool List the repositories on the connected Ghidra Server.
List the repositories on the connected Ghidra Server.
repositoryFiletool Describe one file of a server repository: name, path, content type, version.
Describe one file of a server repository: name, path, content type, version.
repositoryFilestool
No description.
resizeStructtool Grow or shrink an existing structure by total byte size. Defined fields whose end offset fits within new_size are preserved; growth pads with undefined filler.
Grow or shrink an existing structure by total byte size. Defined fields whose end offset fits within new_size are preserved; growth pads with undefined filler. Refuses shrink that would clip defined fields unless force=true. See docs/STRUCT_RESIZE_WORKFLOW.md.
resolveDuplicateTypetool Find duplicate data types by simple name; delete unused /Demangler size-1 stubs when a larger canonical type exists. Helps fix 'Can't resolve datatype' and crea
Find duplicate data types by simple name; delete unused /Demangler size-1 stubs when a larger canonical type exists. Helps fix 'Can't resolve datatype' and create_struct already exists on placeholders.
restoreProjecttool
No description.
resumetool Resume execution of the debugged process
Resume execution of the debugged process
runAnalysistool Trigger auto-analysis on program
Trigger auto-analysis on program
runGhidraScriptWithCapturetool Execute script with output capture and timeout. Gated by GHIDRA_MCP_ALLOW_SCRIPTS=1 (v5.4.1+).
Execute script with output capture and timeout. Gated by GHIDRA_MCP_ALLOW_SCRIPTS=1 (v5.4.1+).
runScriptInlinetool Execute inline Ghidra script code. Pass the full Java source as the 'code' body parameter. Gated by GHIDRA_MCP_ALLOW_SCRIPTS=1 (v5.4.1+).Filesoutside text
Execute inline Ghidra script code. Pass the full Java source as the 'code' body parameter. Gated by GHIDRA_MCP_ALLOW_SCRIPTS=1 (v5.4.1+).
runningToolstool Filesoutside text
No description.
saveAllOpenProgramstool Save all open programs
Save all open programs
saveCurrentProgramtool Save current program
Save current program
searchBytePatternstool Search for byte patterns with masks
Search for byte patterns with masks
searchInstructionstool
No description.
searchStringstool Search strings by regex pattern.
Search strings by regex pattern.
search_toolstool Search the full Ghidra tool catalog by keyword — including tools whose group
Search the full Ghidra tool catalog by keyword — including tools whose group
    is not currently loaded. Use this to discover the right tool without paying
    the context cost of loading all groups (run the bridge with --lazy and search
    on demand). Matches against tool name, description, and category.

    Each result reports whether the tool is callable right now; if not, it
    includes the exact load_tool_group(...) call needed to make it callable.

    Args:
        query: Space-separated keywords, e.g. "rename function" or "xref struct".
        limit: Maximum number of results to return (default 15).
setBookmarktool Create or update a bookmark. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguo
Create or update a bookmark. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setBreakpointtool Set a software execution breakpoint at an address in the trace
Set a software execution breakpoint at an address in the trace
setCommenttool Set a listing comment of a given kind at ANY address (data or code). type = plate|pre|eol|post|repeatable (aliases: decompiler=pre, disassembly=eol). Plate writ
Set a listing comment of a given kind at ANY address (data or code). type = plate|pre|eol|post|repeatable (aliases: decompiler=pre, disassembly=eol). Plate writes surface structural warnings and flush the decompiler cache. Symmetric writer for get_comment; replaces the former set_plate_comment / set_decompiler_comment / set_disassembly_comment.
setDecompilerVariableTypetool Set the data type of a function variable (local OR parameter) by name at the decompiler (high-level) layer. Pass variable_name='this' to type a __thiscall/__fas
Set the data type of a function variable (local OR parameter) by name at the decompiler (high-level) layer. Pass variable_name='this' to type a __thiscall/__fastcall implicit this. Replaces set_local_variable_type / set_parameter_type / set_decompiler_variable_type.
setEquatetool
No description.
setFunctionNoReturntool Mark function as no-return. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguou
Mark function as no-return. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setFunctionPrototypeEndpointtool Set function prototype (return type, parameter types, calling convention) by address. NOTE: the function name in the prototype string is used only for parsing —
Set function prototype (return type, parameter types, calling convention) by address. NOTE: the function name in the prototype string is used only for parsing — it does NOT rename the function. To rename, call rename_function separately. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setFunctionTagCommenttool Update the comment/description on an existing program-wide function tag.
Update the comment/description on an existing program-wide function tag.
setFunctionThisTypetool Type the implicit 'this' of a __thiscall/__fastcall member function by associating the function with its class. Ghidra's auto-'this' (ECX on x86) is an immutabl
Type the implicit 'this' of a __thiscall/__fastcall member function by associating the function with its class. Ghidra's auto-'this' (ECX on x86) is an immutable auto-parameter; with auto-storage it derives its type from the function's parent Class namespace, matched by name to a same-named structure. This tool finds/creates a class namespace for the struct and moves the function into it (no custom storage). Pass 'MyClass *' or 'MyClass'; the structure MyClass must already exist (create_struct). On programs with multiple address spaces, prefix function_address with the space name (mem:1000).
setGlobaltool Atomically apply name + type + plate-comment + array length to a global variable. Single-transaction; rejects on validation failure with no partial write. Repla
Atomically apply name + type + plate-comment + array length to a global variable. Single-transaction; rejects on validation failure with no partial write. Replaces the 4-tool chain (apply_data_type → rename_data → batch_set_comments → create_label).
setImageBasetool Set the base address of the program (rebases all addresses)
Set the base address of the program (rebases all addresses)
setMemoryBlocktool
No description.
setPermissionstool
No description.
setProgramOptiontool Set a typed program option. If the option already exists its type is reused; otherwise pass type (string|int|long|double|float|boolean). New/custom options are
Set a typed program option. If the option already exists its type is reused; otherwise pass type (string|int|long|double|float|boolean). New/custom options are created on demand. Call save_program to persist.
setPropertytool Set a value at an address in a property map. The value is coerced to the map's type (int/long/string); 'void' maps ignore the value and just tag the address. Cr
Set a value at an address in a property map. The value is coerced to the map's type (int/long/string); 'void' maps ignore the value and just tag the address. Create the map first with create_property_map. Call save_program to persist.
setVariableStoragetool Set a parameter's or local's storage location to a register, register pair, or stack slot. Accepts 'EAX', 'EAX:4', 'R0:4,R2:4' or 'Stack[-0x10]:4'; size default
Set a parameter's or local's storage location to a register, register pair, or stack slot. Accepts 'EAX', 'EAX:4', 'R0:4,R2:4' or 'Stack[-0x10]:4'; size defaults to the variable's data-type length. Use this when the argument layout cannot be expressed by any calling convention. Setting a PARAMETER's storage switches the whole function to custom variable storage (reported as custom_storage_enabled). The storage is read back after the write and returned in 'storage'. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setVariablestool
No description.
staticToDynamictool
No description.
statustool
No description.
steptool
No description.
suggestFieldNamestool AI-assisted field name suggestions. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid
AI-assisted field name suggestions. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
switchProgramtool Switch MCP context to a different program
Switch MCP context to a different program
terminateAllCheckoutstool
No description.
terminateCheckouttool
No description.
treeConfiguretool
No description.
treeCreatetool
No description.
treeDeletetool Filesoutside text
No description.
treePinModuletool
No description.
treeRefreshtool
No description.
treeRuntool
No description.
treeStatustool
No description.
undoCheckouttool
No description.
unload_tool_grouptool Unload all tools in a category. Default groups are protected from unloading.
Unload all tools in a category. Default groups are protected from unloading.

    Args:
        group: Category name to unload
userstool List all users registered on the server (needs admin access).
List all users registered on the server (needs admin access).
validateDataTypetool Validate a data type. With an address: checks applicability (memory range, alignment, conflicts) at that address. Without an address: checks only that the type
Validate a data type. With an address: checks applicability (memory range, alignment, conflicts) at that address. Without an address: checks only that the type exists, resolving bare names like 'int'/'DWORD'/'char *' across all categories. Replaces validate_data_type_exists.
validateFunctionPrototypetool Validate prototype before applying. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid
Validate prototype before applying. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
versionHistorytool Version history of a versioned file: version, user, comment and time of each.
Version history of a versioned file: version, user, comment and time of each.

Text the model reads (240)

Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.

(name computed at run time) tool
(name computed at run time) tool
handler tool
(name computed at run time) tool
list_instances tool
List known Ghidra instances from UDS discovery and the active TCP fallback.

    Returns JSON with each instance's project name, PID, open programs, and
    socket path or TCP URL. Also shows which instance is currently connected.
connect_instance tool
Switch the MCP bridge to a different Ghidra instance by project name.

    IMPORTANT: Before calling this function only the static bridge tools are
    exposed (list_instances, connect_instance, tool-group management,
    debugger proxy). After a successful connect the bridge fetches the
    instance's /mcp/schema and registers Ghidra analysis tools dynamically.
    By default all tool groups are loaded on connect. When started with
    --lazy, only the default groups are loaded initially and clients may need
    to call load_tool_group() for additional categories. Clients that cache
    the initial tools/list and don't honor tools/list_changed must re-list
    tools after this call.

    Use list_instances() first to see available instances.

    Args:
        project: Project name (or substring) to connect to
list_tool_groups tool
List all available tool groups with their tool counts and loaded status.

    Returns each category with: tool count, loaded status, and tool names.
    Use load_tool_group(group) to load a group's tools.
load_tool_group tool
Load all tools in a category. Accepts a category name or "all" to load everything.

    Use list_tool_groups() to see available categories.

    Args:
        group: Category name (e.g. "function", "datatype") or "all"
unload_tool_group tool
Unload all tools in a category. Default groups are protected from unloading.

    Args:
        group: Category name to unload
check_tools tool
Check if specific tools are callable right now. Returns status for each tool:
    "callable", "not_loaded" (exists but group not loaded), or "not_found" (doesn't exist).

    Args:
        tools: Comma-separated tool names, e.g. "rename_symbol,batch_set_comments,analyze_function_completeness"
search_tools tool
Search the full Ghidra tool catalog by keyword — including tools whose group
    is not currently loaded. Use this to discover the right tool without paying
    the context cost of loading all groups (run the bridge with --lazy and search
    on demand). Matches against tool name, description, and category.

    Each result reports whether the tool is callable right now; if not, it
    includes the exact load_tool_group(...) call needed to make it callable.

    Args:
        query: Space-separated keywords, e.g. "rename function" or "xref struct".
        limit: Maximum number of results to return (default 15).
import_file tool
Import a binary file from disk into the current Ghidra project.

    Imports the file, opens it in the CodeBrowser, and optionally starts auto-analysis.
    When analysis is enabled, sends a log notification when analysis completes.

    For raw firmware binaries, specify language (e.g. "ARM:LE:32:Cortex") and
    optionally compiler_spec (e.g. "default"). Without language, Ghidra auto-detects
    the format (works for ELF, PE, Mach-O, etc.).

    Args:
        file_path: Absolute path to the binary file on disk
        project_folder: Destination folder in the Ghidra project (default: "/")
        language: Language ID for raw binaries (e.g. "ARM:LE:32:Cortex", "x86:LE:64:default")
        compiler_spec: Compiler spec ID (e.g. "default", "gcc"). Uses language default if omitted.
        auto_analyze: Start auto-analysis after import (default: true)
(name computed at run time) tool
config tool
(name computed at run time) tool
listAnalyzers tool
List available analyzers
configureAnalyzer tool
Enable or disable one analyzer (a name exactly as list_analyzers reports it) on a program.
runAnalysis tool
Trigger auto-analysis on program
analyzeDataRegion tool
Comprehensive data region analysis. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
detectArrayBounds tool
Detect array/table size from context. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
getFieldAccessContext tool
Get assembly context for struct field offsets. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
inspectMemoryContent tool
Inspect memory with string detection. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
detectCryptoConstants tool
Detect crypto algorithm constants
searchBytePatterns tool
Search for byte patterns with masks
searchInstructions tool
findSimilarFunctions tool
Find structurally similar functions
analyzeControlFlow tool
Analyze function control flow complexity
findDeadCode tool
Identify unreachable code blocks
analyzeFunctionCompleteness tool
Check documentation completeness for ONE function (function_address) OR MANY (addresses=comma-separated list). On programs with multiple address spaces, prefix addresses with the space name (mem:1000). Replaces batch_analyze_completeness.
findNextUndefinedFunction tool
Find next function needing analysis. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
analyzeFunctionComplete tool
Comprehensive single-call function analysis. Accepts function name or address. For a cacheable read of decompile+callers+comments+xrefs prefer ghidra://function/{program}/{address} (or /get_functions). decompiled_code is stamped with language_id + variant, and carries variant_ambiguous where the processor offers more than one SLEIGH decoder (PowerPC vs PowerPC VLE). variant= is optional and checked: name one the program is not loaded under and that single field is withheld (decompiled_code_withheld explains why) while the rest of the analysis is returned as usual.
analyzeForDocumentation tool
Composite analysis for RE documentation workflow. decompiled_code is stamped with language_id + variant, and carries variant_ambiguous where the processor offers more than one SLEIGH decoder (PowerPC vs PowerPC VLE). variant= is optional and checked: name one the program is not loaded under and that single field is withheld (decompiled_code_withheld explains why) while the rest of the analysis is returned as usual. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
findCodeGaps tool
analyzeDataflow tool
getFunctionPcode tool
Dump raw P-code for a function (issue #192). Returns low (basic-iter) and high (HighFunction) P-code with basic blocks and varnodes. Granularity controls output: 'basic' = basic-block iter only (less memory), 'high' = HighFunction graph (default; includes both BB iter and op-iter). For P-code emulators / ML pipelines / alternative decompilers.
getLanguageMetadata tool
Dump the program's language description: address spaces, registers (with parent/child/aliases/description), default symbols (with end address and isEntry/isPrimary/isVolatile flags), endianness, pointer size. Also reports the SLEIGH variant the program is loaded under plus available_variants (each with the decoder it loads) and variant_ambiguous — true when the processor offers more than one SLEIGH decoder at this endian/size (PowerPC vs PowerPC VLE), meaning the loader guessed that column and decompiler output may be confidently wrong. variant_enumeration_failed is true when Ghidra's language table could not be walked at all, in which case variant_ambiguous reports ignorance rather than a single variant. This is where the legal variant= values are enumerated. For P-code emulators / ML pipelines that need the SLEIGH-level facts.
getChangeToken tool
getComment tool
Get listing comments (plate/pre/eol/post/repeatable) at ANY address, including data addresses (works on functions and data globals alike), for ONE address (address=) or MANY in one call (addresses=a,b,c). All five kinds are always present in each result: null means the kind has no comment record (never set, or cleared -- set_comment removes the record instead of storing "") while "" can still appear for a legacy record whose stored text is empty. Each result also has a convenience `comment` (first non-empty) and `has_comment` flag. Bulk mode wraps the results with requested / returned / with_comments counts.
setComment tool
Set a listing comment of a given kind at ANY address (data or code). type = plate|pre|eol|post|repeatable (aliases: decompiler=pre, disassembly=eol). Plate writes surface structural warnings and flush the decompiler cache. Symmetric writer for get_comment; replaces the former set_plate_comment / set_decompiler_comment / set_disassembly_comment.
batchSetComments tool
Set multiple comments in one operation. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
clearFunctionComments tool
Clear all comments within a function. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
findDataTypes tool
getTypeSize tool
Get data type size and info
getStructLayout tool
Get structure field layout
getEnumValues tool
Get enum member values
getValidDataTypes tool
List valid Ghidra data type strings
createStruct tool
Create a structure data type. Body fields must be a JSON array of objects; each object needs name and type, with optional offset. Example fields: [{ "name":"dwId", "type":"uint", "offset":0},{ "name":"pNext", "type":"void *", "offset":4}]. Type may be any resolvable Ghidra data type or existing struct name. Set replace_placeholder=true to delete a 1-byte demangler/placeholder type with the same name before creating. To change size of an existing struct in place, use resize_struct; for atomic delete+recreate, use recreate_struct (see docs/STRUCT_RESIZE_WORKFLOW.md).
createEnum tool
Create an enum data type
createUnion tool
Create a union data type
cloneDataType tool
Clone a data type with new name
createDerivedType tool
createFunctionSignature tool
Create a function signature data type
applyDataType tool
Apply data type at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
deleteDataType tool
Delete a data type by name. Fails if the type is referenced; use resolve_duplicate_type first to remove unused /Demangler 1-byte stubs when a full type exists.
modifyStructField tool
Modify a field in a structure: retype it (new_type, which also embeds a struct by value, e.g. Rectangle inside LayoutNode), rename it (new_name), or both. Fields can be identified by name or by offset (for unnamed fields). For layout size changes (grow/shrink padding), use resize_struct instead of manual delete+create.
resizeStruct tool
Grow or shrink an existing structure by total byte size. Defined fields whose end offset fits within new_size are preserved; growth pads with undefined filler. Refuses shrink that would clip defined fields unless force=true. See docs/STRUCT_RESIZE_WORKFLOW.md.
recreateStruct tool
Replace a structure in one step: optionally remove an existing same-named type, then create with fields JSON (same shape as create_struct). Use when resize_struct cannot apply or you are rebuilding layout from get_struct_layout export. Set force=true to delete a non-stub type that is not referenced.
resolveDuplicateType tool
Find duplicate data types by simple name; delete unused /Demangler size-1 stubs when a larger canonical type exists. Helps fix 'Can't resolve datatype' and create_struct already exists on placeholders.
addStructField tool
Add a field to a structure
removeStructField tool
Remove a field from a structure (by the name you created it with, even after Hungarian auto-prefixing).
moveDataTypeToCategory tool
Move data type to category
renameDataType tool
Rename a data type (struct, union, enum, typedef) in place, preserving existing applications of it
validateDataType tool
Validate a data type. With an address: checks applicability (memory range, alignment, conflicts) at that address. Without an address: checks only that the type exists, resolving bare names like 'int'/'DWORD'/'char *' across all categories. Replaces validate_data_type_exists.
validateFunctionPrototype tool
Validate prototype before applying. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
importDataTypes tool
Parse C source (structs/unions/enums/typedefs) into the program's data type manager via Ghidra's CParser. Returns how many types were added and any parser messages. Used to load a project's canonical type vocabulary from a generated header.
createDataTypeCategory tool
Create a new data type category
analyzeStructFieldUsage tool
Analyze structure field access patterns. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
suggestFieldNames tool
AI-assisted field name suggestions. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
applyDataClassification tool
Atomic type application with classification. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
auditGlobal tool
Audit a global variable's documentation state. Returns name, type, length, plate comment, xref count, and list of issues. Use this before set_global so you know exactly what's missing.
analyzeGlobalCompleteness tool
Score a global variable's documentation completeness on a budgeted 0-100 scale — the data-address analog of analyze_function_completeness. Six axes: meaningful name, explanatory plate comment, real type, formatted bytes (core, drive effective_score + DOC_DRAFT) plus enum/equate and struct membership (advanced, forgiven in effective_score). A global with no real type (no defined data, or an undefined* type) is hard-capped at 79 and can never band COMPLETE_80 or above, no matter how good its name and comment are — apply a type with set_global first. Returns raw score, effective_score, COMPLETE_<band>, per-axis breakdown, and which axes are still missing.
auditGlobalsInFunction tool
Audit every global variable referenced from within a function in one call. Walks the function's instructions, collects unique data references, and returns the per-global audit (same shape as audit_global) plus a summary of how many are fully documented vs have issues. The killer per-function pre-flight tool — start every doc pass with this when the function has global xrefs.
setGlobal tool
Atomically apply name + type + plate-comment + array length to a global variable. Single-transaction; rejects on validation failure with no partial write. Replaces the 4-tool chain (apply_data_type → rename_data → batch_set_comments → create_label).
launch tool
Launch an executable through Ghidra's Trace RMI debugger launcher
getStatus tool
Get debugger status: active trace, thread, execution state, module count
listTraces tool
List all open debug traces
resume tool
Resume execution of the debugged process
interrupt tool
Interrupt (break into) the running target
step tool
setBreakpoint tool
Set a software execution breakpoint at an address in the trace
removeBreakpoint tool
Remove a breakpoint at an address
listBreakpoints tool
List all breakpoints in the current trace
getRegisters tool
readMemory tool
Read memory from the debugged process. Returns hex dump and DWORD interpretation.
getStackTrace tool
Get the call stack backtrace for the current thread
listModules tool
List modules (DLLs/EXEs) loaded in the debugged process
staticToDynamic tool
dynamicToStatic tool
listLaunchOffers tool
List available debugger launch/attach options for the current program
treeStatus tool
treeCreate tool
treeConfigure tool
treeRun tool
treeRefresh tool
treePinModule tool
treeDelete tool
applyDocumentation tool
getFunctionHash tool
Compute the normalized opcode hash of ONE function (function=), or of MANY in one call by omitting it: every function, paged, optionally only the documented or undocumented ones (filter=). On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
getFunctionDocumentation tool
Export all documentation for a function. Prefer /get_functions when you want decompile + docs + callers in one read. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
compareProgramsDocumentation tool
Compare documented vs undocumented counts
findUndocumentedByString tool
Find FUN_* functions referencing a string. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
batchStringAnchorReport tool
Report of source file strings and their FUN_* functions
handleFindSimilarFunctionsFuzzy tool
Cross-binary fuzzy function matching. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
handleBulkFuzzyMatch tool
Bulk cross-binary function matching
handleDiffFunctions tool
Compute structured diff between two functions. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
mergeProgramDocumentation tool
archiveIngestFunction tool
archiveIngestProgram tool
emulateFunction tool
emulateHashBatch tool
getFunctions tool
forceDecompile tool
Force decompiler cache refresh for function. Stamped with language_id + variant like get_functions' decompiled_code, and carries variant_ambiguous on a processor offering more than one SLEIGH decoder — a cache flush re-runs the SAME language, so a wrong variant simply re-derives the same wrong C rather than fixing it. Pass variant= to assert which dialect you believe you are reading; naming one the program is not loaded under is refused. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
disassembleFunction tool
Get assembly listing of function. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution. When Ghidra's stored function body is degenerate (body_end == body_start, which would truncate the listing to a single instruction), the listing is instead bounded by the next function or the containing memory block and the response adds body_degenerate=true, bounded_by (next_function | memory_block | function_body) and a warning; do not trust this function's stored extent in that case.
renameFunctionByAddress tool
Rename a function identified by name OR address. Runs the full naming-quality gate (verb-tier specificity + token-subset collision) with an optional strict_mode override. Replaces rename_function_by_address.
setFunctionPrototypeEndpoint tool
Set function prototype (return type, parameter types, calling convention) by address. NOTE: the function name in the prototype string is used only for parsing — it does NOT rename the function. To rename, call rename_function separately. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setFunctionThisType tool
Type the implicit 'this' of a __thiscall/__fastcall member function by associating the function with its class. Ghidra's auto-'this' (ECX on x86) is an immutable auto-parameter; with auto-storage it derives its type from the function's parent Class namespace, matched by name to a same-named structure. This tool finds/creates a class namespace for the struct and moves the function into it (no custom storage). Pass 'MyClass *' or 'MyClass'; the structure MyClass must already exist (create_struct). On programs with multiple address spaces, prefix function_address with the space name (mem:1000).
setDecompilerVariableType tool
Set the data type of a function variable (local OR parameter) by name at the decompiler (high-level) layer. Pass variable_name='this' to type a __thiscall/__fastcall implicit this. Replaces set_local_variable_type / set_parameter_type / set_decompiler_variable_type.
listClassMembers tool
List the member functions of a C++ class. A function counts as a member if it lives in the class's namespace (e.g. after set_function_this_type re-parents it) OR its implicit 'this' parameter types as '<class> *'. Each result reports how it matched (namespace / this_type / both). Replaces the manual 'search __thiscall functions then read each signature' workflow.
setFunctionNoReturn tool
Mark function as no-return. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
clearInstructionFlowOverride tool
Clear flow override at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setVariableStorage tool
Set a parameter's or local's storage location to a register, register pair, or stack slot. Accepts 'EAX', 'EAX:4', 'R0:4,R2:4' or 'Stack[-0x10]:4'; size defaults to the variable's data-type length. Use this when the argument layout cannot be expressed by any calling convention. Setting a PARAMETER's storage switches the whole function to custom variable storage (reported as custom_storage_enabled). The storage is read back after the write and returned in 'storage'. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
batchRenameFunctionComponents tool
Rename function and components atomically. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
deleteFunctionAtAddress tool
Delete function at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
createFunctionAtAddress tool
Create function at address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
disassembleBytes tool
Disassemble a range of bytes. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution. Returns the disassembled instruction text (mnemonic + operands + bytes) when `include_instructions` is true (default), so callers working on custom processor definitions (#205) can read back what Ghidra produced without a follow-up call.
clearFlowAndRepair tool
Run Ghidra's GUI 'Clear Flow and Repair' action on a seed range: clears instruction flow reachable from the seed, then repairs function bodies and re-disassembles retained flow (ClearFlowAndRepairCmd with clear_data=false, clear_labels=false, repair=true). Use to rebuild regions whose flow was created under wrong assumptions, e.g. a function truncated while a callee was incorrectly marked non-returning. The command follows control flow BEYOND the seed range; the reported observations are seed-local only and do not describe everything the command changed. The flow traversal is not cancellable — a very large connected flow can hold the write lock until it completes. Ghidra treats a seed with exactly one candidate flow start (an instruction that is neither a function entry nor reached by fallthrough from inside the seed) as the flow being intentionally removed and does not reseed that start during repair; consequently, applying this action to otherwise healthy flow can clear code, matching the GUI action's behavior. The response's seed_range.end_address_exclusive is null when the seed ends at its address space's maximum address, since that boundary has no representable exclusive successor. Results are reachability-dependent and the command is not idempotent: some damaged regions may require more than one application to rebuild, while applying it again to healthy flow can clear code — inspect the before/after observations and resulting disassembly after every call.
batchRenameVariables tool
Rename multiple variables atomically. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setVariables tool
addFunctionTag tool
Attach tags to ONE function (function + tags) OR MANY in one transaction (assignments=[{function,tags}, ...]). Tags are comma-separated and created on the fly (give a new tag a description with tag_comments). Replaces batch_add_function_tags and create_function_tag.
removeFunctionTag tool
Detach tags from ONE function (function + tags) OR MANY in one transaction (assignments=[{function,tags}, ...]). Does not delete the program-wide tag definition — use delete_function_tag for that. Replaces batch_remove_function_tags.
listFunctionTags tool
List all program-wide function tag definitions with their use counts.
deleteFunctionTag tool
Delete a program-wide function tag definition. This detaches the tag from every function that had it.
setFunctionTagComment tool
Update the comment/description on an existing program-wide function tag.
runningTools tool
gotoAddress tool
listProgramItems tool
listDataItemsByXrefs tool
List data items sorted by xref count (descending). By default returns only defined data items. `filter` and `type_filter` (each: all/defined/undefined) compose orthogonally to also include unnamed/untyped addresses — `filter=all,type_filter=all` returns the full data surface (named + DAT_*-style autogen + raw undefined-with-xrefs). `min_xrefs` (default 1) suppresses zero-xref noise on undefined items.
findFunctions tool
listCallingConventions tool
List available calling conventions
listDefinedStrings tool
List defined strings with optional filter
getFunctionCount tool
Get total function count
searchStrings tool
Search strings by regex pattern.
listGlobals tool
List global DATA symbols. By default returns every global in the program (named + unnamed-but-xrefed undefined addresses). `filter` and `type_filter` (each: all/defined/undefined) compose orthogonally to scope the result — e.g., `filter=named, type_filter=undefined` returns the cleanup backlog (placeholders awaiting real types). `min_xrefs` (default 1) suppresses zero-xref noise when including undefined items. Code labels (branch targets, error handlers) are still excluded — they're not data globals. Each line ends with `xrefs=N` for prioritization.
listShadowedGlobals tool
List named global DATA symbols that have NO type of their own because a larger data unit starting at an earlier address covers them. These are invisible to /list_globals — it resolves the CONTAINING unit, so it reports the covering neighbour's type at the shadowed address and the global looks perfectly typed. Each record carries the container that swallowed it. Use this to find documentation that a neighbouring type application destroyed, or a symbol sitting inside an array where it does not belong.
getEntryPoints tool
Get program entry points
getExternalLocationDetails tool
Get external location details by address or DLL name
setEquate tool
convertNumber tool
Convert number between hex/decimal/binary formats
findAntiAnalysisTechniques tool
Detect anti-analysis and anti-debug techniques
analyzeAPICallChains tool
Detect suspicious API call patterns
extractIOCsWithContext tool
Enhanced IOC extraction with context
detectMalwareBehaviors tool
Detect common malware behaviors
partitionProgram tool
getMetadata tool
Get program metadata
getProgramOptions tool
Read all options in a program option group with types, current values, defaults, and descriptions. Omit group to list the option groups instead (e.g. 'Program Information', 'Analyzers', 'Decompiler'), each with its option count.
setProgramOption tool
Set a typed program option. If the option already exists its type is reused; otherwise pass type (string|int|long|double|float|boolean). New/custom options are created on demand. Call save_program to persist.
removeProgramOption tool
Remove an option from a program option group. Built-in registered options may be re-created with defaults by Ghidra; primarily for clearing custom options. Call save_program to persist.
createPropertyMap tool
Create a user property map to store typed values keyed by address. Types: int, long, string, void (address-presence tag). Use a string map holding JSON to store arbitrary structured per-address data. Call save_program to persist.
deletePropertyMap tool
Delete a user property map and all values it holds. Call save_program to persist.
setProperty tool
Set a value at an address in a property map. The value is coerced to the map's type (int/long/string); 'void' maps ignore the value and just tag the address. Create the map first with create_property_map. Call save_program to persist.
getProperty tool
Read the value stored at an address in a property map. Returns has_value=false and a null value when the address holds no property.
removeProperty tool
Remove the value stored at a single address in a property map. Call save_program to persist.
listProperties tool
List (address, value) entries stored in a property map, with pagination. Optionally restrict to an inclusive address range with start/end. Omit map to list the property maps instead: each one's name, value type (int|long|string|object|void) and how many addresses hold a value.
saveCurrentProgram tool
Save current program
saveAllOpenPrograms tool
Save all open programs
listOpenPrograms tool
List all open programs. If more than one is listed, pass program= on subsequent tool calls — omitting it returns an error naming every open program (guessing is never acceptable with multiple candidates).
closeProgram tool
getAddressSpaces tool
getUiCursor tool
switchProgram tool
Switch MCP context to a different program
listProjectFiles tool
List files in the current project, with each one's version-control state: whether it is versioned, checked out, and (when checked out) whether the checkout holds uncommitted work.
createFolder tool
Create a folder in the project
deleteFile tool
Delete a file from the project
moveFile tool
moveFolder tool
openProgramFromProject tool
importFile tool
getProjectInfo tool
reanalyze tool
Trigger full auto-analysis on a program
analysisStatus tool
Get auto-analysis status for open programs
runScriptInline tool
Execute inline Ghidra script code. Pass the full Java source as the 'code' body parameter. Gated by GHIDRA_MCP_ALLOW_SCRIPTS=1 (v5.4.1+).
listGhidraScripts tool
List available Ghidra scripts
readMemory tool
Read raw memory bytes. Always pass the 'program' argument to target the correct binary — especially when multiple programs are open. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setMemoryBlock tool
createMemoryBlock tool
Create a new memory block, optionally initialized with byte contents supplied as hex or base64. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
setBookmark tool
Create or update a bookmark. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
listBookmarks tool
List bookmarks with optional filter. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
deleteBookmark tool
Delete a bookmark. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
runGhidraScriptWithCapture tool
Execute script with output capture and timeout. Gated by GHIDRA_MCP_ALLOW_SCRIPTS=1 (v5.4.1+).
setImageBase tool
Set the base address of the program (rebases all addresses)
exportProgram tool
importProgram tool
archiveProject tool
restoreProject tool
configure tool
Temporarily enable, disable, or query scoped automation prompt handling
exit tool
renameSymbol tool
Rename a symbol of any kind. kind=auto (default): an address target routes to rename-or-create-label (handles data/label/any symbol at the address); a name target routes to a global. Force with kind=data|global|label|external. For kind=label pass old_name (the current label). Replaces rename_data / rename_global_variable / rename_label / rename_or_label / rename_external_location.
createLabel tool
Create ONE label (address + name) OR MANY in one call (labels=[{address,name}, ...]). On programs with multiple address spaces, prefix addresses with the space name (mem:1000). Replaces batch_create_labels.
deleteLabel tool
Delete ONE label (address + name) OR MANY in one call (labels=[{address,name}, ...]). On programs with multiple address spaces, prefix addresses with the space name (mem:1000). Replaces batch_delete_labels.
canRenameAtAddress tool
Check if address supports rename. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
findTypeUsers tool
checkinProgram tool
checkout tool
undoCheckout tool
addToVersionControl tool
Add a file of the open shared project to version control.
versionHistory tool
Version history of a versioned file: version, user, comment and time of each.
checkouts tool
terminateCheckout tool
terminateAllCheckouts tool
connect tool
disconnect tool
Disconnect from the Ghidra Server.
authenticate tool
status tool
repositories tool
List the repositories on the connected Ghidra Server.
repositoryFiles tool
repositoryFile tool
Describe one file of a server repository: name, path, content type, version.
createRepository tool
Create a new repository on the connected Ghidra Server (needs admin access).
users tool
List all users registered on the server (needs admin access).
setPermissions tool
getXrefsTo tool
getXrefsFrom tool
Get cross-references from an address. On programs with multiple address spaces (e.g., embedded targets), prefix addresses with the space name (mem:1000) to avoid ambiguous resolution.
addMemoryReference tool
removeReference tool
getFunctionCallGraph tool
Traverse call graph from a function. Accepts function name or address.
getFullCallGraph tool
Get entire program call graph
analyzeCallGraph tool
Analyze call graph paths between functions
getAssemblyContext tool
Get assembly pattern context for xref sources
createProject tool
listProjects tool
Find Ghidra projects (.gpr) in a directory
deleteProject tool
Delete a Ghidra project from disk
openProject tool
closeProject tool
Close the currently open project
Ghidra programs resource
Every program open in the connected Ghidra, plus the URI contract for reading a function bundle. Start here.
Ghidra program summary resource
Metadata for one program: language, image base, function count.
Ghidra function index resource
Every function as {name, address}, plus the uri_template that turns an address into its bundle URI. This is where a function's current descriptive name is visible — a resource read result has no name field of its own.
Ghidra change token resource
The program's change token plus what this session can expect in the way of change notifications. Read this when a cached bundle might be stale: compare its token with the bundle's own revision.token.
Ghidra function bundle resource
Everything about one function from a single decompilation: decompiled C, signature, plate and inline comments, parameters, locals, labels, callers with their actual call-site source lines, callees and xrefs. Replaces the decompile_function + get_function_variables + get_function_callers + get_comment + get_function_xrefs sequence.
Ghidra function by name resource
Resolve a function name to its canonical address URI. Deliberately tiny: names change, so the address URI is what should be cached and read.
Ghidra decompilation tree resource
Status and configuration for one decompilation tree. The tree itself lives on disk under the root this document names — Glob/Grep that; read this resource to learn whether the tree is still trustworthy.
Ghidra function search resource
Functions whose name matches a pattern, as {name, address} plus a uri_template. A filtered result set has no stable identity, so this is not cached against per-function invalidation — re-read it when the program changes.

What we checked

The same checks run on every server. Each line below has one of these marks:

FoundA published issue such as a risky tool or a CVE
PassedWe ran the check on this server and found nothing
After reviewChecked; we publish it once a person verifies it
Partly tracedRan, but the scanner could not follow every path to its end
FactWhat the code does, not a judgement either way
Not checkedThe scanner had nothing to read for it, or it needs the live server
Code Safetypartly traced
  • 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injection
    Checked on every scan. Results in this category are published only after a person has verified them.
Capability Exposure7.1
  • Runs programs the caller chooses
    No tool runs a command or program the caller supplies — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Executes caller-supplied code
    No tool evaluates code the caller supplies — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Reads or writes any file path
    No tool works on a file path the caller supplies without a root check — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Requests any address
    No tool sends a request to an address the caller supplies — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Runs caller-supplied SQL
    No tool executes a query the caller supplies — 240 tool handlers traced. Not every path could be followed, so this is not a clean pass.
  • Tools that start processes
    Not seen in the traced code of 240 capabilities; 227 more call code the scanner could not follow, where it may happen
  • Tools that touch files
    12 of 240 capabilities touch files; 215 more call code the scanner could not follow, where it may happen
  • Tools that call the network
    8 of 240 capabilities call the network; 219 more call code the scanner could not follow, where it may happen
Where the code is: 240 handlers in 31 files at commit 8dbbb1f67716
Prompt Integrity10.0
  • 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrity
    Checked on every scan. Results in this category are published only after a person has verified them.
Supply Chain7.0
  • Dependency manifests
    2 manifests: pom.xml, pyproject.toml
  • Lockfiles checked against OSV
    1 file resolved and checked against the OSV database; 1 not resolved: pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
  • Known vulnerabilities in production dependencies
    No production dependency with a known advisory
  • Known vulnerabilities in other dependencies
    No package used only for development, tests or examples has a known advisory
  • MCP SDK version
    mcp >=1.28.1,<2.0.0
Secrets & Credentials10.0
  • 3 checks: credential harvesting, undeclared credential access, credentials sent over the network
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tools that read credentials
    Not seen in the traced code of 240 capabilities; 227 more call code the scanner could not follow, where it may happen
  • Environment variables
    10 capabilities read environment variables (often API keys)
  • Authentication declared
    Not checked: needs the live server's tools/list (a remote server declares how clients authenticate)
Behavior Transparency10.0
  • 3 checks: undeclared network access, undeclared file access, undeclared process execution
    Checked on every scan. Results in this category are published only after a person has verified them.
  • Tool descriptions present
    Every tool has a description the model and the user can read (64 only in code no tool reaches)
  • Statically known names
    Every tool's name could be read from the code
  • Input schemas
    Not checked: needs the live server's tools/list (every tool declares an input schema)
  • Destructive tools annotated
    Not checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)

Dependencies with known vulnerabilities (0 in production)

Dependency ranges were not resolved against a lockfile, so the score is capped at 7.

No known vulnerabilities in the production dependencies that could be checked.

Past security advisories

Vulnerabilities published for this server itself, from the GitHub Advisory Database.

No security advisories have been published for this server in the GitHub Advisory Database.

How it runs

Where it runsOn your machine, started by your MCP client from this repository or its package
TransportStreamable HTTP, SSE
Sign-innot checked needs the live server
MCP SDKmcp >=1.28.1,<2.0.0
Servers in the code1 (ghidra-mcp)

The project's own security

Security policyyes SECURITY.md
Private reportingmentioned the policy names a private channel
Past advisoriesnone in the GitHub Advisory Database
Last push2026-11-13
Signed releasesnot checked yet

Where it is published

Listed in3 catalogs (github_search, glama, mcp_toplist)
LicenseApache-2.0
Created2025-08-30
Topicsai binary-analysis ghidra ghidra-extension java mcp mcp-server model-context-protocol python reverse-engineering

Attack map

How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.

Request a scan or an audit

Tell us about your server. We reply within 5 working days.

What do you need? *

We use these details only to answer you.