Paperless MCP Server
Paperless-NGX over MCP: search, read, upload and tag documents; manage correspondents and types.
Paperless MCP scores 42 (Fair), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Search. GitHub shows 1 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
42 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 42 comes from
0 + 20 + 1 + 10 + 4 + 7 = 42. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 1 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "pvliesdonk-paperless-mcp": { "command": "uvx", "args": [ "pvliesdonk-paperless-mcp" ], "env": { "PAPERLESS_MCP_KV_STORE_URL": "file:///data/state", "PAPERLESS_MCP_TOOLS_ALLOW": "", "PAPERLESS_MCP_TOOLS_DENY": "", "PAPERLESS_MCP_SERVER_NAME": "", "PAPERLESS_MCP_INSTANCE_DESCRIPTION": "", "PAPERLESS_MCP_INSTRUCTIONS_EXTRA": "", "PAPERLESS_MCP_INSTRUCTIONS": "", "PAPERLESS_MCP_LOG_LEVEL": "INFO", "PAPERLESS_MCP_LOG_FORMAT": "", "PAPERLESS_MCP_PAPERLESS_URL": "", "PAPERLESS_MCP_API_TOKEN": "YOUR_PAPERLESS_MCP_API_TOKEN", "PAPERLESS_MCP_HTTP_TIMEOUT_SECONDS": "30.0", "PAPERLESS_MCP_HTTP_RETRIES": "2", "PAPERLESS_MCP_DEFAULT_PAGE_SIZE": "25", "PAPERLESS_MCP_PAPERLESS_PUBLIC_URL": "", "PAPERLESS_MCP_TRANSFER_TTL_DEFAULT_S": "3600.0", "PAPERLESS_MCP_TRANSFER_TTL_MAX_S": "86400.0", "PAPERLESS_MCP_TRANSFER_GRACE_TTL_S": "60.0", "PAPERLESS_MCP_TRANSFER_LEASE_S": "60.0", "PAPERLESS_MCP_TRANSFER_MAX_UPLOAD_BYTES": "104857600" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
PAPERLESS_MCP_KV_STORE_URL | Optional | Persistent-state backend URL shared by every pvl-core subsystem that needs state. `memory://` is in-process and lost on restart; `file:///path` persists on one server; `redis://`, `dynamodb://` and `mongodb://` each need their matching extra. When unset, defaults to `file:///data/state` (the volume family Docker images mount), or to `memory://` (with a warning) on a host where that directory is not usable. |
PAPERLESS_MCP_TOOLS_ALLOW | Optional | Comma-separated explicit tool names this instance exposes; every other tool is hidden from listings and cannot be invoked. Names matching no registered tool are inert. Mutually exclusive with `tools_deny`. Takes effect through `apply_tool_visibility`. |
PAPERLESS_MCP_TOOLS_DENY | Optional | Comma-separated explicit tool names hidden from this instance (absent from listings, cannot be invoked). Names matching no registered tool are inert. Mutually exclusive with `tools_allow`. Takes effect through `apply_tool_visibility`. |
PAPERLESS_MCP_SERVER_NAME | Optional | Rename this server instance; defaults to the project name. |
PAPERLESS_MCP_INSTANCE_DESCRIPTION | Optional | Concise routing context that distinguishes this deployment's material or responsibility. |
PAPERLESS_MCP_INSTRUCTIONS_EXTRA | Optional | Deployment-specific behavioral policy added to the generated MCP instructions. |
PAPERLESS_MCP_INSTRUCTIONS | Optional | Legacy: replaces all generated MCP instructions (deprecated; use _INSTANCE_DESCRIPTION for routing and _INSTRUCTIONS_EXTRA for policy). |
PAPERLESS_MCP_LOG_LEVEL | Optional | Log level for every logger in the process, FastMCP's included (DEBUG / INFO / WARNING / ERROR / CRITICAL). The -v CLI flag overrides to DEBUG. The unprefixed FASTMCP_LOG_LEVEL still works for one major version and logs a deprecation warning. |
PAPERLESS_MCP_LOG_FORMAT | Optional | Log rendering. rich is one colour event key=value line per record, for a terminal; json is one JSON object per record, for a collector. Unset picks rich when stderr is a terminal and json everywhere else, so a container or journald gets JSON with no configuration. |
PAPERLESS_MCP_PAPERLESS_URL | Optional | Base URL of the Paperless-NGX REST API, without a trailing slash. The server refuses to start without it. |
PAPERLESS_MCP_API_TOKENSecret | Optional | Paperless service-account token used for outbound API requests. The server refuses to start without it. |
PAPERLESS_MCP_HTTP_TIMEOUT_SECONDS | Optional | Per-request HTTP timeout in seconds. |
PAPERLESS_MCP_HTTP_RETRIES | Optional | Retries for idempotent requests after network errors or 5xx responses. |
PAPERLESS_MCP_DEFAULT_PAGE_SIZE | Optional | Default page size for list tools, from 1 through 100. |
PAPERLESS_MCP_PAPERLESS_PUBLIC_URL | Optional | Public Paperless UI URL for user-visible links; defaults to PAPERLESS_URL. |
PAPERLESS_MCP_TRANSFER_TTL_DEFAULT_S | Optional | Link lifetime in seconds when the caller requests no explicit TTL. |
PAPERLESS_MCP_TRANSFER_TTL_MAX_S | Optional | Ceiling in seconds a caller-requested link TTL is clamped to. |
PAPERLESS_MCP_TRANSFER_GRACE_TTL_S | Optional | Post-success grace window in seconds: a served token's TTL shrinks to this so a stalled transfer can retry within it. |
PAPERLESS_MCP_TRANSFER_LEASE_S | Optional | Crashed-handler reclaim window in seconds for an in-flight reservation. |
PAPERLESS_MCP_TRANSFER_MAX_UPLOAD_BYTES | Optional | Maximum size in bytes of a single upload. |
PAPERLESS_MCP_SHUTDOWN_GRACE_S | Optional | Seconds SIGTERM may spend draining in-flight requests before the HTTP server exits. Keep it at or below the termination grace period the orchestrator allows. `0` drops in-flight requests immediately. |
PAPERLESS_MCP_BASE_URL | Optional | Public base URL of the deployed server, for example `https://mcp.example.com`. Required for OIDC. Also the fallback source of the MCP Apps domain when `app_domain` is unset. |
PAPERLESS_MCP_BEARER_TOKENSecret | Optional | Single shared bearer token; enables bearer auth unless `bearer_tokens_file` is set, which takes precedence. |
PAPERLESS_MCP_OIDC_CONFIG_URL | Optional | OIDC discovery document URL, for example `https://auth.example.com/.well-known/openid-configuration`. |
PAPERLESS_MCP_OIDC_CLIENT_ID | Optional | OIDC client identifier registered with the provider. |
PAPERLESS_MCP_OIDC_CLIENT_SECRETSecret | Optional | OIDC client secret registered with the provider. |
PAPERLESS_MCP_OIDC_AUDIENCE | Optional | Expected `aud` claim; tokens issued for another audience are rejected. |
PAPERLESS_MCP_OIDC_REQUIRED_SCOPES | Optional | Scopes a caller must present, space- or comma-separated. Defaults to `openid` in oidc-proxy mode. |
PAPERLESS_MCP_OIDC_ADVERTISED_SCOPES | Optional | Scopes advertised to MCP clients in protected-resource metadata, space- or comma-separated. Overrides the default `openid offline_access`; `oidc_required_scopes` is always added on top. Set this when the registered client is not permitted `offline_access`, or to have clients request extra claim scopes (such as `groups`) without also requiring them in every token. |
PAPERLESS_MCP_OIDC_JWT_SIGNING_KEYSecret | Optional | Signing key for issued tokens; used in oidc-proxy mode only. When unset, the key is derived deterministically from `oidc_client_secret`, so tokens survive a restart. Rotating that secret then invalidates every issued token. Set this explicitly to decouple token validity from secret rotation. Generate with `openssl rand -hex 32`. |
PAPERLESS_MCP_OIDC_VERIFY_ACCESS_TOKEN | Optional | Validate the access token instead of the id token. |
PAPERLESS_MCP_KV_STORE_URL | Optional | Persistent-state backend URL shared by every pvl-core subsystem that needs state. `memory://` is in-process and lost on restart; `file:///path` persists on one server; `redis://`, `dynamodb://` and `mongodb://` each need their matching extra. When unset, defaults to `file:///data/state` (the volume family Docker images mount), or to `memory://` (with a warning) on a host where that directory is not usable. |
PAPERLESS_MCP_APP_DOMAIN | Optional | MCP Apps iframe domain, used for CSP sandboxing. Overrides the host derived from `base_url`. |
PAPERLESS_MCP_TOOLS_ALLOW | Optional | Comma-separated explicit tool names this instance exposes; every other tool is hidden from listings and cannot be invoked. Names matching no registered tool are inert. Mutually exclusive with `tools_deny`. Takes effect through `apply_tool_visibility`. |
PAPERLESS_MCP_TOOLS_DENY | Optional | Comma-separated explicit tool names hidden from this instance (absent from listings, cannot be invoked). Names matching no registered tool are inert. Mutually exclusive with `tools_allow`. Takes effect through `apply_tool_visibility`. |
PAPERLESS_MCP_AUTH_MODE | Optional | Explicit auth-mode override, accepting `remote` or `oidc-proxy` (case- and whitespace-insensitive). When unset the mode is auto-detected from which auth variables are set; the override exists because having all four OIDC variables set is ambiguous between those two modes. Other values are ignored with a warning. |
PAPERLESS_MCP_BEARER_TOKENS_FILE | Optional | Path to a TOML file mapping bearer tokens to subjects; overrides the single-token `bearer_token` mode. |
PAPERLESS_MCP_BEARER_DEFAULT_SUBJECT | Optional | Subject assigned to the single-token bearer mode; ignored when `bearer_tokens_file` is set, since mapped mode carries per-token subjects. |
PAPERLESS_MCP_SERVER_NAME | Optional | Rename this server instance; defaults to the project name. |
PAPERLESS_MCP_INSTANCE_DESCRIPTION | Optional | Concise routing context that distinguishes this deployment's material or responsibility. |
PAPERLESS_MCP_INSTRUCTIONS_EXTRA | Optional | Deployment-specific behavioral policy added to the generated MCP instructions. |
PAPERLESS_MCP_INSTRUCTIONS | Optional | Legacy: replaces all generated MCP instructions (deprecated; use _INSTANCE_DESCRIPTION for routing and _INSTRUCTIONS_EXTRA for policy). |
PAPERLESS_MCP_HTTP_PATH | Optional | Mount path for the MCP endpoint; the health routes derive their prefix from it. |
PAPERLESS_MCP_HEALTH_DETAIL | Optional | How much the unauthenticated /health and /health/ready bodies say: status, standard (adds name, version and per-check verdicts), or full (adds redacted reasons; trusted networks only). |
PUID | Optional | Run the server process as this UID; the container entrypoint reassigns ownership of writable paths to match. |
PGID | Optional | Run the server process as this GID; pair with PUID to match the owner of a mounted volume. |
PAPERLESS_MCP_LOG_LEVEL | Optional | Log level for every logger in the process, FastMCP's included (DEBUG / INFO / WARNING / ERROR / CRITICAL). The -v CLI flag overrides to DEBUG. The unprefixed FASTMCP_LOG_LEVEL still works for one major version and logs a deprecation warning. |
PAPERLESS_MCP_LOG_FORMAT | Optional | Log rendering. rich is one colour event key=value line per record, for a terminal; json is one JSON object per record, for a collector. Unset picks rich when stderr is a terminal and json everywhere else, so a container or journald gets JSON with no configuration. |
PAPERLESS_MCP_PAPERLESS_URL | Optional | Base URL of the Paperless-NGX REST API, without a trailing slash. The server refuses to start without it. |
PAPERLESS_MCP_API_TOKENSecret | Optional | Paperless service-account token used for outbound API requests. The server refuses to start without it. |
PAPERLESS_MCP_HTTP_TIMEOUT_SECONDS | Optional | Per-request HTTP timeout in seconds. |
PAPERLESS_MCP_HTTP_RETRIES | Optional | Retries for idempotent requests after network errors or 5xx responses. |
PAPERLESS_MCP_DEFAULT_PAGE_SIZE | Optional | Default page size for list tools, from 1 through 100. |
PAPERLESS_MCP_PAPERLESS_PUBLIC_URL | Optional | Public Paperless UI URL for user-visible links; defaults to PAPERLESS_URL. |
PAPERLESS_MCP_TRANSFER_TTL_DEFAULT_S | Optional | Link lifetime in seconds when the caller requests no explicit TTL. |
PAPERLESS_MCP_TRANSFER_TTL_MAX_S | Optional | Ceiling in seconds a caller-requested link TTL is clamped to. |
PAPERLESS_MCP_TRANSFER_GRACE_TTL_S | Optional | Post-success grace window in seconds: a served token's TTL shrinks to this so a stalled transfer can retry within it. |
PAPERLESS_MCP_TRANSFER_LEASE_S | Optional | Crashed-handler reclaim window in seconds for an in-flight reservation. |
PAPERLESS_MCP_TRANSFER_MAX_UPLOAD_BYTES | Optional | Maximum size in bytes of a single upload. |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
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
Frequently asked questions
What is Paperless MCP Server?
Paperless-NGX over MCP: search, read, upload and tag documents; manage correspondents and types.
How do I install Paperless MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Paperless MCP Server runs locally from the PyPI package pvliesdonk-paperless-mcp with the command uvx pvliesdonk-paperless-mcp.
Is Paperless MCP Server free and open source?
Yes. Paperless MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
How is Paperless MCP Server's trust score calculated?
Paperless MCP Server scores 42 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.