Model Context Protocol

Give Your AI Agent Document Superpowers

One MCP endpoint connects Claude, Cursor, and any MCP-compatible agent to AllPDFMagic: invoice extraction, bank statement parsing, GSTIN validation, reconciliation, and fraud checks — metered through your normal API key.

Connect in one command

Endpoint: https://api.allpdfmagic.com/mcp (Streamable HTTP)

Claude Code

claude mcp add --transport http allpdfmagic https://api.allpdfmagic.com/mcp \
  --header "Authorization: Bearer apm_live_YOUR_KEY"

Claude Desktop / other clients (via mcp-remote)

{
  "mcpServers": {
    "allpdfmagic": {
      "command": "npx",
      "args": ["mcp-remote", "https://api.allpdfmagic.com/mcp",
               "--header", "Authorization: Bearer apm_live_YOUR_KEY"]
    }
  }
}

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "allpdfmagic": {
      "url": "https://api.allpdfmagic.com/mcp",
      "headers": { "Authorization": "Bearer apm_live_YOUR_KEY" }
    }
  }
}

Available tools

ToolTierWhat it does
validate_gstinNo key neededFormat + check-digit validation for Indian GSTINs — catches typos and fabricated numbers
compress_pdfFreeCompress any PDF, get a download link
pdf_to_excelPremiumConvert tabular PDFs to Excel
extract_invoice_dataTeamInvoice → structured JSON (vendor, line items, GST taxes, totals)
parse_bank_statementDeveloperAny bank statement → categorized transactions + payment modes + summary
reconcile_documentsDeveloperMatch registers (e.g. purchases vs GSTR-2B) by GSTIN + invoice no + amount
detect_document_fraudDeveloperFabricated GSTINs, duplicate invoice numbers, duplicate files, amount anomalies

Files are passed as HTTPS URLs or base64 (max 15MB). Every call is a normal metered API call against your plan's quota — see pricing.

Try it without a key

The validate_gstin tool works with no API key — ask your agent:

"Validate this GSTIN: 27AAPFU0939F1ZV"
  • Format + check-digit verdict in one call
  • Free API key unlocks compression and 500 calls/month
  • Paid tiers unlock extraction, parsing, reconciliation, and fraud tools