Skip to content
MCP serverOpen-source agent

Treasure Map

MCP server that maps firmware dangerous call sites and patch diffs for AI agents to review

Runs locally

Treasure Map is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Linux, macOS
Runs
Locally
Version
0.2.1
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "treasure-map": {
      "command": "uvx",
      "args": [
        "tmap-agents"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

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

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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Treasure Map

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.

What it does

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

Pricing

Open source

Open source under Apache-2.0; no paid plan mentioned.

Prices change. Check tmap.tools before you buy.

Treasure Map 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.

How AIPoweredBot checks servers