npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

docqa-mcp

v1.0.2

Published

MCP server for DocQA — AI document verification, PDF extraction, OCR, and format conversion via api.agentsconsultants.com

Readme

docqa-mcp

MCP (Model Context Protocol) server for DocQA — verify AI extraction results against original documents, plus PDF extraction, OCR, and format conversion.

Catches what your AI missed: hallucinated invoice totals, wrong dates, arithmetic errors, mismatched field values — all without sending documents to any LLM.

Quick Start

npx docqa-mcp

Requires DOCQA_API_KEY environment variable. Get your key at: https://api.agentsconsultants.com

Setup

1. Get an API Key

Request a key at api.agentsconsultants.com. Free trial available.

2. Configure Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "docqa": {
      "command": "npx",
      "args": ["docqa-mcp"],
      "env": {
        "DOCQA_API_KEY": "your-api-key-here"
      }
    }
  }
}

3. Or install globally

npm install -g docqa-mcp

Then configure with command: "docqa-mcp" and your DOCQA_API_KEY env var.

Tools

docqa-verify ⭐ Core Tool

Verify AI-extracted fields against the original document. Detects hallucinations, arithmetic errors, and field mismatches.

Basic tier — Pattern validation + arithmetic checks (no document needed):

{
  "extraction": {
    "invoice_number": "INV-2024-0042",
    "date": "03/15/2024",
    "total": "$1,296.00",
    "subtotal": "$1,200.00",
    "tax": "$96.00"
  }
}

Standard tier — Full cross-extraction with independent OCR/PDF re-parse:

{
  "extraction": { "total": "$1,296.00", "date": "03/15/2024" },
  "document": "<base64-encoded-pdf>",
  "callerTool": "tesseract"
}

Gate mode — Simple pass/fail for agent workflow integration:

{
  "extraction": { ... },
  "mode": "gate"
}

Returns: { "pass": true, "confidence": 0.94, "failReasons": [] }

Pricing:

  • Basic: $0.05/verification — pattern + arithmetic checks
  • Standard: $0.50/verification — full cross-extraction

docqa-sample

Fetch a sample verification report to understand the output format. Free, no API key needed.


pdf-extract

Extract structured text and tables from PDF documents.

  • Input: file (base64 PDF), optional filename
  • Output: Extracted text, page count, tables, metadata, text quality assessment
  • Tip: If textQuality: "low", the PDF is likely scanned — use ocr instead

ocr

Extract text from images using Tesseract OCR.

  • Input: file (base64 image), optional language (default: eng), optional filename
  • Supports: PNG, JPG, TIFF, BMP, WebP
  • Output: Recognized text, confidence score, character count

convert

Convert documents between formats.

  • Input formats: pdf, md, json, txt
  • Output formats: txt, md, json
  • Input: file (base64), from, to
  • Output: Converted document (base64) + size stats

Why DocQA?

AI extraction tools (OCR, LLMs, form recognizers) hallucinate. DocQA independently re-extracts and cross-verifies:

| Problem | DocQA Catch | |---------|-------------| | "Invoice total: $1,296" (actual: $1,269) | ✅ Amount mismatch | | "Date: 2024-03-15" (actual: 2024-03-51) | ✅ Date format invalid | | "Tax: $96, Subtotal: $1,200, Total: $1,394" | ✅ Arithmetic mismatch | | LLM invents a line item not in the PDF | ✅ Unreported field detected |

vs. Competitors

| Feature | docqa-mcp | PDF Extraction MCP | Advanced OCR MCP | Mistral OCR MCP | |---------|-----------|-------------------|-------------------|-----------------| | Cross-extraction verification | ✅ | ❌ | ❌ | ❌ | | Hallucination detection | ✅ | ❌ | ❌ | ❌ | | Arithmetic validation | ✅ | ❌ | ❌ | ❌ | | Gate mode for pipelines | ✅ | ❌ | ❌ | ❌ | | PDF extraction | ✅ | ✅ | ❌ | ✅ | | OCR | ✅ | ❌ | ✅ | ✅ | | Price per doc | $0.05-0.50 | varies | varies | varies |

API Base URL

Default: https://api.agentsconsultants.com

Override: OPENCLAW_API_URL=https://your-instance.com

License

MIT