paperless-mcp is an MCP (Model Context Protocol) server used to connect to a Paperless-NGX API server, enabling AI assistants to manage documents and related metadata.
Purpose
This server is designed to let AI assistants (such as Claude) interact with a Paperless-NGX instance via the MCP protocol to perform document management tasks, including queries, uploads, downloads, bulk operations, tag management, correspondent management, document type management, custom field management, and email rule management.
Main capabilities
- Document operations: List documents with pagination, full-text queries, get document details, download document files, get thumbnails, bulk operations (set correspondent, document type, storage path, add/remove tags, delete, reprocess, set permissions, merge, split, rotate, delete pages), upload documents (supports both Base64 and filesystem modes, file size limit 100MB), manage document notes (list, add, delete).
- Tag operations: Create new tags, with configurable color, match text, and matching algorithm.
- Storage path operations: List storage paths with pagination, supporting various filter parameters.
- Task operations: List Paperless consumer queue tasks (including failed upload tasks), mark tasks as acknowledged.
- Correspondent operations: Get all correspondents, create new correspondents.
- Document type operations: Get all document types, create new document types.
- Custom field operations: Get all custom fields, get a specific field, create, update, delete, bulk delete.
- Email operations: List email accounts (passwords masked), get a single account, manually trigger email processing, list/get/create/update/delete email rules (deletion requires confirmation).
Usage
- Obtain an API token: Log in to the Paperless-NGX instance, click the username in the upper right corner, select "My Profile", and click the circular arrow button to generate a new token.
- Add configuration in the MCP configuration file, supporting STDIO mode (recommended for local or CLI use) and HTTP mode (recommended for Docker or remote use).
- Replace the placeholders in the configuration: Paperless-NGX URL, API token, public domain (optional).
- Configure environment variables (such as PAPERLESS_MCP_UPLOAD_PATHS forto restrict filesystem upload paths).
- Once configured, you can manage Paperless-NGX documents through the AI assistant.
Use cases
- Query, upload, download, and manage documents in Paperless-NGX via natural language instructions.
- Batch-modify document metadata such as tags, correspondents, and document types.
- Manage mail rules to enable automatic email ingestion.
- Integrate with MCP-capable AI clients to implement automated document workflows.
Limitations
- Requires an accessible Paperless-NGX instance and a valid API token.
- File upload size is limited to 100MB.
- When uploading in filesystem mode, it is recommended to set the PAPERLESS_MCP_UPLOAD_PATHS environment variable to restrict accessible directories; otherwise, arbitrary files on the server may be uploaded.
- Some operations (such as deleting notes or deleting mail rules) require explicit confirmation.
- On Paperless-ngx 2.14.7, the task list filter parameters are ignored, and acknowledged tasks are not returned.
- Mail account passwords/tokens are redacted in all tool responses and will not be exposed.