Paperless MCP

io.github.pvliesdonk由 GitHub 帳號 pvliesdonk 發布v3.0.0更新於 Oct 24, 2026

Paperless-NGX over MCP: search, read, upload and tag documents; manage correspondents and types.

已驗證STDIO僅桌面效率與工作流檔案與儲存

概覽

AI 產生的概覽

將助理連接到 Paperless-NGX 執行個體,用來搜尋、讀取、上傳與標記文件,並管理通訊對象、文件類型與自訂欄位。

可以做什麼
搜尋與讀取文件:全文與篩選查詢、OCR 文字、中繼資料、縮圖與受限預覽,以及每份文件的稽核歷程與備註,以及儲存檢視、儲存路徑、分享連結、統計資訊、可等待的背景工作,以及 Paperless-NGX 上游版本檢查,以及上傳檔案並修改文件欄位,包括批次編輯,以及管理標籤、通訊對象、文件類型與自訂欄位,支援完整新增、修改、刪除與批次編輯,以及透過 HTTP 連結傳輸文件檔案與 OCR Markdown,讓檔案內容不進入模型上下文。
適用情境
適合文件存放在 Paperless-NGX、並希望助理找出發票等紀錄、摘要 OCR 內容、加上標籤與通訊對象,或上傳並建立新文件索引而不必離開對話的情境。
執行需求
以本機 stdio 程序執行(PyPI 套件可用 uvx 啟動,或使用 Docker 映像以 streamable HTTP 執行)。需要 PAPERLESS_MCP_PAPERLESS_URL(Paperless-NGX REST API 基礎位址)與 PAPERLESS_MCP_API_TOKEN(Paperless 服務帳號權杖),缺少任一項伺服器會拒絕啟動。檔案傳輸工具需要 PAPERLESS_MCP_BASE_URL。HTTP 部署可選用 OIDC 或 bearer 驗證。
安裝前請注意
API 權杖可存取該 Paperless 帳號的文件,建議使用專用服務帳號並限制權限。伺服器可上傳、修改與批次編輯文件及分類資料,且具備可刪除的新增修改刪除操作;若需唯讀使用,可用 PAPERLESS_MCP_TOOLS_DENY 隱藏寫入工具。OIDC 部署涉及 PAPERLESS_MCP_OIDC_CLIENT_SECRET 與 PAPERLESS_MCP_OIDC_JWT_SIGNING_KEY 等密鑰;未驗證的健康檢查路由設為 full 時可能揭露細節。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Paperless MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Paperless MCP

[CI] [Quality Gate Status] [Coverage] [Reliability Rating] [Security Rating] [PyPI] [Python] [License] [Docker] [Docs] [llms.txt] [Template]

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.

text
/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.

bash
uv tool install "pvliesdonk-paperless-mcp"paperless-mcp serve

A server for remote clients (streamable HTTP). A remote server connects the clients.

bash
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]" adds debugpy, 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:

VariableDefaultRequiredDescription
PAPERLESS_MCP_PAPERLESS_URL(none)YesBase URL of the Paperless-NGX REST API, without a trailing slash.
PAPERLESS_MCP_API_TOKEN(none)YesPaperless service-account token used for outbound API requests.
PAPERLESS_MCP_PAPERLESS_PUBLIC_URL(none)NoPublic 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.md and SECURITY.md at the root.

Design decisions

  • Read-only deployments use tool visibility, not a domain switch. Set PAPERLESS_MCP_TOOLS_DENY (or PAPERLESS_MCP_TOOLS_ALLOW) to hide the mutating tools, including create_upload_link when transfers are enabled. The template applies visibility last in make_server, so hidden tools leave tools/list and are rejected on tools/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_RETRIES applies 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 a Lucide icon hint so MCP clients that render icons (Claude Desktop) get a coherent visual surface. See src/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. Pydantic models use lenient validation for list-endpoint responses so newer Paperless-NGX versions do not break the client (the Document.some_future_paperless_field test pins this behaviour).
  • No prompts ship in v1. prompts.py is intentionally empty; prompts land as concrete user-workflow patterns emerge in practice.

Links

來源:README.md,提交 c3551f3

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

3
  1. v3.0.0最新Sep 21, 2026
  2. v2.1.0Sep 19, 2026
  3. v2.0.0Sep 17, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分