paperless-mcp
Provides tools for interacting with a Paperless-ngx instance, including full-text document search, reading metadata and OCR text, finding passages in documents, listing tags/correspondents/document types, updating document metadata and tags, bulk editing, creating labels, and adding notes.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
paperless-mcp
A deliberately minimal MCP server for a personal Paperless-ngx instance: one ~250-line file and two dependencies (FastMCP and httpx).
Personal and unsupported. This is written to be small enough to read in one sitting and audit yourself. Fork it rather than depending on it. Issues and feature requests are unlikely to be acted on, and it won't be published to PyPI or MCP directories.
Why another one?
The existing Paperless MCP servers aim to cover the whole Paperless API (45–100+ tools). That's useful, but it's a lot of code to trust with sensitive documents. This one does only what an assistant needs day to day (find, read, file) and leaves administration to the Paperless UI.
Related MCP server: Paperless-NGX MCP Server
Tools
Tool | Kind | What it does |
| read | Full-text search plus filters by tag, correspondent, type and date range, using names. Returns metadata and a highlighted match, never OCR text. |
| read | Metadata, notes and OCR text: 4,000 characters by default, at most 20,000 per call, with an offset to read on. |
| read | Passages around each match of a word or phrase in one document, for specific questions about long documents. |
| read | Tags, correspondents or document types, with document counts. |
| write | Title, date, correspondent, type, add/remove tags. |
| write | The same tag/correspondent/type change on many documents. |
| write | New tag, correspondent or document type. |
| write | Add a note to a document. |
Write tools are registered only when PAPERLESS_MCP_READ_ONLY=false (it defaults to true).
There are no delete tools. Every tool carries MCP read-only/destructive annotations, so clients
can auto-approve reads and confirm writes.
Security model
Paperless enforces permissions. Run the server with the API token of a dedicated Paperless user (e.g.
claude) that has view permissions, and later change/add permissions, but no delete or admin rights. Note that Paperless hides documents owned by other users unless they're shared with this user, so grant it access to existing documents and use a workflow to share new ones.The HTTP endpoint requires a bearer token. The server refuses to start over HTTP without
PAPERLESS_MCP_AUTH_TOKEN.No internet access.
compose.ymlputs the server on aninternal: trueDocker network shared only with Paperless and a Tailscale sidecar, so it has nowhere to send data even if a dependency were compromised. It also runs as non-root, with a read-only filesystem and no Linux capabilities.Context-friendly by design. Search results never include OCR text, and document reads are capped and chunked.
Running it
Written for Paperless-ngx v3 (REST API v10). compose.yml assumes the Paperless
service is called webserver, as in the official compose files.
Create the Paperless user. In Settings → Users & Groups, add a user such as
claude: not superuser or staff, with view/add/change on documents, tags, correspondents and document types, view/add on notes, view on tasks (so bulk edits can report failures), and no delete permissions. Log in as it once and generate an API token.Share documents with it. Select your documents, open Permissions, add the user under Edit and tick Merge. Do the same for tags, correspondents and document types it should see. For new documents, add a workflow: trigger Document Added, action Assignment, edit permission for the user.
Let the server reach Paperless. It connects to
http://webserver:8000, so addwebservertoPAPERLESS_ALLOWED_HOSTSin Paperless's environment, or Paperless rejects the requests asDisallowedHost. SettingPAPERLESS_ALLOWED_HOSTSreplaces the listPAPERLESS_URLgives, so list your usual hostname too:PAPERLESS_ALLOWED_HOSTS=paperless.your-tailnet.ts.net,webserverAdd this repo and configure it. Clone it into the folder holding your Paperless compose file, then add the lines from
.env.exampleto the.envthere.COMPOSE_FILEmerges this repo'scompose.ymlinto the Paperless project, so plaindocker composecommands manage both and the clone needs no local edits. (include:won't work: it can't add a network towebserver.) The Tailscale auth key needs a tag listed undertagOwnersin your tailnet policy.cd ~/paperless && git clone https://github.com/dtbell91/paperless-mcpStart it.
docker compose up -d --build
The Tailscale sidecar serves it at https://paperless-mcp.<tailnet>.ts.net/mcp. For Claude Code:
claude mcp add --transport http paperless https://paperless-mcp.<tailnet>.ts.net/mcp \
--header "Authorization: Bearer <PAPERLESS_MCP_AUTH_TOKEN>"For local use without Docker, set MCP_TRANSPORT=stdio and run python server.py from your MCP client.
Configuration
Variable | Default | Purpose |
| required | Paperless base URL as the server reaches it |
| required | Paperless API token |
|
| Base URL for the document links shown to you ( |
|
| Paperless REST API version (10 is the default in Paperless-ngx v3) |
|
| Set to |
| — | Bearer token for the HTTP endpoint (required for HTTP) |
|
|
|
|
| HTTP port |
Limitations
Claude in the browser and the mobile apps connect from Anthropic's servers and need OAuth, which this doesn't do yet. FastMCP's OAuth providers make that a small change.
No upload tool: documents come in through Paperless's own email, app and consume-folder routes.
Development
pip install -r requirements.txt
python test_server.py # runs against a mock Paperless APIDependabot proposes dependency and base image updates weekly, and CI runs the tests and a Docker build.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only search and Markdown pages from the OpenPlanr docs, for coding agents.
Read-only: search and read The Agent Manifesto and the public pages of agentisallyouneed.dev.
Task management for people and AI agents, with scoped OAuth access to issues, projects, and docs.
Task management for people and AI agents, with scoped OAuth access to issues, projects, and docs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Paperless-NGX API servers, supporting document management, tagging, and metadata operations through a natural language interface.189 npm256ISC
- AlicenseNot gradedqualityDmaintenanceEnables managing Paperless-NGX documents, tags, correspondents, and document types via natural language. Supports document searching, downloading, uploading, and bulk editing.ISC
- FlicenseNot gradedqualityDmaintenanceEnables MCP clients to search and retrieve documents from a self-hosted Paperless-ngx instance, including full OCR'd text and metadata, with read-only access enforced via API tokens.-
- AlicenseAqualityDmaintenanceEnables AI assistants to search, inspect OCR content, download, upload, and manage documents in a Paperless-ngx archive through natural language.91MIT