dropscan-mcp

v0.1.1
io.github.bitterdev/dropscan-mcp Checked 21 hours ago Published 4 months ago

MCP server for the Dropscan postal mail scanning API: read scanned letters, act on mailings.

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

list_scanboxes

List all scanboxes on the account (GET /scanboxes). Read-only.

list_mailings

List mailings in a scanbox (GET /scanboxes/{id}/mailings). Read-only. Args: scanbox_id: Scanbox id (e.g. "12345"). current_status: Optional status filter. One of: received, scan_requested, scanned, destroy_requested, destroyed, forward_requested, forwarded. older_than: Optional mailing UUID cursor for pagination; returns mailings older than the given one.

ParameterTypeDescription
scanbox_id *string
current_status
older_than

get_mailing

Get one mailing with its details/extracted content. Read-only. GET /scanboxes/{scanbox_id}/mailings/{uuid}

ParameterTypeDescription
scanbox_id *string
uuid *string

get_mailing_pdf

Download a mailing's scanned PDF and save it to disk. Read-only. GET /scanboxes/{scanbox_id}/mailings/{uuid}/pdf Args: save_path: Absolute path to write the PDF to. Defaults to ~/Downloads/dropscan-<uuid>.pdf (or DROPSCAN_DOWNLOAD_DIR).

ParameterTypeDescription
scanbox_id *string
uuid *string
save_path

get_mailing_zip

Download a mailing's ZIP (individual PDFs) and save it. Read-only. GET /scanboxes/{scanbox_id}/mailings/{uuid}/zip

ParameterTypeDescription
scanbox_id *string
uuid *string
save_path

get_mailing_envelope

Download a mailing's envelope image (JPEG) and save it. Read-only. GET /scanboxes/{scanbox_id}/mailings/{uuid}/envelope

ParameterTypeDescription
scanbox_id *string
uuid *string
save_path

get_mailing_plaintext

Get OCR plaintext of a mailing (first 5 documents). Read-only. GET /scanboxes/{scanbox_id}/mailings/{uuid}/plaintext

ParameterTypeDescription
scanbox_id *string
uuid *string

list_recipients

List recipients configured for a scanbox. Read-only. GET /scanboxes/{scanbox_id}/recipients

ParameterTypeDescription
scanbox_id *string

get_recipient

Get one recipient of a scanbox. Read-only. GET /scanboxes/{scanbox_id}/recipients/{id}

ParameterTypeDescription
recipient_id *string
scanbox_id *string

get_forwarding_address

Get a forwarding address by id. Read-only. GET /forwarding_addresses/{id}

ParameterTypeDescription
address_id *string

get_shipment

Get a shipment (physical forwarding batch) by id. Read-only. GET /shipments/{id}

ParameterTypeDescription
shipment_id *string

list_webhook_rules

List all webhook rules on the account. Read-only. GET /webhook_rules

get_webhook_rule

Get one webhook rule by id. Read-only. GET /webhook_rules/{id}

ParameterTypeDescription
rule_id *string

request_mailing_action

Request a physical action on a mailing (scan / forward / destroy). ⚠️ AFFECTS THE REAL PRODUCTION ACCOUNT AND CANNOT BE UNDONE. "destroy" physically shreds the letter, it is gone for good. "forward" physically mails the letter to an address and incurs cost. Double-gated: requires DROPSCAN_ALLOW_WRITES=1 AND confirm=true. POST /scanboxes/{scanbox_id}/mailings/{mailing_uuid}/action_requests Args: action_type: One of "scan", "forward", "destroy". forwarding_address_id: Required when action_type="forward"; the id of a forwarding address (s…

ParameterTypeDescription
action_type *string
mailing_uuid *string
scanbox_id *string
confirmboolean
forwarding_address_id
forwarding_date

cancel_mailing_action

Cancel a pending action request on a mailing. ⚠️ Changes the real production account. Cancellation windows apply (scan: 10 min, destroy: 60 min, forward: before the requested date, Berlin time). Double-gated: requires DROPSCAN_ALLOW_WRITES=1 AND confirm=true. DELETE /scanboxes/{scanbox_id}/mailings/{mailing_uuid}/action_requests/{id}

ParameterTypeDescription
action_request_id *string
mailing_uuid *string
scanbox_id *string
confirmboolean

set_mailing_recipient

Assign a recipient to a mailing. ⚠️ Changes the real production account. Double-gated: requires DROPSCAN_ALLOW_WRITES=1 AND confirm=true. PUT /scanboxes/{scanbox_id}/mailings/{mailing_uuid}/recipient

ParameterTypeDescription
mailing_uuid *string
recipient_id *integer
scanbox_id *string
confirmboolean

create_recipient

Create a recipient on a scanbox. ⚠️ Changes the real production account. Double-gated: requires DROPSCAN_ALLOW_WRITES=1 AND confirm=true. POST /scanboxes/{scanbox_id}/recipients Args: type: "Person" or "Company". firstname, lastname: Required when type="Person". name: Required when type="Company".

ParameterTypeDescription
scanbox_id *string
type *string
confirmboolean
firstname
lastname
name

create_forwarding_address

Create a forwarding address (used as a forward target). ⚠️ Changes the real production account. Double-gated: requires DROPSCAN_ALLOW_WRITES=1 AND confirm=true. POST /forwarding_addresses Args: country_code: 2-3 char ISO country code (e.g. "DE"). zip_code: Postal code (sent as "zip" in the request body).

ParameterTypeDescription
city *string
country_code *string
firstname *string
lastname *string
number *string
street *string
zip_code *string
company
confirmboolean
info
state

create_webhook_rule

Create a webhook rule. ⚠️ Changes the real production account. Double-gated: requires DROPSCAN_ALLOW_WRITES=1 AND confirm=true. POST /webhook_rules Args: events: One or more of: mailing_received, scan_requested, mailing_scanned, mailing_archived, mailing_trashed, mailing_shredded, mailing_added_to_shipment, mailing_removed_from_shipment, shipment_sent, package_tracking_updated.

ParameterTypeDescription
events *array
url *string
authorization_header
confirmboolean

update_webhook_rule

Update a webhook rule. ⚠️ Changes the real production account. Double-gated: requires DROPSCAN_ALLOW_WRITES=1 AND confirm=true. PATCH /webhook_rules/{id}

ParameterTypeDescription
rule_id *string
authorization_header
confirmboolean
events
url

delete_webhook_rule

Delete a webhook rule. ⚠️ Changes the real production account and cannot be undone. Double-gated: requires DROPSCAN_ALLOW_WRITES=1 AND confirm=true. DELETE /webhook_rules/{id}

ParameterTypeDescription
rule_id *string
confirmboolean