This release is a pre-release and may not be stable for production use.
Paperless MCP
Paperless-NGX over MCP: search, read, upload and tag documents; manage correspondents and types.
Documentation | Config wizard | PyPI | Docker
This server gives an MCP client (Claude Desktop, Claude Code, claude.ai or any other) the API of an existing Paperless-NGX instance: one tool per Paperless operation, with the instance's own permissions. It adds no document store and no workflow of its own; what a task does with the tools is up to the model.
- Documents: full-text and filtered search, metadata, notes, history, thumbnails, and the OCR text in bounded sections.
- Organising: create, change, delete and bulk-edit tags, correspondents, document types and custom fields, and bulk operations on documents.
- Files: upload documents for Paperless to consume and wait on the task; over HTTP, one-time transfer links move whole files outside the model's context.
- The instance: statistics, saved views, storage paths, share links, background tasks and the installed and newest Paperless versions.
With the server connected, a client can handle requests such as:
- "Find last quarter's invoices from ACME." The model searches with a correspondent filter, then reads each match's text.
- "Tag these three documents as 'reviewed' and move them to the Accounting correspondent." One bulk edit.
- "Upload this PDF and wait until OCR finishes." An upload, then a wait on its consume task, so the answer comes once the document is indexed.
- "What changed on document 4213 in the last week?" The document's audit log.
Does it fit?
What the server can reach, what it changes and who gets in is set out in the security model; the block below says who it serves and where it stops.
- For: people who already keep their documents in Paperless-NGX and want an MCP client to search, read, file and organise them.
- Reaches: one Paperless-NGX instance over its REST API, with one API token; the security model lists what that token lets the tools read and change.
- Limits: the tools can do only what the token's Paperless user may do. They don't administer Paperless (users, mail rules, workflows), and the text they read is Paperless's own OCR.
Quick start
Pick the client you use. Each line installs the released version; the Get started tutorials carry on from there.
Claude Desktop. Download the .mcpb bundle from the releases page and open it with Claude Desktop (or Settings › Extensions › Advanced settings › Install Extension…). Claude Desktop asks for the required settings itself. Tutorial.
Claude Code. Two commands inside Claude Code; the second asks for a scope. Tutorial.
/plugin marketplace add pvliesdonk/claude-plugins
/plugin install paperless-mcp@pvliesdonk
A client that runs a command (stdio). To register it in Claude Code, see the Claude Code tutorial.
uv tool install "pvliesdonk-paperless-mcp"
paperless-mcp serve
A server for remote clients (streamable HTTP). A remote server connects the clients.
docker run --rm -p 8000:8000 --env-file .env ghcr.io/pvliesdonk/paperless-mcp:latest
A compose.yml ships at the repository root and runs as-is: copy .env.example to .env, then docker compose up -d. Deploy covers authentication, OIDC, a reverse proxy and system packages (.deb/.rpm on the releases page). The server answers /health and /health/ready outside the MCP mount, and its get_server_info tool reports the running version.
uv tool install "pvliesdonk-paperless-mcp[debug]"addsdebugpy, for attaching a debugger to a running server.
Configuration
Everything is configured through environment variables with the PAPERLESS_MCP_ prefix. The ones most installs set:
| Variable | Default | Required | Description |
|---|---|---|---|
PAPERLESS_MCP_PAPERLESS_URL |
(none) | Yes | Base URL of the Paperless-NGX REST API, without a trailing slash. |
PAPERLESS_MCP_API_TOKEN |
(none) | Yes | Paperless service-account token used for outbound API requests. |
PAPERLESS_MCP_PAPERLESS_PUBLIC_URL |
(none) | No | Public Paperless UI URL for user-visible links; defaults to PAPERLESS_URL. |
Every variable the server reads, the shared ones included, is in the configuration reference; .env.example lists the same surface in copy-paste form, and the config wizard writes one for your deployment.
Documentation
- Security model: what the server can reach, what it changes and who gets in.
- Get started: a first success with your client.
- Deploy: Docker, authentication, OIDC, reverse proxy.
- Use: the features, for real tasks.
- Reference: configuration, tools, resources, prompts, command line.
- Upgrade: release channels, and what an upgrade changes for your clients and your data.
- Contribute: local development, secrets, where a fix belongs;
CONTRIBUTING.mdandSECURITY.mdat the root.
Design decisions
- Read-only deployments use tool visibility, not a domain switch. Set
PAPERLESS_MCP_TOOLS_DENY(orPAPERLESS_MCP_TOOLS_ALLOW) to hide the mutating tools, includingcreate_upload_linkwhen transfers are enabled. The template applies visibility last inmake_server, so hidden tools leavetools/listand are rejected ontools/call. Clients cannot invoke a write that will be refused, and the rule lives in one place for every server built on this template. - HTTP layer retries idempotent reads only.
PAPERLESS_MCP_HTTP_RETRIESapplies to GETs on 5xx/network errors; writes never retry automatically, to avoid double-applying bulk edits or uploads. - Tool icons come from
Lucide. Every tool carries aLucideicon hint so MCP clients that render icons (Claude Desktop) get a coherent visual surface. Seesrc/paperless_mcp/tools/_icons.py. - Paperless API compatibility: requests prefer payload version 10, with automatic version 9 fallback for Paperless 2.x after an explicit version rejection. Tasks include structured results and timing data while retaining the legacy fields. Saved-view visibility flags can now be
null; Python consumers must handle that value. See task tools. - Models accept unknown upstream fields.
Pydanticmodels use lenient validation for list-endpoint responses so newer Paperless-NGX versions do not break the client (theDocument.some_future_paperless_fieldtest pins this behaviour). - No prompts ship in v1.
prompts.pyis intentionally empty; prompts land as concrete user-workflow patterns emerge in practice.
Links
- Documentation and its llms.txt
- FastMCP and fastmcp-pvl-core, which this server is built on
- fastmcp-server-template, which generated this repository
Metadata
Release files for pvliesdonk-paperless-mcp 4.0.0rc0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pvliesdonk_paperless_mcp-4.0.0rc0.tar.gz | 967.5 kB | With provenance | Details for pvliesdonk_paperless_mcp-4.0.0rc0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pvliesdonk_paperless_mcp-4.0.0rc0-py3-none-any.whl | Python 3 | none | any | Details for pvliesdonk_paperless_mcp-4.0.0rc0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / pvliesdonk_paperless_mcp-4.0.0rc0.tar.gz
| Download URL | pvliesdonk_paperless_mcp-4.0.0rc0.tar.gz |
|---|---|
| Size | 967.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0664ddf38fb69f1ae01604c3d2b1886dd349b0320ec27910a66e48ff336852fc
|
|
BLAKE2b-256 checksum How to use checksums |
fdf066b1782d8d943a22970c6ec01585b35c4661f45bb4735563e7c05e700cc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logRelease files / pvliesdonk_paperless_mcp-4.0.0rc0-py3-none-any.whl
| Download URL | pvliesdonk_paperless_mcp-4.0.0rc0-py3-none-any.whl |
|---|---|
| Size | 110.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a970ed6d0e4cf609ae58fc2ac6964d27f037ea3640365f38abd9ca61c8711ddb
|
|
BLAKE2b-256 checksum How to use checksums |
c80067ae39a71db63d49d8917ffc5695dbb7c6472e7fe364f70f18d2e5de859f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logSecurity for pvliesdonk-paperless-mcp 4.0.0rc0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pvliesdonk_paperless_mcp-4.0.0rc0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.