post_document
Upload a new document to Paperless-NGX with optional metadata such as title, correspondent, type, tags, and custom fields. Provide base64 content or a server file path.
Instructions
Upload a new document to Paperless-NGX with optional metadata like title, correspondent, document type, tags, and custom fields. Provide either 'file' (base64-encoded content) or 'file_path' (absolute path to a file on the server's filesystem). Using file_path avoids base64 encoding overhead for large files. SECURITY: When using file_path, set PAPERLESS_MCP_UPLOAD_PATHS environment variable to restrict uploads to specific directories (colon-separated paths).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Base64-encoded file content. Either 'file' or 'file_path' must be provided. | |
| tags | No | ||
| title | No | ||
| created | No | ||
| filename | No | Filename for the uploaded document. Required when using 'file', optional when using 'file_path' (defaults to the basename of the path). | |
| file_path | No | Absolute path to a file on the server's filesystem. Either 'file' or 'file_path' must be provided. The filename is derived from the path unless 'filename' is also specified. For security, configure PAPERLESS_MCP_UPLOAD_PATHS to restrict allowed directories. | |
| storage_path | No | ||
| correspondent | No | ||
| custom_fields | No | ||
| document_type | No | ||
| archive_serial_number | No |