paperless-tax-mcp

v0.2.1
paperless-tax-mcp Checked 4 days ago Published 4 months ago

Unofficial MCP server and CLI for paperless.tax, the Israeli bookkeeping platform

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

whoami

Fetch account context from `users/get/params`. Confirmed endpoint. Use this first — it is the cheapest check that the configured token is actually accepted.

list_documents

List documents via `POST documents/get/bydate`. Confirmed against the live API. Periods are YYMM strings, NOT ISO dates — pass 2506 for June 2025. Both are optional and default to the app's own unbounded range (1001..2912), which returns the entire account history in one response: there is no pagination, and the records are complete, so do NOT follow up with get_document for each one. Amounts are integer agorot (iAmount 10341 = ₪103.41).

ParameterTypeDescription
doc_typeintegeriDocType filter: 1 expense, 2 income, 3 other. Applied client-side
period_endstringYYMM. Default 2912
period_startstringYYMM, e.g. 2506. Also accepts YYYY-MM-DD or YYYY-MM. Default 1001

get_document

Fetch one document via `GET documents/get/document/{id}`. Returns exactly the same fields as list_documents, so this is for spot checks — not for looping over a list.

ParameterTypeDescription
doc_id *stringDocument id (the `id`/`sID` field)

get_download_url

Resolve a document to its PDF via `POST documents/get/downloadurl`. Returns a presigned S3 URL valid for 2 hours. Do not send an Authorization header when fetching it — the signature does not cover one. This PDF is the document itself; the aDocURLs/sDocURLEdit fields in a listing are lossy JPEG page renders capped at 1000px. Records with nothing scanned against them have no PDF and this call fails.

ParameterTypeDescription
doc_id *stringDocument id
englishbooleanbIsEng — request the _eng.pdf variant

pending_documents

List uploaded-but-unfiled documents via `GET documents/get/pending/{sUserID}`.

raw_request

Call an arbitrary endpoint — the escape hatch for mapping unknown surface. `path` is relative to the API base and MUST include the controller prefix (e.g. `documents/get/searchdp`, not `searchdp`); root-level paths return 404. Prefer a named tool where one exists. Pass sUserID as the literal "auto" to have it filled in. A 503 carrying NotImplementedException means the route exists but the feature does not, so retrying will not help.

ParameterTypeDescription
method *stringGET or POST
path *stringPath relative to https://api.paperless.tax/
bodystringJSON request body as a string