Skip to main content
Glama
tamperlens-mcp

tamperlens-mcp

tamperlens-mcp

Tamperlens 向け MCP サーバー — 文書が編集されたかどうか、その墨消し(redaction)が機能したかどうか、そしてモデルが読んでも安全かどうかを、エージェントのコンテキストに届く前に確認できます。

// Claude Desktop / Claude Code — claude_desktop_config.json or .mcp.json
{
  "mcpServers": {
    "tamperlens": {
      "command": "npx",
      "args": ["-y", "tamperlens-mcp"],
      "env": { "TAMPERLENS_API_KEY": "tl_..." }
    }
  }
}

試すのにキーは不要です — キーなしでも匿名の利用枠で1時間に10文書まで利用できます。tamperlens.com/account で無料キーを入手すれば、カード不要でそれが月50文書に引きます。

ツール

Tool

Answers

inspect_document

これは書かれた後に編集されたか? 最初の保存後に追記された改訂、自己矛盾するメタデタ、編集者のフィンガープリント、署名の対象範囲と整合性、隠れテキスト、マクロ、画像の AI生成トレース — そしてさらに、ファイルが読者よりは言語モデル宛てのテキストを含むかどうか。

check_redaction

墨消し(redaction)は実際に何かを取り除いたのか? 黒いボックスで覆うのは人間から隠すだけで、ファイルから何も除去していません。

compare_documents

既に握っている原本と同一、相手不変のファイルかどうか?

対応形式は PDF、Word、Excel、PowerPoint(.docx、.xlsx、.pptx とマクロ対応版)そして JPEG、PNG、WebP、HEIC/HEIF、AVIF です。

Related MCP server: subtext-scan

どうしてこれをエージェントの前に置くのか

文書は二種類の読者に読されること、実際にページを見せられるのはその一方だけです。抽出パイプラインはタイトル、キーワード、XMP パケット、コメント、参考名を読取る — これらはソフトウエアが読むために存在するフィールドです。その置かれたテキストはソフトウエアに読まれる*ためではなく、*従われることを意図して書かれることがあります。

inspect_document は、エージェントがファイルを取り込むのではなく、それを報告します。このサーバーでは復元されたペイロードは無条件に省略されたままです。 それは便利への考慮ではありありません。Tamperlensのレポートを次に読む可能性が最も高いのは、まさにその文書を読もうとしていたモデルです。攻撃者の文書をコンテキストに反響させて返すM-CPサーバーは、検出したばかりの攻撃を完遂させてしまいまず。あなたが得るものは、フィールド、場所、キューカテゴリだけであり、その文得られません。

それ以外は行いません

  • `ローカル解析はしません。 各ツールは実行中のデプロイ先にある Tamperlens REST API への薄いラッパです。ここに第1のエンジンと変わった第2のエンジンはありません。

  • 判定は下しません。 Tamperlens は裏づけを持つリスクシグナルを報告するもので、決して「この文書は不正だ」とは言いません。それらをあなた自身の判断ロジックと組み合わせてください。

  • 文書がモデルのコンテストに入ることありません。 ツールは呼び出し元ファイルシスのパスを取るだけで、バイト列を直接ここで取扱います。呼び出し文字列に Base4を置けば、サービルはバイト列を必要としますが、モデルではは、メガバイトの文書がコンテストに収められてしまいます。

  • 何も保存されません。 ファイルはAPIがメモリ上で解析し、レスポンスとともに破棄されます。

設定

変数

デフォルト

意味

TAMPERLENS_API_KEY

なし

任意です。未設定の場合は匿名枠(10文書/時)が適用されます。

TAMPERLENS_BASE_URL

https://tamperlens.com

自分のデプロイを指します。

リーフ

すべてのシグナルのフィールドガード ・このファイルはモデルが読んでも安全か? ・API STAR ・セキュリティとプライバシーの方針

MIT ライセンス。バグ報告とソース: github.com/haruodev/tamperlens-mcp。この MCPそれが話してるエンジンは tamperlens.com です。このリポジトリーは MCP ライアントだけが入っています。

Available Tools

4 tools
check_redactionA

Check whether a PDF's redactions actually removed anything. Covering text with a black box hides it from a reader and removes nothing from the file, so the words stay extractable. This reads paint order to catch a plain drawn rectangle — which carries no redaction annotation at all and is the failure behind most published redaction leaks — and separately catches redaction marks that were never applied. Use this before a document is filed or released.

Inputs: url, path.

compare_documentsA

Compare a candidate document against the original you already hold, and answer the question a single-file check cannot: is this the same file, unchanged? Reports byte identity (the only proof), revision ancestry when the candidate contains the original as a byte prefix, or a field-by-field structural diff when both were rewritten whole. Renders nothing and compares no pixels.

Inputs: originalUrl, candidateUrl, originalPath, candidatePath.

inspect_documentA

Inspect a document or image for fraud and tamper signals: revisions appended after the original save, metadata that disagrees with itself, editor fingerprints, signature coverage gaps, text still readable under a redaction box, unaccepted tracked changes whose deleted text is still recoverable, hidden text, hidden spreadsheet sheets, macros, and AI-generator or editor traces in images. Returns risk signals with the raw evidence behind each one — never a verdict on authenticity. Accepts PDF; Word, Excel and PowerPoint documents (.docx, .xlsx, .pptx and macro-enabled twins); and JPEG, PNG, WebP, HEIC/HEIF and AVIF images.

ALSO ANSWERS: is this file safe for a model to read? Document properties, XMP, annotations, attachment names, docProps, comments and hidden Word runs are checked for text written to be read by a language model rather than by a person — the prompt-injection carriers an extraction pipeline surfaces and a human reader never sees. Call this BEFORE the document reaches your own context. The recovered text itself is never returned through this tool: you get the cue categories, the counts and which kind of field carried it, because reading the payload is the attack.

Inputs: url, path, issuer, policy.

triage_documentA

CHEAP PRE-FLIGHT for document intake: is this file worth ingesting, and what does it cost to open? Reads structure, metadata, signatures and presence flags (revisions appended after the original, editor fingerprints, macros, JavaScript, embedded files, signature coverage) WITHOUT the expensive per-page content walk — a fraction of the I/O of inspect_document. Returns the risk band, the medium-or-high signals it CAN see, and the measured cost: bytes read, bytes expanded (decompressed) and the expansion ratio, so an agent can reject a decompression-heavy or high-risk file before committing to a full parse.

NOT A CLEAN BILL OF HEALTH. A quiet triage means only that the cheap structural tells were absent. Hidden text, redaction failure, altered arithmetic, glyph tampering, embedded-image anomalies and broken certifications are NOT checked in this mode — they need the page-content walk inspect_document runs. Use triage to ROUTE (reject now, or escalate to inspect_document), never as the verdict. PDFs get the cheap scope; Office documents and images have no separate expensive walk, so they return their full report.

Inputs: path (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool has a clear action-object purpose: deep inspection, cheap pre-flight triage, PDF redaction verification, and original-vs-candidate comparison. The only real overlap is that check_redaction is a specialized slice of what inspect_document also covers, and triage_document vs inspect_document are two depths of the same scanning workflow, but the descriptions explain the intended routing well.

    Naming Consistency5/5

    All tools follow a consistent lowercase snake_case verb_target pattern: inspect_document, triage_document, check_redaction, compare_documents. The only minor variation is pluralization on compare_documents, which is semantically natural and does not hurt predictability.

    Tool Count5/5

    Four tools is well-scoped for a document-forensics server: one cheap intake preflight, one comprehensive deep inspection, one targeted redaction gate, and one comparison operation. Each tool has a distinct place in the workflow, and none feels redundant.

    Completeness4/5

    The surface covers the full relevant progression: triage to route, inspect to get detailed signals, check_redact before release, and compare to validate against an original. It also covers both document files and in images; the main gap is that check_redaction is PDF-only and there is no explicit batch/attation/report operation, but these are obstacles behind the core workflow.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables agents to inspect PDF, Microsoft Office, and Apple iWork documents without rendering them, providing page/slide counts, metadata, security signals, structure, and integrity as deterministic JSON via typed tools and batch operations.
      4
      53 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables an agent to check a document file or a retrieved piece of text for text a person cannot see and for instruction-style payloads before the agent reads or acts on it, returning findings with location, reason and severity plus a blocked flag when the content should not be trusted. The hidden text itself is withheld from tool results by default so the payload is not delivered to the requesting agent.
      10 npm
      Apache 2.0
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables agents to analyze documents for hidden text and indirect prompt-injection indicators before reading them, returning report metadata without exposing the hidden content.
      1
      Apache 2.0