Skip to content
MCP server

Tamperlens

Screen documents for edits, failed redactions and prompt injection before agents read them

Runs locally

Tamperlens is a freemium MCP server for security. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
CLI, API, Web
Runs
Locally
Version
1.43.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

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

Cursor setup guide

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

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add mcp --env TAMPERLENS_API_KEY='<TAMPERLENS_API_KEY>' -- npx -y tamperlens-mcp

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

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

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tamperlens-mcp"
      ],
      "env": {
        "TAMPERLENS_API_KEY": "<TAMPERLENS_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

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

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

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

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

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

    {
      "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.

    Junie

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

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

Configuration

  • TAMPERLENS_API_KEYOptional. Without it the anonymous allowance applies (10 documents/hour); a free key from tamperlens.com/account raises it. compare_documents and inspect_case require a key.
  • TAMPERLENS_BASE_URLOptional. Defaults to the public deployment at https://tamperlens.com.
  • TAMPERLENS_ALLOWED_DIRSOptional. Colon- or comma-separated absolute directories to confine local file reads to. Unset means any absolute path the process can read (the default). Set it to an intake directory so a path argument cannot reach secrets like ~/.ssh or a stray .env; symlinks out of a root are resolved and refused.

About Tamperlens

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.

Tools this server provides (5)

Taken from the project documentation; the running server may differ.

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_documentName 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_redactionName suggests: reads
Checks whether a redaction actually removed content.
compare_documents
Checks whether a file is unchanged from the original you hold.
inspect_caseName suggests: reads
Checks whether the documents of one case disagree with each other.

What it does

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

Pricing

Freemium, from $29 a month

Free: 50 documents/month; Solo $29/mo for 1,000; Team $199/mo for 10,000; Business $749/mo for 50,000; credit packs from $0.04 per document

Prices change. Check tamperlens.com before you buy.

Tamperlens 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.

How AIPoweredBot checks servers