wiseocr-mcp

v0.1.0
wiseocr-mcp Checked 1 day ago Published 1 month ago

MCP server for WiseOCR: turn receipts and invoices (images, PDFs, URLs or plain text) into structured JSON

Turn receipts and invoices into structured JSON (merchant, date, totals, taxes, line items) from Claude Desktop, Claude Code, Cursor or any other MCP client. Runs locally, so it can read files and whole folders straight from your disk. Each page costs 1 credit. Documents that are not receipts or invoices are rejected and cost nothing. 1. Create an API key at wiseocr.com/dashboard/api-keys. 2. Add the server to your MCP client.

Summary extracted from the README.

WiseOCR MCP server

Turn receipts and invoices into structured JSON (merchant, date, totals, taxes, line items) from Claude Desktop, Claude Code, Cursor or any other MCP client. Runs locally, so it can read files and whole folders straight from your disk.

Tools

Tool Input Use it for
extract_receipt local file path or public URL one photo, scan or PDF (JPG, PNG, WEBP, GIF, BMP, TIFF, PDF up to 4 MB, .txt)
extract_receipt_from_text receipt text e-mail receipts, order confirmations, text from a PDF with a text layer, pasted text — no OCR needed
extract_receipts_batch files and/or folders, outputFile (.csv or .json, required above 10 documents) a whole folder of receipts at once (up to 100 documents per call), saved straight to a new CSV or JSON file (existing files are never overwritten)
get_account — account e-mail and remaining credits (free)

Each page costs 1 credit. Documents that are not receipts or invoices are rejected and cost nothing.

Setup

  1. Create an API key at wiseocr.com/dashboard/api-keys.
  2. Add the server to your MCP client.

Claude Code

claude mcp add wiseocr --env WISEOCR_API_KEY=your-api-key -- npx -y wiseocr-mcp

Claude Desktop, Cursor and others (claude_desktop_config.json, .cursor/mcp.json, …)

{
  "mcpServers": {
    "wiseocr": {
      "command": "npx",
      "args": ["-y", "wiseocr-mcp"],
      "env": {"WISEOCR_API_KEY": "your-api-key"}
    }
  }
}

Requires Node.js 20 or newer.

Example prompts

  • "Extract every receipt in ~/Documents/receipts/october and put them in a CSV with date, merchant, total and VAT."
  • "Find my Uber receipts in Gmail from last month and turn them into JSON." (with a Gmail MCP server connected)
  • "How many WiseOCR credits do I have left?"

Configuration

Variable Default
WISEOCR_API_KEY — required
WISEOCR_API_URL https://wiseocr.com/api/external/v1 point at another deployment, e.g. http://localhost:3000/api/external/v1