Skip to main content
Glama
Document Integrity Validator MCP

Document Integrity Validator MCP

by OjasKord

Document Integrity Validator MCP

ToolRank

Before your agent accepts, processes, or acts on any document received from an external party -- verify it is internally consistent and matches the known standard for its type. One call. Any document. Machine-readable verdict.

What it does

Checks any document for internal consistency, completeness, and anomalies against the known international standard for that document type. Accepts base64 image or extracted text. Returns a structured verdict with a machine-readable agent_action field.

Supported standards include: ICAO Document 9303 (passports), Hague-Visby Rules 1968 (bills of lading), UCP 600 (trade finance documents), ISPM 12/IPPC/FAO (phytosanitary certificates), Vienna Convention on Road Traffic 1968 (driving licences), and more.

Returns UNKNOWN_DOCUMENT_TYPE rather than guessing on unfamiliar documents -- refusal is correct behaviour, not a failure.

AI-powered reasoning -- NOT a database lookup.

Related MCP server: crosscheck

Tools

check_document (Free tier: 10 calls/month)

Checks a single document against its international standard.

Input:

  • document_text (string, optional) -- extracted text from the document

  • document_image (string, optional) -- base64 encoded image (raw base64 or data URL)

  • document_type_hint (string, optional) -- agent belief about document type

  • issuing_jurisdiction (string, optional) -- country or issuing body

At least one of document_text or document_image is required.

Response:

{
  "agent_action": "PROCEED",
  "verdict": "PASS",
  "confidence": "HIGH",
  "document_type_identified": "Bill of Lading",
  "assessed_against": "Hague-Visby Rules 1968",
  "known_issuing_standard": "IMO",
  "flags": [],
  "reason": "Document is internally consistent and compliant with Hague-Visby Rules 1968.",
  "analysis_type": "AI-powered reasoning -- NOT a database lookup",
  "checked_at": "2026-05-06T10:00:00.000Z",
  "_disclaimer": "..."
}

agent_action values:

  • PROCEED -- document passed

  • VERIFY_MANUALLY -- flags found, agent should flag for human review

  • HOLD -- document failed, do not proceed

  • REFER_TO_HUMAN -- document type unknown, refer for manual assessment

check_document_package (Paid tier only)

Checks 2-20 related documents individually then cross-checks all for consistency conflicts.

Input:

  • documents (array, min 2, max 20) -- each item has: label (required), document_text, document_image, document_type_hint, issuing_jurisdiction

Cross-checks performed: weights/quantities/amounts, party names, reference numbers, dates, commodity descriptions, port references.

Pricing

Tier

Calls

Price

Free

10/month per IP

No API key required

Trial extension

+10 one-time

POST /trial-extension

Pro

500/month

$29/month

Enterprise

5,000/month

$199/month

Overage: $0.05 per call above monthly cap.

Subscribe at kordagencies.com.

Harness Integration

Claude Code / Claude Desktop (.mcp.json)

{
  "mcpServers": {
    "document-integrity-validator": {
      "type": "http",
      "url": "https://document-integrity-validator-mcp-production.up.railway.app/mcp"
    }
  }
}

LangChain / LangGraph (Python)

from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
    "document-integrity-validator": {
        "url": "https://document-integrity-validator-mcp-production.up.railway.app/mcp",
        "transport": "http"
    }
})
tools = await client.get_tools()

OpenAI Agents SDK (Python)

from agents import Agent, HostedMCPTool
agent = Agent(
    name="Assistant",
    tools=[HostedMCPTool(tool_config={
        "type": "mcp",
        "server_label": "document-integrity-validator",
        "server_url": "https://document-integrity-validator-mcp-production.up.railway.app/mcp",
        "require_approval": "never"
    })]
)

Self-hosted (stdio)

npm install -g document-integrity-validator-mcp
ANTHROPIC_API_KEY=sk-ant-... TRANSPORT=stdio document-integrity-validator-mcp

Add to Claude Desktop claude_desktop_config.json:

{
  "mcpServers": {
    "document-integrity-validator": {
      "command": "document-integrity-validator-mcp",
      "env": { "ANTHROPIC_API_KEY": "sk-ant-..." }
    }
  }
}

Trial Extension

If you have reached the 10 call/month free limit, request 10 extra calls:

curl -X POST https://document-integrity-validator-mcp-production.up.railway.app/trial-extension \
  -H "Content-Type: application/json" \
  -d '{"name":"Your Name","email":"you@example.com","use_case":"Brief description"}'

One extension per email address.

AI-powered document consistency assessment. Results are for informational purposes only and do not constitute legal, compliance, or authentication advice. We do not log or store your document content. Full terms: kordagencies.com/terms.html

Available Tools

2 tools
check_documentCheck Document IntegrityA
Read-only
Inspect

Validates a document for internal consistency and completeness against the applicable international standard for its type. Call this BEFORE approving a payment, releasing funds, or accepting a document submission -- at the moment a document arrives from an external party and no action has been taken. Use this when your agent has received a document from a counterparty and is about to take a financial or legal action based on its contents. Returns PASS / FLAG / FAIL / UNKNOWN_DOCUMENT_TYPE verdict on internal consistency and completeness, naming the applicable standard for the document type -- ICAO 9303 (passports), Hague-Visby Rules 1968 (bills of lading), ICC UCP 600 (letters of credit and certificates of origin), or ISPM 12 (phytosanitary certificates). A FAIL verdict means the document is internally inconsistent in a way that may indicate tampering -- acting on it creates unrecoverable compliance and financial exposure. Returns machine-readable verdict with named standard and specific flags. When you have 2-20 related documents (e.g. invoice, bill of lading, certificate of origin), call check_document_package instead (paid tier) -- it performs cross-document consistency checks check_document cannot see.

Inputs: document_text, document_image, document_type_hint, issuing_jurisdiction. Returns: flags, reason, verdict, checked_at, +14 more

check_document_packageCheck Document Package IntegrityA
Read-only
Inspect

Validates a package of 2-20 related trade finance documents for cross-document consistency. Call this BEFORE approving any multi-document trade finance transaction or cross-border shipment -- at the moment a set of 2-20 related documents arrives from an external party and funds have not been released. Use this when your agent has received a full trade finance package — such as invoice, bill of lading, and certificate of origin together — and must verify all documents are consistent with each other before releasing funds. Returns PASS/FLAG/FAIL verdict per document with mismatch details. Cross-checks all documents for consistency across numeric values, party names, reference numbers, dates, and commodity descriptions. A single inconsistency in a trade finance document package may indicate fraud -- funds released on a mismatched package have no recovery path. Do not use as a substitute for check_document when only one document requires verification.

Inputs: documents (required). Returns: verdict, documents, checked_at, confidence, +9 more

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.7/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: check_document validates a single document's internal consistency, while check_document_package validates cross-document consistency for 2-20 related documents. Their descriptions explicitly state when to use each, leaving no ambiguity about which to select.

    Naming Consistency5/5

    Both tool names follow the same verb_noun pattern: 'check_document' and 'check_document_package'. The second name is a logical extension of the first, making the relationship and function predictable.

    Tool Count4/5

    With only two tools, the server is borderline minimal, but this is appropriate for a narrow domain focused on document validation. The two tools cover the two core scenarios (single document and package), with no unnecessary bloat.

    Completeness4/5

    The server covers the primary validation workflows: single-document internal consistency and multi-document cross-consistency. Minor gaps exist, such as not exposing a way to list supported standards or validate against a user-specified standard, but these are not critical for the core use case.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Inspects documents for tampering, ineffective redactions, and text aimed at language models before they enter an agent's context, and compares documents to confirm whether they are unchanged.
      4
      67 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to obtain an independent review of their drafts, returning a pass/fail verdict with specific issues and suggested fixes, plus a signed receipt. Payments are made per check over x402, with no account or API key needed.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to call a check that flags invented specifics, copied passages, and rule breaks in drafts against an approved, versioned standard. Returns actionable tool results so agents can identify and rewrite offending spans.
      MIT