Document Integrity Validator

io.github.OjasKordPublished by GitHub account OjasKordv1.0.20Updated Oct 24, 2026

AI reasoning checks any document against known international standards before your agent acts on it.

VerifiedStreamable HTTPWeb executableSecurity & MonitoringBusiness & CommerceAI & ML

Overview

AI-generated overview

An MCP server that uses AI reasoning to check a document, or a package of trade finance documents, against international standards and return a machine-readable

What you can do
Check a single document against the international standard for its type, from extracted text or a base64 image, with an optional type hint and issuing jurisdiction. Check a package of 2 to 20 related trade finance documents individually and cross-check them for conflicts in amounts, parties, reference numbers, dates, commodities and ports. Return a structured verdict with an agent_action value such as PROCEED, VERIFY_MANUALLY, HOLD or REFER_TO_HUMAN, plus confidence, flags and a reason. Refuse unfamiliar document types with UNKNOWN_DOCUMENT_TYPE instead of guessing.
When to use it
Useful when an agent receives documents from external parties, such as passports, bills of lading, trade finance papers, phytosanitary certificates or driving licences, and should verify consistency before approving payments, releasing funds or accepting a submission. Also suited to cross-border shipment checks spanning several related documents.
Requirements
Runs as a remote HTTP endpoint or as a local npm package over stdio. The self-hosted mode requires Node.js and an ANTHROPIC_API_KEY environment variable. The hosted free tier allows 10 calls per month per IP without an API key; higher tiers are paid subscriptions.
Before you install
Document content, including images, is sent to the service or to Anthropic for AI analysis. Paid tiers cost $29 or $199 per month with overage charges, and the package tool is paid-tier only. Results are informational only and are not legal, compliance or authentication advice, so flagged or failed documents should still get human review.

Installation

In SourceWeft

  1. Open Document Integrity Validator in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.OjasKord%2Fdocument-integrity-validator-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

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

README

[smithery badge]

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.

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:

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

TierCallsPrice
Free10/month per IPNo API key required
Trial extension+10 one-timePOST /trial-extension
Pro500/month$29/month
Enterprise5,000/month$199/month

Overage: $0.05 per call above monthly cap.

Subscribe at kordagencies.com.

Harness Integration

Claude Code / Claude Desktop (.mcp.json)

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

LangChain / LangGraph (Python)

python
from langchain_mcp_adapters.client import MultiServerMCPClientclient = 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)

python
from agents import Agent, HostedMCPToolagent = 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)

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

Add to Claude Desktop claude_desktop_config.json:

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:

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

One extension per email address.

Legal

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

Source: README.md at commit ceae725

Tools

2

check_document

Check Document Integrity

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.

Parametersdocument_textdocument_imagedocument_type_hintissuing_jurisdiction

check_document_package

Check Document Package Integrity

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.

Parametersdocumentsrequired

Version history

1
  1. v1.0.20LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts