ghidralens

v0.1.1
io.github.hellosverre/ghidralens Checked 4 days ago Published 3 months ago

Interactive Ghidra views in your AI client: decompile, rename, and navigate a binary.

Values you need

VariableWhat it is
GHIDRALENS_TOKENrequired secret Shared secret printed by the PyGhidra bridge on startup. Start the bridge first: python bridge/serve.py --binary <path>
GHIDRALENS_BRIDGE_URLoptional Where the PyGhidra bridge is listening. Defaults to http://127.0.0.1:8799 Default: http://127.0.0.1:8799

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add ghidralens -e 'GHIDRALENS_TOKEN=<GHIDRALENS_TOKEN>' -- npx -y ghidralens@0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "ghidralens": {
      "args": [
        "-y",
        "ghidralens@0.1.1"
      ],
      "command": "npx",
      "env": {
        "GHIDRALENS_TOKEN": "<GHIDRALENS_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "ghidralens": {
      "args": [
        "-y",
        "ghidralens@0.1.1"
      ],
      "command": "npx",
      "env": {
        "GHIDRALENS_TOKEN": "<GHIDRALENS_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GHIDRALENS_TOKEN",
      "id": "ghidralens-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "ghidralens": {
      "args": [
        "-y",
        "ghidralens@0.1.1"
      ],
      "command": "npx",
      "env": {
        "GHIDRALENS_TOKEN": "${input:ghidralens-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.ghidralens]
command = "npx"
args = ["-y", "ghidralens@0.1.1"]
env = { "GHIDRALENS_TOKEN" = "<GHIDRALENS_TOKEN>" }

For AI agents

  1. Ask the user for: GHIDRALENS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: open_binary, program_info, decompile, list_functions, call_graph, find_strings, xrefs_to, rename_symbol, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json