# Tamperlens

> Tamperlens is a freemium MCP server for security. Screen documents for edits, failed redactions and prompt injection before agents read them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $29 a month
- **Platforms:** CLI, API, Web
- **Website:** https://tamperlens.com
- **Repository:** https://github.com/haruodev/tamperlens-mcp
- **MCP Registry name:** com.tamperlens/mcp
- **Categories:** [security](https://ai-powered.com/categories/security), [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-21

## About

Tamperlens looks at what a file's structure records rather than what it shows on screen. For PDFs that includes revisions appended after the original save, metadata fields that contradict each other, editor fingerprints in the Producer field and signatures that no longer cover the whole file. It also checks whether a redaction removed anything, since a black box drawn over text hides it from a reader but not from the file, and whether a document carries text addressed to a language model. The site frames results as risk signals with raw evidence, not verdicts.

The npm package runs locally over stdio. Five tools cover a full inspection, a cheaper triage pre-flight, redaction checks, comparison against an original, and a multi-document case check for inconsistencies between files from one case. It accepts PDF, Word, Excel, PowerPoint and common image formats. Local paths or http(s) URLs can be passed, with URLs fetched on your machine and blocked from reaching private or metadata addresses.

The README warns that the path argument reads any local file and sends its bytes to the API; an optional environment variable confines reads to allowed directories. Without a key, 10 documents an hour are allowed; a free key gives 50 a month, and compare_documents and inspect_case need a key.

## Features

- **Edit detection:** inspect_document flags appended revisions, conflicting metadata, editor traces and signature coverage.
- **Redaction check:** check_redaction tests whether a redaction actually removed the covered content.
- **Prompt-injection screen:** Reports whether a file carries text meant for a model rather than a reader.
- **Cheap triage:** triage_document is a lightweight pre-flight that names the checks it skipped.
- **Case consistency:** inspect_case compares 2 to 10 documents for shared traces they should not have.
- **Directory confinement:** TAMPERLENS_ALLOWED_DIRS limits which local folders the server may read.

## Good for

- Screen a bank statement or payslip before an onboarding agent reads it
- Confirm a redacted file really removed the hidden text
- Check whether a file matches the original you hold
- Route incoming documents with a quick triage before full inspection
- Compare three months of statements for suspicious overlap

## Install

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

```sh
claude mcp add mcp --env TAMPERLENS_API_KEY='<TAMPERLENS_API_KEY>' -- npx -y tamperlens-mcp
```

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": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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 mcp --env TAMPERLENS_API_KEY='<TAMPERLENS_API_KEY>' -- npx -y tamperlens-mcp
```

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

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "tamperlens-mcp"]
env = { TAMPERLENS_API_KEY = "<TAMPERLENS_API_KEY>" }
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e TAMPERLENS_API_KEY='<TAMPERLENS_API_KEY>' mcp npx -- -y tamperlens-mcp

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

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": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 5 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `inspect_document` (name suggests: reads): Checks whether a document was edited, including hidden text, macros, image AI traces and text addressed to a language model.
- `triage_document`: Cheap pre-flight returning risk band, cost measures and the checks it skipped.
- `check_redaction` (name suggests: reads): Checks whether a redaction actually removed content.
- `compare_documents`: Checks whether a file is unchanged from the original you hold.
- `inspect_case` (name suggests: reads): Checks whether the documents of one case disagree with each other.

## FAQ

### Does Tamperlens need an API key?

No for basic use, which allows 10 documents an hour. A free key raises that to 50 a month, and two tools require one.

### Which files are supported?

PDF, Word, Excel and PowerPoint, including macro-enabled types, plus JPEG, PNG, WebP, HEIC/HEIF and AVIF.

### Can Tamperlens fetch a URL safely?

Yes, fetching happens on your machine, only http/https, with private and metadata addresses refused.

### Does Tamperlens prove a document is genuine?

No. It reports signals and evidence, and the site says a document generated cleanly from scratch carries no editing traces.

### How do I restrict local file access?

Set TAMPERLENS_ALLOWED_DIRS to the directories reads may use.

### Is Tamperlens free?

Tamperlens has a free plan, with paid plans for more usage or features. Paid plans start at $29 a month.

### How do I add Tamperlens to Claude Code?

Run this command in your terminal: claude mcp add mcp --env TAMPERLENS_API_KEY='<TAMPERLENS_API_KEY>' -- npx -y tamperlens-mcp

### What are the best alternatives to Tamperlens?

The closest alternatives to Tamperlens are Pdfstudio, Pdfedit MCP, AsItIs, Universal File Opener CLI and Deliverd Screen.

## Where this comes from

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

## Alternatives

- [Pdfstudio](https://ai-powered.com/mcp/pdfstudio): Pdfstudio is an open-source MCP server for files and documents.
- [Pdfedit MCP](https://ai-powered.com/mcp/pdfedit-mcp): Pdfedit MCP is a freemium MCP server for files and documents.
- [AsItIs](https://ai-powered.com/mcp/asitis): AsItIs is an open-source MCP server for files and documents.
- [Universal File Opener CLI](https://ai-powered.com/mcp/universal-file-opener-cli): Universal File Opener CLI is a freemium MCP server for files and documents.
- [Deliverd Screen](https://ai-powered.com/mcp/deliverd-screen): Deliverd Screen is an open-source MCP server for security.
- [MCP Legal Doc Analyzer](https://ai-powered.com/mcp/mcp-legal-doc-analyzer): MCP Legal Doc Analyzer is an MCP server for legal and government.
- [DocMorph Studio](https://ai-powered.com/mcp/docmorph-studio): DocMorph Studio is a freemium MCP server for files and documents.
- [PDF & Word Metadata Cleaner — Inspect, Clean & Verify](https://ai-powered.com/mcp/pdf-and-word-metadata-cleaner-inspect-clean-and-verify): PDF & Word Metadata Cleaner — Inspect, Clean & Verify is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/tamperlens
