# Treasure Map

> Treasure Map is an open-source MCP server for security. MCP server that maps firmware dangerous call sites and patch diffs for AI agents to review. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Linux, macOS, API
- **Website:** https://tmap.tools
- **Repository:** https://github.com/joeyzzzzzz/treasure-map
- **MCP Registry name:** io.github.JoeyZzZzZz/treasure-map
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-24

## About

The README says Treasure Map runs static analysis over an unpacked firmware image and records facts about command execution, memory copy, format string and file path call sites. For each one it notes where the data comes from, how an attacker could control it, who writes the value and how the call is reached, and it marks anything it could not determine as UNKNOWN rather than guessing.

The tool itself runs no language model and gives no vulnerability verdicts. It exposes these facts over MCP so an agent can decide which paths to follow, and it keeps a record of what has been read and judged so that an audit can resume in a later session. Firmware scans use Ghidra, and version comparisons use BinExport and BinDiff to produce a function-level patch diff.

The project is aimed at defensive security researchers who audit embedded device firmware they lawfully possess. Its README states that it does not generate exploits and that findings are leads needing human verification. It is in developer preview, with setup limited to Linux x86_64, WSL2 and Apple Silicon macOS.

## Features

- **Call site fact mapping:** Records data origin, attacker controllability, writers and reachability for dangerous calls in each firmware binary.
- **Unknown state reporting:** Marks each layer as YES, NO or UNKNOWN and names what is missing, so unread code is not mistaken for safe code.
- **Function-level patch diff:** Compares every changed binary between two firmware versions and groups changed function pairs for review.
- **Persistent judgment store:** Saves agent judgments in an annotation layer so audits continue across sessions, models and agents.
- **Resumable scans:** Re-running a scan with the same workspace name resumes from where it stopped.

## Good for

- Auditing an extracted router or camera firmware image for dangerous calls
- Checking whether a vendor firmware update actually closes a known weakness
- Tracking which firmware binaries have and have not been reviewed by an agent
- Following nvram keys and launch chains across binaries during firmware analysis

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add treasure-map -- uvx tmap-agents
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add treasure-map -- uvx tmap-agents
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.treasure-map]
command = "uvx"
args = ["tmap-agents"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user treasure-map uvx -- tmap-agents

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
```

## FAQ

### Does Treasure Map use an AI model itself?

No. The README says the tool runs no model and needs no API key; the connected agent makes the judgments.

### Which platforms are supported?

Linux x86_64 including WSL2 and macOS on Apple Silicon are supported. Native Windows and Linux arm64 are not supported, and macOS on Intel is listed as untested.

### How do I connect Treasure Map to my agent?

Running tmap init registers the MCP server with chosen agents such as Claude Code, Codex and Cursor. Manual registration is also documented.

### What license does Treasure Map use?

The README states Apache-2.0.

### Is Treasure Map free?

Yes. Treasure Map is open source, so you can use and self-host it for free.

### How do I add Treasure Map to Claude Code?

Run this command in your terminal: claude mcp add treasure-map -- uvx tmap-agents

### What are the best alternatives to Treasure Map?

The closest alternatives to Treasure Map are MCP Behave, MCPVetter, mcp-keyscan, MCP Server Auditor and mcp-audit.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [MCP Behave](https://ai-powered.com/mcp/mcp-behave): MCP Behave is an open-source MCP server for security.
- [MCPVetter](https://ai-powered.com/mcp/mcpvetter): MCPVetter is a freemium MCP server for security.
- [mcp-keyscan](https://ai-powered.com/mcp/mcp-keyscan): mcp-keyscan is an open-source MCP server for security.
- [MCP Server Auditor](https://ai-powered.com/mcp/mcp-server-auditor-2): MCP Server Auditor is an open-source MCP server for security.
- [mcp-audit](https://ai-powered.com/mcp/mcp-audit-2): mcp-audit is an open-source MCP server for security.
- [MCP Tool Poisoning Scanner](https://ai-powered.com/mcp/mcp-tool-poisoning-scanner): MCP Tool Poisoning Scanner is a paid MCP server for security.
- [Vigil](https://ai-powered.com/mcp/vigil-2): Vigil is an open-source MCP server for security.
- [Toolproof](https://ai-powered.com/mcp/toolproof): Toolproof is a free MCP server for security.

---
Source: https://ai-powered.com/mcp/treasure-map
