ghidralens
v0.1.1Interactive Ghidra views in your AI client: decompile, rename, and navigate a binary.
Values you need
| Variable | What it is | |
|---|---|---|
GHIDRALENS_TOKEN | required secret | Shared secret printed by the PyGhidra bridge on startup. Start the bridge first: python bridge/serve.py --binary <path> |
GHIDRALENS_BRIDGE_URL | optional | 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.1Add 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
- Ask the user for: GHIDRALENS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: open_binary, program_info, decompile, list_functions, call_graph, find_strings, xrefs_to, rename_symbol, ….
- 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