Skip to main content
Glama
tamperlens-mcp

tamperlens-mcp

tamperlens-mcp

MCP-сервер для Tamperlens — спрашивает, был ли документ отредактирован, сохранились ли его маскировки и безопасно ли читать его модели, до того, как он попадёт в контекст вашего агента.

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

Для начала работы ключ не нужен — без ключа вы получаете анонимную квоту в 10 документов в час. Бесплатный ключ на tamperlens.com/account поднимает её до 50 в месяц без привязки карты.

Инструменты

Инструмент

Ответ

inspect_document

Бы ли файл изменён после того, как был написан? Добавления после первоначального сохранения, метаданные, противоречащие сами себе, отпечатки редактора, покрытие и целостность подписи, скрытый текст, макросы, следы ИИ-генерации в изображениях — и присутствует ли в нём текст, обращённый к языковой модели, а не к читателю.

check_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 — это та же модель, которая как раз собралась был читать файл. Поэтому MCP-сервер, который спел бы фразу атакующего обратно in контекст завершил бы атаку, which только выявлен. Вы получаете поле, расположение а категории признаков. Вы не охните саму фразу.

Что этого не делает

  • Никаких локального анализа. Каждый инструмент — это тонкая обёртка над REST API Tamperlens on running deployment. Here нет вторго движка, который мог бы разойтись в первым.

  • Никаких вердиктов. Tamperlens сообщает сигналы риска with and with объясненлия, catalyst, не пишет «этот документ броков». Сочетайте их со свой логикой прийнятия решения.

  • Документ never попадает в контекст модели. Инструменты принимают путь в файле системы вызывающего столь и читают байты here. Be partial в Base64 в вызове инструмента протащila бы megabytes in обход to новый окno, чтобы отдать их сервису, которо му нужны байты, а не the model.

  • Ничто not сохранено. Файлы парсятся API и память и удаляются вместе с ответом.

Конфигурация

Переменная

По умолчанию

Значение

TAMPERLENS_API_KEY

нет

Необязательна. Без неё действует анонимная квота (10 документов/час).

TAMPERLENS_BASE_URL

https://tamperlens.com

Укажите на свой indивиду экземпляр.

Правочник по каждому сигналу · Можно ли вашей модели читать этот файл? · Связь по API · Позиция по безопасности и privacy

Лицензия MIT. Issues и исходный код: github.com/haruodev/tamperlens-mcp. Сервер, с которым она работает, — tamperlens.com, этот repo — только клиент 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