paperless-tax-mcp
v0.2.1Unofficial 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).
| Parameter | Type | Description |
|---|---|---|
doc_type | integer | iDocType filter: 1 expense, 2 income, 3 other. Applied client-side |
period_end | string | YYMM. Default 2912 |
period_start | string | YYMM, 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.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | Document 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.
| Parameter | Type | Description |
|---|---|---|
doc_id * | string | Document id |
english | boolean | bIsEng — 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.
| Parameter | Type | Description |
|---|---|---|
method * | string | GET or POST |
path * | string | Path relative to https://api.paperless.tax/ |
body | string | JSON request body as a string |