Treasure Map logo

Treasure Map

Maps unpacked firmware, identifies dangerous call sites, and compares scanned versions for security-relevant changes.

Install Treasure Map

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "--from",
        "tmap-agents",
        "tmap"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio treasure-map -- uvx --from tmap-agents tmap

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command installed and started the server, which then stopped for configuration (such as an API key) that our sandbox does not have — expected for servers that connect to your account.

uvx --from tmap-agents tmap

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The treasure-map MCP server turns an unpacked firmware filesystem into static-analysis facts that an AI agent can query. It identifies command-execution, memory-copy, format-string, and file-path call sites, tracks data provenance and reachability, and compares two scanned versions at function level. Use it for firmware security review when you want the agent to inspect evidence and record judgments without relying on a model inside the tool.

Use cases

  • Map dangerous call sites across an extracted firmware
  • Trace NVRAM values between web interfaces and binaries
  • Review security-relevant changes between firmware versions
  • Track incomplete analysis and agent review progress

Key features

  • Firmware-wide static analysis with Ghidra
  • Call-site provenance and controllability facts
  • Function-level firmware patch diffs
  • NVRAM, launcher, script, and symlink relationships
  • Persistent review annotations
  • Explicit UNKNOWN findings and unread work tracking

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 13d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · tmap-agents (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars103Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Install checkRunsOur sandbox started it; it then asked for an API key or config.

How Treasure Map works

What treasure-map does

treasure-map analyzes extracted firmware filesystems and exposes the resulting evidence to an AI agent through MCP. Its analysis covers four categories of potentially dangerous call sites: command execution, memory copies, format strings, and file paths.

For each candidate, the map records facts about argument origins, attacker controllability, writers and readers of relevant values, call reachability, filtering, and analysis completeness. Facts use YES, NO, or UNKNOWN states; unknown findings include the reason the tool could not establish more. The map also tracks which binaries, functions, and candidates have been reviewed.

The server does not run a model, require an API key, or issue vulnerability verdicts. It supplies read-only analysis facts and stores the agent's conclusions in a separate annotation layer.

How it works

tmap scan decompiles binaries in an extracted firmware using Ghidra and builds a searchable map. It also records relationships such as NVRAM readers and writers, web-interface exposure, program launchers, init scripts, and resolved symlinks. Repeating a scan with the same workspace name resumes interrupted work.

tmap diff compares two scanned firmware versions. Ghidra, BinExport, and BinDiff process changed binaries, while scripts, configuration files, and web pages are compared by path. The result groups changed function pairs around relevant calls and highlights changes such as modified copy or format-call length constants. The agent receives work units for required review items, and unreviewed changes remain explicitly unreviewed.

Judgments persist in the atlas database across sessions, models, and agents. If the underlying facts change, affected judgments are flagged for review.

Setup and configuration

The installation command downloads the latest installer and runs tmap init:

Terminal
curl -LsSf https://github.com/JoeyZzZzZz/treasure-map/releases/latest/download/install.sh | sh

Initialization sets up the analysis toolchain, registers the MCP server with selected agents, and installs the diff-review skill for agents that use skills. Restart the agent after installation.

Scan an already-extracted filesystem with:

bash
tmap scan ./firmware.extracted -w my-fw

Create a comparison by scanning both versions and then running:

bash
tmap diff --before fw-v1 --after fw-v2

All scans and diffs are stored in one atlas at ~/.treasure-map/atlas.db. tmap doctor checks the toolchain, configuration, and registrations. tmap runs lists and manages runs, while tmap rescan handles runs made outdated by an upgrade.

Tools and capabilities

  • Scan every binary in an extracted firmware with Ghidra.
  • Find command-execution, buffer-copy, format-string, and file-path call sites.
  • Trace argument provenance for command, copy, and format candidates.
  • Record NVRAM readers and writers, launch paths, scripts, symlinks, and analysis gaps.
  • Compare changed binaries, scripts, configurations, and web files between versions.
  • Preserve agent judgments and identify annotations that need re-review.

Limitations and notes

The input must be an already-unpacked firmware filesystem. Scanning is the slow step because it performs a Ghidra pass for each binary. Path and file candidates are detected and ranked, but their controllability comes from text-level analysis and is labeled accordingly.

The project is described as a developer preview, so commands, configuration, atlas data, and MCP tool fields may change incompatibly between versions. The tool supplies evidence rather than a vulnerability decision; the connected agent must interpret the findings and judge whether changes are security fixes.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Treasure Map

treasure-map is an MCP server that connects AI agents to static-analysis facts from unpacked firmware filesystems. Its main tools support mapping one firmware, comparing two scanned versions, querying dangerous call sites and patch changes, and recording review judgments. It covers command execution, memory copies, format strings, and file paths.

Run the latest installer with `curl -LsSf https://github.com/JoeyZzZzZz/treasure-map/releases/latest/download/install.sh | sh`. It installs `tmap`, initializes the toolchain, registers the MCP server with selected agents, and installs the diff-review skill where supported. Restart the agent after installation.

Run `tmap scan ./firmware.extracted -w my-fw` against an already-extracted firmware filesystem. The command analyzes binaries with Ghidra and stores the scan in the atlas. Repeating the command with the same workspace name resumes the scan.

Scan both extracted versions first, then run `tmap diff --before fw-v1 --after fw-v2`. The diff processes changed binaries and compares scripts, configuration files, and web files, producing function-level and file-level changes for agent review.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTreasure Map AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/treasure-map?style=directory)](https://allmcps.com/mcp/treasure-map)
HTML Embed
<a href="https://allmcps.com/mcp/treasure-map"><img src="https://allmcps.com/api/badge/treasure-map?style=directory" alt="Treasure Map on AllMCPs" /></a>