paperless-ngx-mcp
Allows interaction with a Paperless-NGX instance, providing tools to manage documents, tags, correspondents, document types, custom fields, storage paths, saved views, share links, workflows, mail accounts/rules, notes, trash, and tasks.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@paperless-ngx-mcp list documents without tags in my inbox"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
paperless-ngx-mcp
A Model Context Protocol server for Paperless-NGX. Exposes the full Paperless-NGX REST API to AI assistants — documents, tags, correspondents, document types, custom fields, storage paths, saved views, share links and bundles, workflows, mail accounts and rules, document versions, notes, trash, and tasks.

Why this one?
Complete, and it stays that way. A CI test checks every endpoint in Paperless's
/api/schema/against the tools here and fails when upstream adds one that is neither wrapped nor deliberately skipped.Tested against real Paperless. The end-to-end suite runs the tools against a live Paperless-ngx 3.2.1 container, not mocks.
Asks before it breaks things. Every
delete_*tool,empty_trash,merge_documents_as_versionsand bulkdeleterequireconfirm: true; bulk edits across "all matching documents" refuse filters Paperless would silently ignore; and thetriage_inboxprompt proposes changes and waits for your go-ahead before writing anything.Easy to allowlist. Verb-first tool names (
list_*,get_*,delete_*, …) group into one permission wildcard each.Install it your way:
npx, a Docker image, a one-click Claude Desktop extension, or the official MCP Registry.
Related MCP server: Paperless MCP
Compatibility
Targets Paperless-ngx 3.2 (tested against 3.2.1). Older Paperless versions are not supported — use paperless-ngx-mcp@3.1.1 for Paperless 2.x. The package major version tracks the Paperless-ngx major it targets; there are no 1.x or 2.x releases.
Quick Start
The server is published to npm as paperless-ngx-mcp. You can run it with npx — no clone or build required.
Claude Code
claude mcp add paperless --scope user \
--env PAPERLESS_URL=https://your-paperless-instance \
--env PAPERLESS_API_KEY=your-api-token \
-- npx -y paperless-ngx-mcpDrop --scope user to install for the current project only. See claude mcp add --help for more options.
Codex CLI
codex mcp add paperless \
--env PAPERLESS_URL=https://your-paperless-instance \
--env PAPERLESS_API_KEY=your-api-token \
-- npx -y paperless-ngx-mcpThis writes the entry to ~/.codex/config.toml.
Claude Desktop (extension)
Download paperless-ngx-mcp.mcpb from the latest release and double-click it, or install it from Settings → Extensions. Claude Desktop asks for your Paperless URL and API token.
Claude Desktop, Cursor, Cline, and other MCP clients
The buttons install placeholder values; replace PAPERLESS_URL and PAPERLESS_API_KEY afterwards. Or add this to your client's MCP config file (e.g. claude_desktop_config.json, ~/.cursor/mcp.json, ~/.config/cline/mcp.json):
{
"mcpServers": {
"paperless": {
"command": "npx",
"args": ["-y", "paperless-ngx-mcp"],
"env": {
"PAPERLESS_URL": "https://your-paperless-instance",
"PAPERLESS_API_KEY": "your-api-token",
"PAPERLESS_PUBLIC_URL": "https://your-public-domain"
}
}
}
}Docker
A multi-arch image (amd64, arm64) is published to ghcr.io/cubinet-code/paperless-ngx-mcp. As a stdio server in any MCP client config:
{
"mcpServers": {
"paperless": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "PAPERLESS_URL", "-e", "PAPERLESS_API_KEY", "ghcr.io/cubinet-code/paperless-ngx-mcp"],
"env": {
"PAPERLESS_URL": "https://your-paperless-instance",
"PAPERLESS_API_KEY": "your-api-token"
}
}
}
}Or as a long-running Streamable HTTP server. It has no authentication, so keep it off untrusted networks:
docker run -d -p 127.0.0.1:3000:3000 \
-e PAPERLESS_URL=https://your-paperless-instance \
-e PAPERLESS_API_KEY=your-api-token \
ghcr.io/cubinet-code/paperless-ngx-mcp --http --port 3000Get your Paperless-NGX API token
Log into your Paperless-NGX instance.
Click your username (top right) → My Profile.
Click the circular arrow button to generate a new token.
Configuration
Variable | Required | Purpose |
| yes | Base URL the MCP server uses to talk to Paperless-NGX. |
| yes | API token (see above). |
| no | Public URL the assistant uses when constructing browser links to documents. Falls back to |
CLI flags (--baseUrl, --token, --publicUrl, --http, --port, plus the HTTP session limits) take precedence over environment variables.
Example Usage
Things you can ask Claude (or any MCP-aware assistant):
"Show me all documents tagged as 'Invoice'"
"Search for documents containing 'tax return'"
"Create a new tag called 'Receipts' with color #FF0000"
"Download document #123"
"List all correspondents"
"Create a new document type called 'Bank Statement'"
"Empty the trash"
"Show me pending consumption tasks"
"Move every document from correspondent 'ACME GmbH (mail)' to 'ACME GmbH'"
"Remove the password from document #55 and keep the unlocked file as a new version"
"Create a workflow that strips PDF passwords from uploaded bank statements"
"Which mail rule is creating a new correspondent for every sender?"
Available Tools
The server registers tools across twelve domains.
Documents
list_documents, get_document, get_document_content, search_documents, download_document, download_documents_bulk, get_document_thumbnail, get_document_preview, get_document_history, get_document_metadata, update_document, post_document, email_document, edit_documents_bulk, delete_document, search_autocomplete, get_document_suggestions, get_document_ai_suggestions, get_next_asn, upload_document_version, update_document_version, delete_document_version, merge_documents_as_versions
Tags
list_tags, get_tag, create_tag, update_tag, delete_tag, edit_tags_bulk
Correspondents
list_correspondents, get_correspondent, create_correspondent, update_correspondent, delete_correspondent, edit_correspondents_bulk
Document Types
list_document_types, get_document_type, create_document_type, update_document_type, delete_document_type, edit_document_types_bulk
Custom Fields
list_custom_fields, get_custom_field, create_custom_field, update_custom_field, delete_custom_field, edit_custom_fields_bulk
Storage Paths
list_storage_paths, get_storage_path, create_storage_path, update_storage_path, delete_storage_path, test_storage_path
Saved Views
list_saved_views, get_saved_view, create_saved_view, update_saved_view, delete_saved_view
Share Links
list_share_links, list_document_share_links, get_share_link, create_share_link, delete_share_link, list_share_link_bundles, get_share_link_bundle, create_share_link_bundle, rebuild_share_link_bundle, delete_share_link_bundle
Workflows
list_workflows, get_workflow, create_workflow, update_workflow, delete_workflow, list_workflow_actions, get_workflow_action, create_workflow_action, update_workflow_action, delete_workflow_action, list_workflow_triggers, get_workflow_trigger, create_workflow_trigger, update_workflow_trigger, delete_workflow_trigger
list_mail_accounts, get_mail_account, create_mail_account, update_mail_account, delete_mail_account, test_mail_account, process_mail_account, list_mail_rules, get_mail_rule, create_mail_rule, update_mail_rule, delete_mail_rule
System / Notes / Trash / Tasks
get_statistics, get_system_status, get_filing_options, list_document_notes, create_document_note, delete_document_note, list_trash, restore_from_trash, empty_trash, list_tasks, list_active_tasks, get_task_status_counts, get_task_summary, acknowledge_tasks
Tool naming convention (for permission allowlists)
Tool names are verb-first, so wildcard-based permission rules group cleanly by operation:
Wildcard | Covers |
| All list/index reads |
| All single-item reads |
| Full-text search and autocomplete |
|
|
| All create endpoints |
| Per-item PATCH updates |
| All bulk-edit operations across entity types |
| ⚠️ Destructive — system-wide deletes |
| Dry-run checks: |
|
|
|
|
| ⚠️ |
|
|
A read-only allowlist is therefore: list_*, get_*, search_*, download_*, test_*. Write access without destructive operations: add create_*, update_*, edit_*_bulk, upload_*, rebuild_*, post_document, email_document, restore_from_trash, acknowledge_tasks. delete_*, merge_*, process_* and empty_trash should require explicit user approval.
Prompts
The server also registers MCP prompts — reusable, parameterized instructions that surface as slash commands in clients like Claude Code (e.g. /mcp__paperless__triage_inbox).
triage_inbox
Walks the assistant through inbox triage: gather existing tags / correspondents / document types, propose metadata for each inbox document preferring existing items, present a confirmation table, and only apply changes after the user replies apply. New correspondents / types / tags are flagged (NEW) so you can veto creations before they happen.
Argument:
limit(optional, default25): maximum number of inbox documents to triage in one pass.
Notable tool details
edit_documents_bulk
Perform bulk operations on multiple documents.
Parameters:
Selection:
documents(array of IDs), orall: true+filterswith optionalexcluded_documents.filterstakes Paperless document filter names such ascorrespondent__id,tags__id__all,document_type__id,title_contentorquery— notlist_documents' tool arguments. Keys Paperless doesn't know are refused (it would otherwise ignore them and select every document), a preview query catches invalid values, and the result reportsmatched_documents.all: trueisn't supported formerge,split,delete_pages,edit_pdforremove_password.method: one ofset_correspondent,set_document_type,set_storage_path,add_tag,remove_tag,modify_tags,modify_custom_fields,delete,reprocess,set_permissions,merge,split,rotate,delete_pages,edit_pdf,remove_passwordMethod-specific parameters:
correspondent,document_type,storage_path,tag,add_tags,remove_tags,add_custom_fields,remove_custom_fields,set_permissions,owner,merge,metadata_document_id,delete_originals,pages,degrees,operations,update_document,include_metadata,password,delete_original,remote_ocr
// Add a tag to multiple documents
edit_documents_bulk({ documents: [1, 2, 3], method: "add_tag", tag: 5 })
// Merge documents
edit_documents_bulk({
documents: [6, 7, 8],
method: "merge",
metadata_document_id: 6,
delete_originals: true,
})
// Split a document into parts
edit_documents_bulk({ documents: [9], method: "split", pages: "[1-2,3-4,5]" })
// Modify multiple tags at once
edit_documents_bulk({
documents: [10, 11],
method: "modify_tags",
add_tags: [1, 2],
remove_tags: [3, 4],
})
// Move every document from a duplicate correspondent (12) to the canonical one (34)
edit_documents_bulk({ all: true, filters: { correspondent__id: 12 }, method: "set_correspondent", correspondent: 34 })
// Unlock a password-protected PDF, keeping the result as a new version
edit_documents_bulk({ documents: [55], method: "remove_password", password: "…", update_document: true })Paperless answers remove_password with OK even when it skips a document (its latest version isn't encrypted) or the password is wrong, so check the document's versions afterwards.
Workflows
A workflow — its triggers plus the actions they run — is what Paperless executes; create_workflow builds one in a single call. Standalone triggers and actions (create_workflow_trigger / create_workflow_action) do nothing on their own, and Paperless deletes unattached ones whenever any workflow is updated.
Action types: 1 assignment, 2 removal, 3 email, 4 webhook, 5 password removal, 6 move to trash, 7 remote OCR, 8 apply AI suggestions. Remote OCR needs a consumption-started trigger; AI suggestions need a trigger other than consumption-started.
update_workflowchanges only what you pass — but atriggersoractionslist replaces the whole list: entries with anidare updated, entries without one are created, and omitted ones are deleted.get_workflowoutput can be edited and sent straight back.PDF passwords of password-removal actions are always returned masked (
**********). Sending the masked list back keeps the stored passwords; a new action needs the real ones.Which filters a trigger checks depends on its type:
sources,filter_pathandfilter_mailruleonly work on consumption-started triggers (type 1); tag/correspondent/type/storage-path filters,filter_custom_field_queryand content matching only on added/updated/scheduled (types 2–4);filter_filenameon every type.
Document versions
upload_document_version adds a new file to an existing document (a signed copy, a corrected scan), and merge_documents_as_versions folds duplicate documents into one. Content, search, downloads and get_document_metadata follow the latest version, but page_count and the file names on get_document describe the original (root) version — check get_document_content to see whether the current version is readable.
Reading and editing single documents
get_filing_optionsreturns every tag, correspondent, document type, storage path and custom field (id + name) in one call — fetch it once before filing instead of guessing IDs.update_documenttakesadd_tags/remove_tagsto change single tags without touching the rest.tagsreplaces the whole list. Every tag change returnstag_changes: { added, removed }.list_documentstakesidsto read several known documents in one call, andfields(onget_documenttoo) to return only what you need, e.g.["title", "tags"].get_document_contenttakesmax_charsandoffsetfor long documents; the result then reportstotal_charsandtruncated. Paperless stores the text without page boundaries, so slices are by characters.search_documentssearches the full-text index (mode:queryfor advanced syntax — the default,textfor plain words,titlefor titles only). The index can lag behind;list_documentswithsearchmatches substrings straight from the database.
post_document
Upload a new document.
Parameters: file, filename, plus optional title, created, correspondent, document_type, storage_path, tags, archive_serial_number, custom_fields, poll, poll_timeout_seconds.
file accepts base64-encoded contents (the universal method — works for any deployment, since the bytes travel over the wire) or an absolute file path that the server reads from its own filesystem. The path option only works when the MCP server runs on the same machine as the file (local/stdio deployments); for a remote server, use base64.
Upload is asynchronous. By default the tool returns a task UUID (track it with list_tasks). Set poll: true to wait for the consumer to finish and get the result in one call — the new document_id on success, or the consumer error on failure. poll_timeout_seconds (default 30, max 300) caps the wait; raise it for large scans where OCR is slow.
Matching algorithms
create_tag, create_correspondent, create_document_type, and create_storage_path accept a matching_algorithm (0–6). Workflow triggers accept 0–5 (no Automatic):
Value | Meaning |
0 | None |
1 | Any word |
2 | All words |
3 | Exact match |
4 | Regular expression |
5 | Fuzzy word |
6 | Automatic |
Since Paperless-ngx 3.2, Automatic matching only assigns when the classifier is confident enough (PAPERLESS_CLASSIFIER_MATCH_THRESHOLD, default 0.6), and regular-expression matching gives up after PAPERLESS_MATCH_REGEX_TIMEOUT_SECONDS (default 0.1 s) — raise it if regex rules miss on long documents.
Running the MCP Server
stdio (default)
The default mode. The server communicates over stdio — that's what every MCP client config in the Quick Start uses. You usually never run this manually; the MCP client launches it for you.
If you do want to run it directly (e.g. for debugging):
# via env vars (recommended)
PAPERLESS_URL=http://localhost:8000 PAPERLESS_API_KEY=xxx npx -y paperless-ngx-mcp
# or via CLI flags
npx -y paperless-ngx-mcp --baseUrl http://localhost:8000 --token xxxHTTP (Streamable HTTP transport)
Use the --http flag to expose the server over HTTP. --port defaults to 3000.
npx -y paperless-ngx-mcp --baseUrl http://localhost:8000 --token xxx --http --port 3000The MCP API is available at
POST /mcpon the chosen port, backed byStreamableHTTPServerTransportin stateful mode.The first request (an
initializecall) creates a session and returns anMcp-Session-Idheader; subsequent requests must send that header back to reuse the same session. Transports are kept in an in-memoryMap, so this only works for single-instance deployments.GET /mcpstreams server-initiated messages for a session;DELETE /mcpterminates it and evicts it from the map. Both require a validMcp-Session-Idheader.A legacy
GET /sse+POST /messagesSSE transport is also exposed for clients that don't yet support the streamable transport.
Session limits
Every session holds its own MCP server instance (~3.5 MB), and the HTTP port has no authentication — so sessions are bounded:
Flag | Environment variable | Default | Purpose |
|
|
| Concurrent sessions allowed. Past this, |
|
|
| Evict a session after this long with no activity. |
A client that is actively connected — including one holding a GET /mcp stream open — is never evicted, no matter how long it stays idle. Only genuinely abandoned sessions are reclaimed.
Because sessions live in memory, --http only works for single-instance deployments. Do not expose the port to an untrusted network: there is no auth, and it binds all interfaces.
Error Handling
Tool calls return clear errors when:
PAPERLESS_URLorPAPERLESS_API_KEYis missing or wrongThe Paperless-NGX server is unreachable
The underlying API rejects the operation — Paperless's own message is passed through (e.g.
{"non_field_errors":["password not specified"]} (HTTP 400)), while HTML error pages are reduced to the status lineA Paperless call doesn't finish within 90 seconds (downloads are exempt); for a timed-out write the error warns that the change may already have been applied
Tool parameters fail validation
Development
You only need this section if you're modifying the server itself. End users should follow the Quick Start instead — there's no need to clone or build.
git clone https://github.com/cubinet-code/paperless-ngx-mcp.git
cd paperless-ngx-mcp
npm install # install dependencies
npm run start # run the server with tsx (no build step)
npm run build # compile TypeScript to build/
npm test # unit tests (node:test + tsx)
npm run inspect # build, then launch @modelcontextprotocol/inspectornpm run start accepts the same flags / env vars as the built binary.
End-to-end tests
E2E tests spin up a real Paperless-NGX container via Docker Compose:
npm run test:e2e:up # start the test stack (paperless + redis)
npm run test:e2e # run the e2e suite against it
npm run test:e2e:down # tear down and remove volumesRuns against ghcr.io/paperless-ngx/paperless-ngx:3.2.1.
Built with:
@modelcontextprotocol/sdk — MCP server SDK
zod — schema validation
axios — HTTP client (with keep-alive agents, a 60s idle timeout and a 90s per-request deadline)
API Documentation
This MCP server wraps endpoints from the Paperless-NGX REST API. See the official API documentation for details on the underlying behaviour and field semantics.
License
ISC. See LICENSE.
Available Tools
109 toolsacknowledge_tasksAIdempotent
Acknowledge/dismiss completed tasks to clear them from the task list.
Inputs: tasks (required).
create_correspondentA
Create a new correspondent with optional matching pattern and algorithm for automatic document assignment.
Inputs: name (required), match, is_insensitive, matching_algorithm.
create_custom_fieldA
Create a new custom field with a specified data type (string, url, date, boolean, integer, float, monetary, documentlink, or select). For monetary fields, values must use currency code prefix format (e.g., USD10.00, GBP123.45) — NOT trailing symbol format (e.g., 10.00$).
Inputs: name (required), data_type (required), extra_data.
create_document_noteA
Append a user-facing note (comment/annotation) to a document. Notes are separate from the document's searchable 'content' field — to change body text or other metadata fields, use update_document instead.
Inputs: id (required), note (required).
create_document_typeA
Create a new document type with optional matching pattern and algorithm for automatic document classification.
Inputs: name (required), match, is_insensitive, matching_algorithm.
create_mail_accountA
Create an IMAP account for Paperless to fetch mail from. Nothing is fetched until a mail rule uses the account (create_mail_rule). Check the connection first with test_mail_account.
Inputs: name (required), password (required), username (required), imap_port (required), +6 more.
create_mail_ruleB
Create a mail rule on a mail account: which folder and mails to consider, which attachments to import, and what to assign to the resulting documents.
Inputs: name (required), account (required), order, owner, +21 more.
create_saved_viewB
Create a new saved view with filter rules and sort configuration.
Inputs: name (required), sort_field, filter_rules, sort_reverse, +2 more.
create_storage_pathB
Create a new storage path with a name, path template, and optional matching rules.
Inputs: name (required), path (required), match, is_insensitive, +1 more.
create_tagB
Create a new tag with optional color, matching pattern, and matching algorithm for automatic document tagging.
Inputs: name (required), color, match, parent, +2 more.
create_workflowA
Create a complete workflow — the automation Paperless actually runs — with its triggers and actions in one call. The workflow runs its actions in order whenever ANY of its triggers matches. Example: strip PDF passwords from API uploads = triggers [{type: 2, sources: [2]}] + actions [{type: 5, passwords: ["secret"]}]. Triggers and actions are given as full objects (same fields as create_workflow_trigger / create_workflow_action). Paperless rejects a remote OCR action (7) without a consumption-started trigger (1), and an apply-AI-suggestions action (8) with only consumption-started triggers.
Inputs: name (required), actions (required), triggers (required), order, +1 more.
create_workflow_actionA
Create ONE standalone workflow action. On its own an action does nothing, and Paperless deletes actions that belong to no workflow whenever any workflow is updated. To build an automation, use create_workflow with the actions inline; to change an action inside a workflow, use update_workflow (or update_workflow_action with the action id from get_workflow).
Inputs: type (required), email, webhook, passwords, +32 more.
create_workflow_triggerA
Create ONE standalone workflow trigger. On its own a trigger does nothing, and Paperless deletes triggers that belong to no workflow whenever any workflow is updated. To build an automation, use create_workflow with the triggers inline; to change a trigger inside a workflow, use update_workflow (or update_workflow_trigger with the trigger id from get_workflow).
Inputs: type (required), match, sources, filter_path, +19 more.
delete_correspondentADestructive
⚠️ DESTRUCTIVE: Permanently delete a correspondent from the entire system. This will affect ALL documents that use this correspondent.
Inputs: id (required), confirm (required).
delete_custom_fieldADestructive
⚠️ DESTRUCTIVE: Permanently delete a custom field from the entire system. This will remove the field from ALL documents that use it.
Inputs: id (required), confirm (required).
delete_documentADestructive
Move a document to trash (soft-delete). The document remains recoverable until the trash is emptied or the retention window expires (~30 days). Use empty_trash for permanent deletion.
Inputs: id (required), confirm (required).
delete_document_noteBDestructive
⚠️ DESTRUCTIVE: Delete a note from a document.
Inputs: id (required), confirm (required), note_id (required).
delete_document_typeADestructive
⚠️ DESTRUCTIVE: Permanently delete a document type from the entire system. This will affect ALL documents that use this type.
Inputs: id (required), confirm (required).
delete_document_versionADestructive
⚠️ DESTRUCTIVE: Permanently delete one non-root version of a document. The root (original) version can't be deleted — delete the document instead.
Inputs: id (required), confirm (required), version_id (required).
delete_mail_accountADestructive
⚠️ DESTRUCTIVE: Permanently delete a mail account and stop fetching from it. Mail rules using it are deleted too. Already-imported documents are not affected.
Inputs: id (required), confirm (required).
delete_mail_ruleADestructive
⚠️ DESTRUCTIVE: Permanently delete a mail rule. Already-imported documents are not affected.
Inputs: id (required), confirm (required).
delete_saved_viewBDestructive
⚠️ DESTRUCTIVE: Permanently delete a saved view.
Inputs: id (required), confirm (required).
delete_storage_pathADestructive
⚠️ DESTRUCTIVE: Permanently delete a storage path from the entire system. This will affect ALL documents that use this storage path.
Inputs: id (required), confirm (required).
delete_tagADestructive
⚠️ DESTRUCTIVE: Permanently delete a tag from the entire system. This will remove the tag from ALL documents that use it. Use with extreme caution.
Inputs: id (required), confirm (required).
delete_workflowADestructive
⚠️ DESTRUCTIVE: Permanently delete a workflow. Documents it already processed are not changed.
Inputs: id (required), confirm (required).
delete_workflow_actionADestructive
⚠️ DESTRUCTIVE: Permanently delete a workflow action.
Inputs: id (required), confirm (required).
delete_workflow_triggerBDestructive
⚠️ DESTRUCTIVE: Permanently delete a workflow trigger.
Inputs: id (required), confirm (required).
download_documentBRead-only
Download a document file by ID. Returns the document as a base64-encoded resource.
Inputs: id (required), original.
download_documents_bulkBRead-only
Download multiple documents as a ZIP archive. Returns base64-encoded ZIP file.
Inputs: documents (required), content, compression, follow_formatting.
edit_correspondents_bulkADestructive
Manage correspondent objects themselves (permissions, delete). ⚠️ This does NOT assign correspondents to documents — use edit_documents_bulk with method 'set_correspondent' for that. WARNING: 'delete' permanently removes correspondents from the entire system.
Inputs: operation (required), correspondent_ids (required), merge, owner, +2 more.
edit_custom_fields_bulkADestructive
Manage custom field definitions themselves (permissions, delete). ⚠️ This does NOT modify custom field values on documents — use edit_documents_bulk with method 'modify_custom_fields' for that. WARNING: 'delete' permanently removes custom fields from the entire system.
Inputs: operation (required), custom_fields (required), confirm.
edit_documents_bulkADestructive
Apply ONE of a fixed set of operations to MANY documents at once. Methods: set_correspondent, set_document_type, set_storage_path, add_tag, remove_tag, modify_tags, modify_custom_fields, set_permissions, delete, reprocess, merge, split, rotate, delete_pages, edit_pdf, remove_password. For per-document field edits including title, content, created (date), archive_serial_number, or owner, use update_document instead — those fields are not editable here. Note: 'remove_tag' only removes the tag from the specified documents (tag stays in the system); 'delete_tag' permanently deletes the tag from the entire system. ⚠️ WARNING: method 'delete' permanently deletes documents and requires confirm=true. Select documents either by documents (IDs) or by all: true + filters — Paperless document filter names such as correspondent__id, tags__id__all, document_type__id, title_content, created__date__gte or query (full text); the filter form changes every matching document in one call, e.g. reassigning all documents from a duplicate correspondent before deleting it. Unknown filter keys are refused, and the result reports matched_documents. all=true is not supported for merge, split, delete_pages, edit_pdf or remove_password. Method remove_password strips a PDF password (needs password); with update_document=true the unlocked file is stored as a new version of the same document. Method reprocess accepts remote_ocr=true to use the configured remote OCR engine.
Inputs: method (required), all, tag, merge, +23 more.
edit_document_types_bulkADestructive
Manage document type objects themselves (permissions, delete). ⚠️ This does NOT assign document types to documents — use edit_documents_bulk with method 'set_document_type' for that. WARNING: 'delete' permanently removes document types from the entire system.
Inputs: operation (required), document_type_ids (required), merge, owner, +2 more.
edit_tags_bulkADestructive
Manage tag objects themselves (permissions, delete). ⚠️ This does NOT add/remove tags on documents — use edit_documents_bulk with method 'add_tag'/'remove_tag'/'modify_tags' for that. WARNING: 'delete' permanently removes tags from the entire system.
Inputs: tag_ids (required), operation (required), merge, owner, +2 more.
email_documentB
Send a document via email to one or more recipients.
Inputs: id (required), message (required), subject (required), addresses (required), +1 more.
empty_trashADestructive
⚠️ DESTRUCTIVE: Permanently delete documents from the trash, or empty the entire trash. This action is irreversible.
Inputs: confirm (required), documents.
get_correspondentARead-only
Get a specific correspondent by ID with full details including matching rules.
Inputs: id (required).
get_custom_fieldARead-only
Get a specific custom field by ID with full details including data type and extra configuration.
Inputs: id (required).
get_documentARead-only
Get a specific document by ID with full details including correspondent, document type, tags, and custom fields. Note: Document content is excluded from results by default. Use 'get_document_content' to retrieve content when needed. Documents can have several file versions (versions; manage them with upload_document_version / update_document_version / delete_document_version). Content (get_document_content) and get_document_metadata follow the LATEST version, but page_count, original_file_name and archived_file_name always describe the ROOT (first) version — e.g. after a password-protected PDF was unlocked into a new version, page_count stays null. Don't use page_count to judge whether a document is readable; check its content.
Inputs: id (required), fields.
get_document_ai_suggestionsARead-only
Get LLM-based suggestions for a document: a title, existing correspondents/tags/document types/storage paths (IDs), and suggested_* NAMES for objects that don't exist yet, plus dates. Requires AI to be enabled in Paperless — otherwise it fails with 'AI is required for this feature'. For classifier suggestions that work without AI, use get_document_suggestions.
Inputs: id (required).
get_document_contentARead-only
Get the text content of a specific document by ID. Use this when you need to read or analyze the actual document text. For long documents, read a slice with max_chars (and offset to continue) — e.g. max_chars: 2000 is usually enough to identify a document. Paperless stores the text without page boundaries, so slices are by characters, not pages.
Inputs: id (required), offset, max_chars.
get_document_historyARead-only
Get the change history / audit log for a document, showing who changed what and when.
Inputs: id (required), page, page_size.
get_document_metadataBRead-only
Get file metadata for a document including checksums, file sizes, and archival information.
Inputs: id (required).
get_document_previewBRead-only
Get a full-page preview image of a document. Returns the preview as a base64-encoded image resource.
Inputs: id (required).
get_document_suggestionsARead-only
Get classifier-based suggestions for a document's correspondent, tags, document type, storage path and dates. Returns IDs of EXISTING objects only. For LLM suggestions that can also propose a title and new objects, use get_document_ai_suggestions.
Inputs: id (required).
get_document_thumbnailARead-only
Get a document thumbnail (image preview) by ID. Returns the thumbnail as a base64-encoded WebP image resource.
Inputs: id (required).
get_document_typeARead-only
Get a specific document type by ID with full details including matching rules.
Inputs: id (required).
get_filing_optionsARead-only
Everything a document can be filed under, in one call: every tag, correspondent, document type, storage path and custom field (id + name; tags also is_inbox_tag, custom fields also data_type). Call this once before assigning metadata so you choose from the complete set instead of guessing, then use the ids with update_document or edit_documents_bulk. For matching rules or document counts use list_tags / list_correspondents / list_document_types / list_storage_paths.
Inputs: no named parameters.
get_mail_accountARead-only
Get one mail account by ID (password masked).
Inputs: id (required).
get_mail_ruleARead-only
Get one mail rule by ID.
Inputs: id (required).
get_next_asnARead-only
Get the next available Archive Serial Number (ASN) for document filing.
Inputs: no named parameters.
get_saved_viewARead-only
Get a specific saved view by ID with full details including filter rules.
Inputs: id (required).
get_statisticsARead-only
Get system statistics including document counts, inbox status, file type breakdown, and storage information.
Inputs: no named parameters.
get_storage_pathARead-only
Get a specific storage path by ID with full details including matching rules.
Inputs: id (required).
get_system_statusARead-only
Get Paperless server status: the Paperless-ngx version (pngx_version), install type, storage, and the health of the database, search index, classifier, task queue and last sanity check. Use this to find out which Paperless version you are talking to.
Inputs: no named parameters.
get_tagARead-only
Get a specific tag by ID with full details including matching rules.
Inputs: id (required).
get_task_status_countsARead-only
Get task counts: all, needs_attention (failed and unacknowledged), in_progress, completed.
Inputs: no named parameters.
get_task_summaryARead-only
Get per-task-type statistics over the last N days: totals, pending/success/failure counts, average duration and wait time, and last run/success/failure times.
Inputs: days, task_type.
get_workflowARead-only
Get one workflow by ID, including its full triggers and actions.
Inputs: id (required).
get_workflow_actionARead-only
Get a specific workflow action by ID.
Inputs: id (required).
get_workflow_triggerARead-only
Get a specific workflow trigger by ID.
Inputs: id (required).
list_active_tasksARead-only
List tasks that are pending or running right now (at most 50). For finished tasks use list_tasks.
Inputs: task_type.
list_correspondentsBRead-only
List all correspondents with optional filtering and pagination. Correspondents represent entities that send or receive documents.
Inputs: page, is_empty, ordering, page_size, +4 more.
list_custom_fieldsARead-only
List all custom fields. IMPORTANT: When a user query may refer to a custom field, you should fetch all custom fields up front (with a large enough page_size), cache them for the session, and search locally for matches by name before making further API calls. This reduces redundant requests and handles ambiguity efficiently.
Inputs: page, ordering, page_size, name__iexact, +3 more.
list_document_notesARead-only
List all notes for a specific document.
Inputs: id (required), page, page_size.
list_documentsARead-only
List and filter documents by fields such as title, correspondent, document type, tag, storage path, creation date, and more. IMPORTANT: For queries like 'the last 3 contributions' or when searching by tag, correspondent, document type, or storage path, you should FIRST look up the correct ID — get_filing_options returns every tag, correspondent, document type and storage path in one call (or use list_tags / list_correspondents / list_document_types / list_storage_paths) — and then use that ID as a filter here. Only use the 'search' argument for free-text search when no specific field applies. Using the correct ID filter will yield much more accurate results. Note: Document content is excluded from results by default. Use 'get_document_content' to retrieve content when needed. To find near-duplicates of one document use more_like_id; to list everything Paperless has flagged as a duplicate use has_duplicates=true.
Inputs: ids, tag, page, fields, +11 more.
list_document_typesARead-only
List all document types. IMPORTANT: When a user query may refer to a document type or tag, you should fetch all document types and all tags up front (get_filing_options returns both, plus correspondents and storage paths, in one call), cache them for the session, and search locally for matches by name or slug before making further API calls. This reduces redundant requests and handles ambiguity between tags and document types efficiently.
Inputs: page, is_empty, ordering, page_size, +4 more.
list_mail_accountsARead-only
List the IMAP accounts Paperless fetches mail from. Passwords are always masked.
Inputs: page, page_size.
list_mail_rulesARead-only
List mail rules: which mails Paperless imports from which account, and how it assigns title, tags, correspondent and document type.
Inputs: page, page_size.
list_saved_viewsARead-only
List all saved views with optional pagination. Saved views store filter/sort configurations for quick access.
Inputs: page, page_size.
list_storage_pathsBRead-only
List all storage paths with optional filtering and pagination. Storage paths define where documents are stored on disk.
Inputs: page, ordering, page_size, name__iexact, +3 more.
list_tagsARead-only
List all tags. IMPORTANT: When a user query may refer to a tag or document type, you should fetch all tags and all document types up front (get_filing_options returns both, plus correspondents and storage paths, in one call), cache them for the session, and search locally for matches by name or slug before making further API calls. This reduces redundant requests and handles ambiguity between tags and document types efficiently.
Inputs: page, is_empty, ordering, page_size, +4 more.
list_tasksARead-only
List background tasks with their status, type, trigger source and results. Useful for monitoring document consumption and other async operations. Use the filters to narrow the list; limit sets how many are returned. For only pending/running tasks use list_active_tasks; for totals use get_task_status_counts or get_task_summary.
Inputs: limit, status, ordering, task_type, +2 more.
list_trashARead-only
List documents in the trash (soft-deleted documents). Document content is left out, as in list_documents.
Inputs: page, page_size.
list_workflow_actionsARead-only
List all workflow actions with optional pagination.
Inputs: page, page_size.
list_workflowsARead-only
List workflows (each with its nested triggers and actions) with optional pagination.
Inputs: page, page_size.
list_workflow_triggersARead-only
List all workflow triggers with optional pagination.
Inputs: page, page_size.
merge_documents_as_versionsADestructive
⚠️ Fold other documents into one document as its versions: each document in merge_documents stops existing as a separate document and becomes a version of root_document_id. Use it when the same paper arrived twice (e.g. a scan and a later emailed copy). Runs asynchronously.
Inputs: confirm (required), merge_documents (required), root_document_id (required), version_label.
post_documentA
Upload a new document file (PDF, image, etc.) to Paperless-NGX with optional metadata. Upload is asynchronous: by default returns a task UUID (use list_tasks to track consumer progress) — the actual document ID is assigned only after the consumer has processed the file. Set poll=true to wait for the consumer to finish and return the final result (the new document_id on success, or the consumer error on failure) in a single call. Optional metadata: title, created (date), correspondent, document_type, storage_path, tags, archive_serial_number, custom_fields.
Inputs: file (required), filename (required), poll, tags, +8 more.
process_mail_accountA
Fetch mail for one account now and run its rules, instead of waiting for the schedule. Runs in the background; see list_tasks with task_type mail_fetch.
Inputs: id (required).
restore_from_trashAIdempotent
Restore documents from the trash back to the system.
Inputs: documents (required).
search_autocompleteARead-only
Get search term autocomplete suggestions based on the document index.
Inputs: term (required), limit.
search_documentsARead-only
Ranked full-text search through Paperless's search index (content, title and metadata). mode 'query' (default) takes advanced syntax — AND/OR/NOT, "quoted phrases", field:value, wildcards*; 'text' takes plain words with no syntax; 'title' searches titles only. The index is updated in the background and can lag behind or miss documents: if you expect matches but get none, use list_documents with search, which scans the database directly. For filtering by tag, correspondent, type or date use list_documents. Content is excluded from results; use get_document_content.
Inputs: query (required), mode.
test_mail_accountARead-only
Test IMAP connection settings without saving them. Pass the full account fields. To test a SAVED account, pass its id together with the masked password exactly as get_mail_account returns it (all asterisks) — Paperless then uses the stored password (without id it would try the literal asterisks and report a login failure). Note: Paperless 3.2 answers an unreachable server or refused connection with a bare HTTP 500 rather than a message — treat a 500 as 'could not connect'.
Inputs: name (required), password (required), username (required), imap_port (required), +7 more.
test_storage_pathARead-only
Test a storage path template to see how it would resolve for documents. Useful for validating path templates before creating or updating storage paths.
Inputs: name (required), path (required), match, is_insensitive, +1 more.
update_correspondentAIdempotent
Update fields on ONE correspondent (PATCH — only fields you supply are changed). Editable fields: name, match (matching pattern), matching_algorithm, is_insensitive. To assign this correspondent to documents, use edit_documents_bulk with method 'set_correspondent' or update_document instead.
Inputs: id (required), name, match, is_insensitive, +1 more.
update_custom_fieldAIdempotent
Update fields on ONE custom field definition (PATCH — only fields you supply are changed). Editable fields: name, data_type, extra_data. ⚠️ Changing data_type on a field that already has values on documents may render those values invalid or unreadable — change data_type only on unused fields. To set a custom-field VALUE on a document, use update_document or edit_documents_bulk with method 'modify_custom_fields' instead.
Inputs: id (required), name, data_type, extra_data.
update_documentAIdempotent
Update fields on ONE document (PATCH — only fields you supply are changed). To change tags, prefer add_tags / remove_tags: they leave the other tags alone. tags REPLACES the whole list — any tag you leave out is removed. Every tag change returns tag_changes {added, removed}. Editable fields: title, correspondent, document_type, storage_path, tags, add_tags, remove_tags, content (raw searchable text), created (document date, YYYY-MM-DD), archive_serial_number, owner, custom_fields. For applying the same change to MANY documents, see edit_documents_bulk. To add a comment/annotation rather than change a field, see create_document_note.
Inputs: id (required), tags, owner, title, +9 more.
update_document_typeAIdempotent
Update fields on ONE document type (PATCH — only fields you supply are changed). Editable fields: name, match (matching pattern), matching_algorithm, is_insensitive. To assign this document type to documents, use edit_documents_bulk with method 'set_document_type' or update_document instead.
Inputs: id (required), name, match, is_insensitive, +1 more.
update_document_versionAIdempotent
Rename a version of a document (change its version_label). Version IDs are listed in get_document's versions.
Inputs: id (required), version_id (required), version_label (required).
update_mail_accountAIdempotent
Update fields on ONE mail account (PATCH — only fields you supply are changed). Omit password to keep the stored one.
Inputs: id (required), name, owner, is_token, +7 more.
update_mail_ruleAIdempotent
Update fields on ONE mail rule (PATCH — only fields you supply are changed). E.g. switch assign_correspondent_from to 4 to stop creating a correspondent per sender.
Inputs: id (required), name, order, owner, +22 more.
update_saved_viewAIdempotent
Update fields on ONE saved view (PATCH — only fields you supply are changed). Editable fields: name, show_on_dashboard, show_in_sidebar, sort_field, sort_reverse, filter_rules. Supplying filter_rules replaces the entire rule array (not a merge).
Inputs: id (required), name, sort_field, filter_rules, +3 more.
update_storage_pathAIdempotent
Update fields on ONE storage path (PATCH — only fields you supply are changed). Editable fields: name, path (path template), match (matching pattern), matching_algorithm, is_insensitive. To assign this storage path to documents, use edit_documents_bulk with method 'set_storage_path' or update_document instead.
Inputs: id (required), name, path, match, +2 more.
update_tagAIdempotent
Update fields on ONE tag (PATCH — only fields you supply are changed). Editable fields: name, color, match (matching pattern), matching_algorithm, is_insensitive, parent (parent tag ID for hierarchy). To add or remove this tag on documents, use edit_documents_bulk with method 'add_tag' / 'remove_tag' / 'modify_tags' instead.
Inputs: id (required), name, color, match, +3 more.
update_workflowAIdempotent
Update ONE workflow (PATCH). name/order/enabled change only when passed. ⚠️ triggers and actions, when passed, REPLACE the workflow's whole list: entries with an id update that existing item, entries without an id are created, and existing items you leave out are DELETED. To edit one action, call get_workflow first and send back the complete list with your change.
Inputs: id (required), name, order, actions, +2 more.
update_workflow_actionAIdempotent
Update fields on ONE workflow action (PATCH — only fields you supply are changed). Use get_workflow_action first to see its current shape. To change the actions of a whole workflow, see update_workflow.
Inputs: id (required), type, email, webhook, +33 more.
update_workflow_triggerAIdempotent
Update fields on ONE workflow trigger (PATCH — only fields you supply are changed). Use get_workflow_trigger first to see its current shape.
Inputs: id (required), type, match, sources, +20 more.
upload_document_versionA
Add a new file version to an EXISTING document instead of creating a new document — e.g. a corrected scan, a signed copy, or an unlocked PDF. The new file becomes the current version: content, search and downloads follow it, and earlier versions stay listed in the document's versions (see get_document). Processing is asynchronous like post_document; set poll=true to wait. To strip a PDF password you don't need to re-upload: use edit_documents_bulk method remove_password with update_document=true.
Inputs: id (required), file (required), filename (required), poll, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 109 tools
Most tools target distinct resource+action pairs and the descriptions go out of their way to disambiguate (e.g. bulk object edits vs. document edits, classifier vs. AI suggestions). However, with 109 tools there are large overlapping clusters that will still confuse selection: four task tools (list_tasks, list_active_tasks, get_task_status_counts, get_task_summary), three share-link listers, three document-version mutators, and multiple search/filter entry points (search_documents vs list_documents search vs search_autocomplete). The density of near-boundary tools keeps this from being high.
Overwhelmingly a verb_noun convention: list_/get_/create_/update_/delete_ across every resource, plus uniform patterns like edit_*_bulk and test_*/process_* for mail. Minor deviations (post_document instead of create_document, download_document/bulk, upload_document_version, get_next_asn) are readable but break strict predictability.
109 tools is far beyond any reasonable scope for a single server and lands in the extreme-mismatch band. Even with a broad domain (documents plus all metadata objects, workflows, mail, sharing, tasks), the surface is massively bloated and should be consolidated or split into sub-servers.
The surface covers the full Paperless-NGX lifecycle: documents (create/read/update/delete/trash/restore/versions/notes/history/preview/download/email), all metadata objects with CRUD and bulk operations, workflows with triggers/actions, mail accounts and rules, share links and bundles, tasks, saved views, statistics and system status. There are no obvious dead ends for the stated domain.
Maintenance
Related MCP Connectors
Connect AI assistants to Plain customer support data and workflows.
Enables AI assistants to retrieve event data and execute event management operations in Nunify.
Publish your API docs so AI assistants can look up endpoints and call your API correctly.
Send encrypted files and secrets, collect files and get documents signed, from your AI.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Paperless-NGX API servers, supporting document management, tagging, and metadata operations through a natural language interface.212 npm251ISC
- AlicenseCqualityBmaintenanceEnables searching, tagging, uploading, and reading documents in Paperless-NGX, with management of tags, correspondents, document types, and custom fields via MCP tools and resources.5062 PyPI1MIT
- AlicenseNot gradedqualityDmaintenanceEnables managing Paperless-NGX documents, tags, correspondents, and document types via natural language. Supports document searching, downloading, uploading, and bulk editing.ISC
- AlicenseNot gradedqualityDmaintenanceEnables Claude AI to interact with Paperless-NGX document management through natural language, offering 50 tools for full CRUD operations and management.MIT