OrellBuehler/paperless-mcp
MCP server for Paperless-ngx — lets AI agents like Claude search, upload, tag, and organize your documents, with optional local semantic search
02a62215a79f@orellbuehler/paperless-mcp1.8.0 in package.jsonPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 26 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 1 place in the code registers tools whose names are computed at run time; how many tools that makes cannot be read from the code
Top risks in plain words
- HIGHTools
bulk_download_documents,extract_document_pages,upload_document,upload_document_versionread or write any file path by design: an agent steered by prompt injection can use them that way.
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it only the folder it needs
bulk_download_documents,extract_document_pages,upload_document,upload_document_versioncan read or write any file path. Mount a single project folder, read-only where you can. - Turn off the tools you do not use
Most MCP clients let you disable single tools. If you do not need
bulk_download_documents,extract_document_pages,upload_documentand 1 more, switch them off. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 126 tools, 5 prompts, 2 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
(name computed at run time), acknowledge_tasks, add_document_note, auto_classify_document, bulk_download_documents, bulk_edit_documents and 120 more(name computed at run time), acknowledge_tasks, add_document_note, auto_classify_document, bulk_download_documents, bulk_edit_documents and 120 moreNo tool was seen to: start other programs on the machine; read passwords, tokens or keys; read environment variables; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files126 tools · (name computed at run time), acknowledge_tasks, add_document_note +123
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (133: 126 tools, 5 prompts, 2 resources)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
bulk_download_documentstool Download several documents as a single zip archive written to diskFilesNetworkoutside textReads/writes files
Download several documents as a single zip archive written to disk
extract_document_pagestool Extract pages from a document's PDF into a new PDF written to disk. Processes the file locally; the document in Paperless is not modified.FilesNetworkoutside textReads/writes files
Extract pages from a document's PDF into a new PDF written to disk. Processes the file locally; the document in Paperless is not modified.
upload_documenttool Upload a document from a local file pathFilesNetworkoutside textReads/writes files
Upload a document from a local file path
upload_document_versiontool Upload a new file version of an existing document, keeping its metadata and history. Requires Paperless-ngx 3.0+.FilesNetworkoutside textReads/writes files
Upload a new file version of an existing document, keeping its metadata and history. Requires Paperless-ngx 3.0+.
cleanup_tagsprompt Find unused or near-duplicate tags and propose merges; nothing is deleted without confirmation
Find unused or near-duplicate tags and propose merges; nothing is deleted without confirmation
find_documentprompt Find a document from a free-form description using filters, full-text and semantic search
Find a document from a free-form description using filters, full-text and semantic search
monthly_reviewprompt Review a month's documents: overview, unclassified documents and action items
Review a month's documents: overview, unclassified documents and action items
tax_prepprompt Gather a year's tax-relevant documents and spot missing recurring ones (salary certificate, bank statements, ...)
Gather a year's tax-relevant documents and spot missing recurring ones (salary certificate, bank statements, ...)
triage_inboxprompt Classify inbox documents missing a correspondent, document type or tags; applies changes only after confirmation
Classify inbox documents missing a correspondent, document type or tags; applies changes only after confirmation
(name computed at run time)resource FilesNetworkoutside text
No description.
documentresource FilesNetworkoutside text
No description.
acknowledge_taskstool Dismiss background tasks from the tasks listFilesNetworkoutside text
Dismiss background tasks from the tasks list
add_document_notetool Add a note/comment to a documentFilesNetworkoutside text
Add a note/comment to a document
auto_classify_documenttool Get AI suggestions for a document and apply them in one step. Returns what was changed.FilesNetworkoutside text
Get AI suggestions for a document and apply them in one step. Returns what was changed.
bulk_edit_documentstool Perform bulk operations on multiple documents by ID. Methods and parameters: set_correspondent { correspondent: id | null }; set_document_type { document_type: FilesNetworkoutside text
Perform bulk operations on multiple documents by ID. Methods and parameters: set_correspondent { correspondent: id | null }; set_document_type { document_type: id | null }; set_storage_path { storage_path: id | null }; add_tag / remove_tag { tag: id }; modify_tags { add_tags: id[], remove_tags: id[] } (both required); modify_custom_fields { add_custom_fields: id[] | { id: value }, remove_custom_fields: id[] } (both required); set_permissions { set_permissions: { view, change } | null, owner?: id | null, merge?: boolean }; delete (moves to the trash); reprocess { remote_ocr?: boolean (3.1+) }; run_workflow { workflow: id, filter_documents?: boolean } (3.5+, see run_workflow); rotate { degrees }, merge, split { pages: '1-2,5' }, delete_pages { pages: number[] }, edit_pdf { operations } and remove_password { password } (3.0+ only), for which the dedicated tools are preferred on 3.0+. On Paperless-ngx 3.5+ every method is queued: the response is { result: "OK", task_id } and the change is applied in the background, so documents may not reflect it yet. Check the task with list_tasks (task_id) before relying on the result. Older servers apply the change before responding.bulk_set_object_permissionstool Set owner and/or view/change permissions on many tags, correspondents, document types or storage paths at once (e.g. share a whole taxonomy with a household groFilesNetworkoutside text
Set owner and/or view/change permissions on many tags, correspondents, document types or storage paths at once (e.g. share a whole taxonomy with a household group). Saved views and custom fields are not supported here — update those individually with set_permissions.
bulk_tag_by_contenttool Search for documents matching a query and add a tag to all results. On Paperless-ngx 3.5+ the tagging is queued: the response contains a task_id (check it with FilesNetworkoutside text
Search for documents matching a query and add a tag to all results. On Paperless-ngx 3.5+ the tagging is queued: the response contains a task_id (check it with list_tasks) and the tags appear once that task has finished.
create_correspondenttool Create a new correspondentFilesNetworkoutside text
Create a new correspondent
create_custom_fieldtool Create a new custom fieldFilesNetworkoutside text
Create a new custom field
create_document_typetool Create a new document typeFilesNetworkoutside text
Create a new document type
create_grouptool Create a new group (requires Paperless admin privileges)FilesNetworkoutside text
Create a new group (requires Paperless admin privileges)
create_mail_accounttool Create a new mail accountFilesNetworkoutside text
Create a new mail account
create_mail_ruletool Create a new mail ruleFilesNetworkoutside text
Create a new mail rule
create_saved_viewtool Create a new saved view. Always sent as API v9, even when another version is configured: Paperless-ngx 3.0+ dropped show_on_dashboard/show_in_sidebar from savedFilesNetworkoutside text
Create a new saved view. Always sent as API v9, even when another version is configured: Paperless-ngx 3.0+ dropped show_on_dashboard/show_in_sidebar from saved views in v10 and keeps them in the user's UI settings, which its v9 compatibility layer updates server-side and reports back.
create_share_linktool Create a public share link for a document. Anyone with the returned slug URL can read it.FilesNetworkoutside text
Create a public share link for a document. Anyone with the returned slug URL can read it.
create_share_link_bundletool Create a share link bundle serving several documents as one zip. Requires Paperless-ngx 3.0+.FilesNetworkoutside text
Create a share link bundle serving several documents as one zip. Requires Paperless-ngx 3.0+.
create_storage_pathtool Create a new storage pathFilesNetworkoutside text
Create a new storage path
create_tagtool Create a new tagFilesNetworkoutside text
Create a new tag
create_usertool Create a new user (requires Paperless admin privileges)FilesNetworkoutside text
Create a new user (requires Paperless admin privileges)
create_workflowtool Create a new workflow with inline triggers and actionsFilesNetworkoutside text
Create a new workflow with inline triggers and actions
delete_correspondenttool Delete a correspondentFilesNetworkoutside text
Delete a correspondent
delete_documenttool Delete a documentFilesNetworkoutside text
Delete a document
delete_document_notetool Delete a note from a documentFilesNetworkoutside text
Delete a note from a document
delete_document_typetool Delete a document typeFilesNetworkoutside text
Delete a document type
delete_document_versiontool Delete one version of a document. The root version cannot be deleted. Requires Paperless-ngx 3.0+.FilesNetworkoutside text
Delete one version of a document. The root version cannot be deleted. Requires Paperless-ngx 3.0+.
delete_storage_pathtool Delete a storage path. Documents using it keep their files but lose the storage path assignment.FilesNetworkoutside text
Delete a storage path. Documents using it keep their files but lose the storage path assignment.
delete_tagtool Delete a tagFilesNetworkoutside text
Delete a tag
download_documenttool Download a document's content. Text files are returned as text and PNG/JPEG/GIF/WebP images (up to 5 MB) as image content; image documents are usually archived FilesNetworkoutside text
Download a document's content. Text files are returned as text and PNG/JPEG/GIF/WebP images (up to 5 MB) as image content; image documents are usually archived as PDF, so pass original: true to get the image; other binary files such as PDFs return only their size. For PDFs use get_document_thumbnail to see the first page, find_document_pages to locate text, or get_document for the OCR text.
edit_pdf_documenttool FilesNetworkoutside text
No description.
email_documenttool Email a single document as an attachmentFilesNetworkoutside text
Email a single document as an attachment
email_documentstool Email several documents as attachments in one messageFilesNetworkoutside text
Email several documents as attachments in one message
embedding_statustool Get the status of the local vector embedding database
Get the status of the local vector embedding database
empty_trashtool Permanently delete trashed documents. This cannot be undone. Omit `documents` to empty the entire trash.FilesNetworkoutside text
Permanently delete trashed documents. This cannot be undone. Omit `documents` to empty the entire trash.
find_document_pagestool Find which pages of a document's PDF contain a text snippet. Searches the PDF text layer locally (scanned documents need an OCR'd archive version). Pair with exFilesNetworkoutside text
Find which pages of a document's PDF contain a text snippet. Searches the PDF text layer locally (scanned documents need an OCR'd archive version). Pair with extract_document_pages to pull out the matching pages.
get_active_taskstool Currently pending and running tasks (capped at 50). Requires Paperless-ngx 3.0+. Task fields follow the API version, as in list_tasks.FilesNetworkoutside text
Currently pending and running tasks (capped at 50). Requires Paperless-ngx 3.0+. Task fields follow the API version, as in list_tasks.
get_configtool Get the Paperless application configuration (OCR and barcode settings)FilesNetworkoutside text
Get the Paperless application configuration (OCR and barcode settings)
get_correspondenttool Get a single correspondent by IDFilesNetworkoutside text
Get a single correspondent by ID
get_custom_fieldtool Get a single custom field by IDFilesNetworkoutside text
Get a single custom field by ID
get_documenttool Get a single document by ID, including its full OCR text content and, on Paperless-ngx 3.x, duplicate_documents (other visible documents with the same content; FilesNetworkoutside text
Get a single document by ID, including its full OCR text content and, on Paperless-ngx 3.x, duplicate_documents (other visible documents with the same content; only filled in here, not in list results)
get_document_ai_suggestionstool Get LLM-generated suggestions for a document (title, tags, correspondent, dates). Requires Paperless-ngx 3.0+ with an AI backend configured.FilesNetworkoutside text
Get LLM-generated suggestions for a document (title, tags, correspondent, dates). Requires Paperless-ngx 3.0+ with an AI backend configured.
get_document_contenttool Get the text content of a document (OCR'd text for PDFs, raw text for text files)FilesNetworkoutside text
Get the text content of a document (OCR'd text for PDFs, raw text for text files)
get_document_historytool Get a document's audit trail: who changed which field, and whenFilesNetworkoutside text
Get a document's audit trail: who changed which field, and when
get_document_metadatatool Get metadata (original filename, checksum, dates, etc.) for a document. On Paperless-ngx 3.3+ with barcode storage enabled (update_config barcode_store_values),FilesNetworkoutside text
Get metadata (original filename, checksum, dates, etc.) for a document. On Paperless-ngx 3.3+ with barcode storage enabled (update_config barcode_store_values), also lists the document's barcodes as { page, value, format }get_document_notestool Get notes/comments on a documentFilesNetworkoutside text
Get notes/comments on a document
get_document_roottool Get the root document ID for a document version. Requires Paperless-ngx 3.0+.FilesNetworkoutside text
Get the root document ID for a document version. Requires Paperless-ngx 3.0+.
get_document_share_linkstool List all share links pointing at one documentFilesNetworkoutside text
List all share links pointing at one document
get_document_suggestionstool Get AI-generated suggestions for correspondent, type, tags, and datesFilesNetworkoutside text
Get AI-generated suggestions for correspondent, type, tags, and dates
get_document_thumbnailtool Get a document's thumbnail (a preview of its first page) as an image, for vision-capable modelsFilesNetworkoutside text
Get a document's thumbnail (a preview of its first page) as an image, for vision-capable models
get_document_typetool Get a single document type by IDFilesNetworkoutside text
Get a single document type by ID
get_documentstool Get full details (including OCR text content) for one or more documents by ID. Use this after list_documents/search_documents, which return metadata only.
Get full details (including OCR text content) for one or more documents by ID. Use this after list_documents/search_documents, which return metadata only.
get_documents_by_correspondenttool Find a correspondent by name and list their documentsFilesNetworkoutside text
Find a correspondent by name and list their documents
get_grouptool Get a single group by ID. Reveals the permission-string format used by permissions.FilesNetworkoutside text
Get a single group by ID. Reveals the permission-string format used by permissions.
get_logtool Read one server log file's contentsFilesNetworkoutside text
Read one server log file's contents
get_mail_accounttool Get a single mail account by IDFilesNetworkoutside text
Get a single mail account by ID
get_mail_ruletool Get a single mail rule by IDFilesNetworkoutside text
Get a single mail rule by ID
get_next_asntool Get the next available archive serial numberFilesNetworkoutside text
Get the next available archive serial number
get_profiletool Get the current user's profile (email, first/last name, social accounts)FilesNetworkoutside text
Get the current user's profile (email, first/last name, social accounts)
get_remote_versiontool Check whether a newer Paperless-ngx release is available upstreamFilesNetworkoutside text
Check whether a newer Paperless-ngx release is available upstream
get_saved_viewtool Get a single saved view by IDFilesNetworkoutside text
Get a single saved view by ID
get_selection_datatool Get tag, correspondent and document type counts across a set of documents. Useful for deciding a bulk edit before running it.FilesNetworkoutside text
Get tag, correspondent and document type counts across a set of documents. Useful for deciding a bulk edit before running it.
get_share_linktool Get a single share link by IDFilesNetworkoutside text
Get a single share link by ID
get_share_link_bundletool Get a single share link bundle by ID. Requires Paperless-ngx 3.0+.FilesNetworkoutside text
Get a single share link bundle by ID. Requires Paperless-ngx 3.0+.
get_statisticstool Get document statistics (total count, inbox count, etc.)FilesNetworkoutside text
Get document statistics (total count, inbox count, etc.)
get_statustool Get Paperless-ngx server statusFilesNetworkoutside text
Get Paperless-ngx server status
get_storage_pathtool Get a single storage path by IDFilesNetworkoutside text
Get a single storage path by ID
get_tagtool Get a single tag by IDFilesNetworkoutside text
Get a single tag by ID
get_task_status_countstool Counts of tasks grouped by status. Requires Paperless-ngx 3.0+.FilesNetworkoutside text
Counts of tasks grouped by status. Requires Paperless-ngx 3.0+.
get_task_summarytool Aggregated task statistics per task type. Requires Paperless-ngx 3.0+.FilesNetworkoutside text
Aggregated task statistics per task type. Requires Paperless-ngx 3.0+.
get_ui_settingstool Get the current user's UI settings, permissions and display preferencesFilesNetworkoutside text
Get the current user's UI settings, permissions and display preferences
get_usertool Get a single user by ID. Reveals the permission-string format used by user_permissions.FilesNetworkoutside text
Get a single user by ID. Reveals the permission-string format used by user_permissions.
get_workflowtool Get a single workflow by ID, including its triggers and actionsFilesNetworkoutside text
Get a single workflow by ID, including its triggers and actions
list_correspondentstool List all correspondents (senders/recipients)FilesNetworkoutside text
List all correspondents (senders/recipients)
list_custom_fieldstool List all custom fieldsFilesNetworkoutside text
List all custom fields
list_document_typestool List all document typesFilesNetworkoutside text
List all document types
list_documentstool List documents with optional filtering, searching and pagination. Returns metadata only (no OCR content) — use get_document or get_documents for full text.FilesNetworkoutside text
List documents with optional filtering, searching and pagination. Returns metadata only (no OCR content) — use get_document or get_documents for full text.
list_groupstool List all groupsFilesNetworkoutside text
List all groups
list_logstool List the available server log filesFilesNetworkoutside text
List the available server log files
list_mail_accountstool List configured email accounts that Paperless polls for documentsFilesNetworkoutside text
List configured email accounts that Paperless polls for documents
list_mail_rulestool List mail rules (which messages get consumed, and how they are tagged)FilesNetworkoutside text
List mail rules (which messages get consumed, and how they are tagged)
list_processed_mailtool List mail messages Paperless has already processed (useful for debugging why a mail was skipped)FilesNetworkoutside text
List mail messages Paperless has already processed (useful for debugging why a mail was skipped)
list_saved_viewstool List all saved viewsFilesNetworkoutside text
List all saved views
list_share_link_bundlestool List share link bundles (one link serving a zip of several documents). Requires Paperless-ngx 3.0+.FilesNetworkoutside text
List share link bundles (one link serving a zip of several documents). Requires Paperless-ngx 3.0+.
list_share_linkstool List public share linksFilesNetworkoutside text
List public share links
list_storage_pathstool List all storage pathsFilesNetworkoutside text
List all storage paths
list_tagstool List all tagsFilesNetworkoutside text
List all tags
list_taskstool List background tasks (consumption, etc.). The response is passed through in the shape of the negotiated API version: v9 returns a plain array with task_name, tFilesNetworkoutside text
List background tasks (consumption, etc.). The response is passed through in the shape of the negotiated API version: v9 returns a plain array with task_name, type and uppercase status; v10 (Paperless-ngx 3.0+) returns a paginated { count, next, previous, results } with task_type, trigger_source and lowercase status. Filters use v10 names and are translated for v9.list_trashtool List documents currently in the trash, with the date each is permanently removedFilesNetworkoutside text
List documents currently in the trash, with the date each is permanently removed
list_userstool List all usersFilesNetworkoutside text
List all users
list_workflowstool List all Paperless workflows (document automation; replaces the old consumption templates)FilesNetworkoutside text
List all Paperless workflows (document automation; replaces the old consumption templates)
merge_documentstool FilesNetworkoutside text
No description.
merge_documents_as_versionstool Merge existing documents into one as file versions of a chosen root document. The other documents stop being separate documents: they become versions of the rooFilesNetworkoutside text
Merge existing documents into one as file versions of a chosen root document. The other documents stop being separate documents: they become versions of the root, which keeps its metadata, and they give up their archive serial number (the root takes one if it has none). Only top-level documents can be merged, and documents that have versions of their own cannot be merged into another. You must own the documents and have permission to delete documents. Requires Paperless-ngx 3.1+. On 3.5+ the request is queued and the response contains a task_id (check it with list_tasks).
monthly_summarytool Get a summary of documents added or created in a given monthFilesNetworkoutside text
Get a summary of documents added or created in a given month
process_inboxtool Review all inbox documents and return proposed classifications. Does NOT apply changes — returns a plan for review.FilesNetworkoutside text
Review all inbox documents and return proposed classifications. Does NOT apply changes — returns a plan for review.
process_mail_accounttool Trigger an immediate mail fetch for one account instead of waiting for the scheduleFilesNetworkoutside text
Trigger an immediate mail fetch for one account instead of waiting for the schedule
rebuild_share_link_bundletool Rebuild a share link bundle's zip after its documents changed. Requires Paperless-ngx 3.0+.FilesNetworkoutside text
Rebuild a share link bundle's zip after its documents changed. Requires Paperless-ngx 3.0+.
remove_document_passwordtool FilesNetworkoutside text
No description.
reprocess_documentstool FilesNetworkoutside text
No description.
restore_from_trashtool Restore trashed documents back into the archiveFilesNetworkoutside text
Restore trashed documents back into the archive
rotate_documentstool FilesNetworkoutside text
No description.
run_tasktool Manually dispatch a background task. Superuser only, and requires Paperless-ngx 3.0+.FilesNetworkoutside text
Manually dispatch a background task. Superuser only, and requires Paperless-ngx 3.0+.
run_workflowtool Manually run a workflow on existing documents. The workflow must be enabled and have a manual trigger (type 5); find candidates with list_workflows (trigger_typFilesNetworkoutside text
Manually run a workflow on existing documents. The workflow must be enabled and have a manual trigger (type 5); find candidates with list_workflows (trigger_type 5). Requires Paperless-ngx 3.5+. You need view permission on workflows and must own the documents (or they must be unowned). The workflow runs in the background and the response contains a task_id; check it with list_tasks.
search_autocompletetool Get autocomplete suggestions for a search termFilesNetworkoutside text
Get autocomplete suggestions for a search term
search_documentstool Full-text search across all documents. Returns metadata only (no OCR content) — use get_document or get_documents for full text. This is Paperless's global searFilesNetworkoutside text
Full-text search across all documents. Returns metadata only (no OCR content) — use get_document or get_documents for full text. This is Paperless's global search and returns at most 3 documents; on 3.x it does simple text matching without field syntax. Use list_documents with query for field searches such as barcodes:.
semantic_searchtool Search documents by meaning using vector embeddings. Requires sync_embeddings to be run first.FilesNetworkoutside text
Search documents by meaning using vector embeddings. Requires sync_embeddings to be run first.
set_document_version_labeltool Rename one version of a document. Requires Paperless-ngx 3.0+.FilesNetworkoutside text
Rename one version of a document. Requires Paperless-ngx 3.0+.
sync_embeddingstool Sync document embeddings to the local vector database. Indexes all documents for semantic search. Only re-embeds documents whose content has changed. Admin onlyFilesNetworkoutside text
Sync document embeddings to the local vector database. Indexes all documents for semantic search. Only re-embeds documents whose content has changed. Admin only.
test_mail_accounttool Test mail account credentials without saving them. Pass the full connection details.FilesNetworkoutside text
Test mail account credentials without saving them. Pass the full connection details.
test_storage_pathtool Preview the filename a storage path template produces for a document, without saving anythingFilesNetworkoutside text
Preview the filename a storage path template produces for a document, without saving anything
update_configtool Update the Paperless application configuration (partial update). Affects OCR and barcode handling for future consumption.FilesNetworkoutside text
Update the Paperless application configuration (partial update). Affects OCR and barcode handling for future consumption.
update_correspondenttool Update an existing correspondent (partial update)FilesNetworkoutside text
Update an existing correspondent (partial update)
update_custom_fieldtool Update an existing custom field (partial update)FilesNetworkoutside text
Update an existing custom field (partial update)
update_documenttool Update a document's metadataFilesNetworkoutside text
Update a document's metadata
update_document_typetool Update an existing document type (partial update)FilesNetworkoutside text
Update an existing document type (partial update)
update_grouptool Update an existing group (partial update; requires Paperless admin privileges)FilesNetworkoutside text
Update an existing group (partial update; requires Paperless admin privileges)
update_mail_accounttool Update an existing mail account (partial update)FilesNetworkoutside text
Update an existing mail account (partial update)
update_mail_ruletool Update an existing mail rule (partial update)FilesNetworkoutside text
Update an existing mail rule (partial update)
update_saved_viewtool Update an existing saved view (partial update). Always sent as API v9, even when another version is configured: Paperless-ngx 3.0+ dropped show_on_dashboard/shoFilesNetworkoutside text
Update an existing saved view (partial update). Always sent as API v9, even when another version is configured: Paperless-ngx 3.0+ dropped show_on_dashboard/show_in_sidebar from saved views in v10 and keeps them in the user's UI settings, which its v9 compatibility layer updates server-side and reports back.
update_storage_pathtool Update an existing storage path (partial update)FilesNetworkoutside text
Update an existing storage path (partial update)
update_tagtool Update an existing tag (partial update)FilesNetworkoutside text
Update an existing tag (partial update)
update_usertool Update an existing user (partial update; requires Paperless admin privileges)FilesNetworkoutside text
Update an existing user (partial update; requires Paperless admin privileges)
update_workflowtool Update an existing workflow (partial update)FilesNetworkoutside text
Update an existing workflow (partial update)
upload_from_urltool Download a file from a URL (max 100 MB, redirects are not followed) and upload it to Paperless-ngx. Over the HTTP transport, private and local addresses are refFilesNetworkoutside text
Download a file from a URL (max 100 MB, redirects are not followed) and upload it to Paperless-ngx. Over the HTTP transport, private and local addresses are refused.
yearly_document_checktool Compare documents of a year against the previous year, grouped by correspondent + document type. Lists combinations present last year but missing this year — usFilesNetworkoutside text
Compare documents of a year against the previous year, grouped by correspondent + document type. Lists combinations present last year but missing this year — useful for spotting missing recurring documents (salary certificate, bank tax statement, insurance summary) when preparing a tax report.
Text the model reads (133)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
list_workflows tool
List all Paperless workflows (document automation; replaces the old consumption templates)
get_workflow tool
Get a single workflow by ID, including its triggers and actions
create_workflow tool
Create a new workflow with inline triggers and actions
update_workflow tool
Update an existing workflow (partial update)
run_workflow tool
Manually run a workflow on existing documents. The workflow must be enabled and have a manual trigger (type 5); find candidates with list_workflows (trigger_type 5). Requires Paperless-ngx 3.5+. You need view permission on workflows and must own the documents (or they must be unowned). The workflow runs in the background and the response contains a task_id; check it with list_tasks.
get_status tool
Get Paperless-ngx server status
get_statistics tool
Get document statistics (total count, inbox count, etc.)
list_tasks tool
List background tasks (consumption, etc.). The response is passed through in the shape of the negotiated API version: v9 returns a plain array with task_name, type and uppercase status; v10 (Paperless-ngx 3.0+) returns a paginated { count, next, previous, results } with task_type, trigger_source and lowercase status. Filters use v10 names and are translated for v9.search_documents tool
Full-text search across all documents. Returns metadata only (no OCR content) — use get_document or get_documents for full text. This is Paperless's global search and returns at most 3 documents; on 3.x it does simple text matching without field syntax. Use list_documents with query for field searches such as barcodes:.
search_autocomplete tool
Get autocomplete suggestions for a search term
list_documents tool
List documents with optional filtering, searching and pagination. Returns metadata only (no OCR content) — use get_document or get_documents for full text.
get_document tool
Get a single document by ID, including its full OCR text content and, on Paperless-ngx 3.x, duplicate_documents (other visible documents with the same content; only filled in here, not in list results)
download_document tool
Download a document's content. Text files are returned as text and PNG/JPEG/GIF/WebP images (up to 5 MB) as image content; image documents are usually archived as PDF, so pass original: true to get the image; other binary files such as PDFs return only their size. For PDFs use get_document_thumbnail to see the first page, find_document_pages to locate text, or get_document for the OCR text.
update_document tool
Update a document's metadata
delete_document tool
Delete a document
upload_document tool
Upload a document from a local file path
get_document_metadata tool
Get metadata (original filename, checksum, dates, etc.) for a document. On Paperless-ngx 3.3+ with barcode storage enabled (update_config barcode_store_values), also lists the document's barcodes as { page, value, format }get_document_suggestions tool
Get AI-generated suggestions for correspondent, type, tags, and dates
get_document_notes tool
Get notes/comments on a document
add_document_note tool
Add a note/comment to a document
delete_document_note tool
Delete a note from a document
bulk_edit_documents tool
Perform bulk operations on multiple documents by ID. Methods and parameters: set_correspondent { correspondent: id | null }; set_document_type { document_type: id | null }; set_storage_path { storage_path: id | null }; add_tag / remove_tag { tag: id }; modify_tags { add_tags: id[], remove_tags: id[] } (both required); modify_custom_fields { add_custom_fields: id[] | { id: value }, remove_custom_fields: id[] } (both required); set_permissions { set_permissions: { view, change } | null, owner?: id | null, merge?: boolean }; delete (moves to the trash); reprocess { remote_ocr?: boolean (3.1+) }; run_workflow { workflow: id, filter_documents?: boolean } (3.5+, see run_workflow); rotate { degrees }, merge, split { pages: '1-2,5' }, delete_pages { pages: number[] }, edit_pdf { operations } and remove_password { password } (3.0+ only), for which the dedicated tools are preferred on 3.0+. On Paperless-ngx 3.5+ every method is queued: the response is { result: "OK", task_id } and the change is applied in the background, so documents may not reflect it yet. Check the task with list_tasks (task_id) before relying on the result. Older servers apply the change before responding.bulk_set_object_permissions tool
Set owner and/or view/change permissions on many tags, correspondents, document types or storage paths at once (e.g. share a whole taxonomy with a household group). Saved views and custom fields are not supported here — update those individually with set_permissions.
get_next_asn tool
Get the next available archive serial number
list_correspondents tool
List all correspondents (senders/recipients)
get_correspondent tool
Get a single correspondent by ID
create_correspondent tool
Create a new correspondent
update_correspondent tool
Update an existing correspondent (partial update)
delete_correspondent tool
Delete a correspondent
list_document_types tool
List all document types
get_document_type tool
Get a single document type by ID
create_document_type tool
Create a new document type
update_document_type tool
Update an existing document type (partial update)
delete_document_type tool
Delete a document type
list_tags tool
List all tags
get_tag tool
Get a single tag by ID
create_tag tool
Create a new tag
update_tag tool
Update an existing tag (partial update)
delete_tag tool
Delete a tag
list_saved_views tool
List all saved views
get_saved_view tool
Get a single saved view by ID
create_saved_view tool
Create a new saved view. Always sent as API v9, even when another version is configured: Paperless-ngx 3.0+ dropped show_on_dashboard/show_in_sidebar from saved views in v10 and keeps them in the user's UI settings, which its v9 compatibility layer updates server-side and reports back.
update_saved_view tool
Update an existing saved view (partial update). Always sent as API v9, even when another version is configured: Paperless-ngx 3.0+ dropped show_on_dashboard/show_in_sidebar from saved views in v10 and keeps them in the user's UI settings, which its v9 compatibility layer updates server-side and reports back.
list_storage_paths tool
List all storage paths
get_storage_path tool
Get a single storage path by ID
create_storage_path tool
Create a new storage path
update_storage_path tool
Update an existing storage path (partial update)
delete_storage_path tool
Delete a storage path. Documents using it keep their files but lose the storage path assignment.
list_custom_fields tool
List all custom fields
get_custom_field tool
Get a single custom field by ID
create_custom_field tool
Create a new custom field
update_custom_field tool
Update an existing custom field (partial update)
get_document_history tool
Get a document's audit trail: who changed which field, and when
get_document_thumbnail tool
Get a document's thumbnail (a preview of its first page) as an image, for vision-capable models
get_document_ai_suggestions tool
Get LLM-generated suggestions for a document (title, tags, correspondent, dates). Requires Paperless-ngx 3.0+ with an AI backend configured.
get_document_root tool
Get the root document ID for a document version. Requires Paperless-ngx 3.0+.
upload_document_version tool
Upload a new file version of an existing document, keeping its metadata and history. Requires Paperless-ngx 3.0+.
set_document_version_label tool
Rename one version of a document. Requires Paperless-ngx 3.0+.
delete_document_version tool
Delete one version of a document. The root version cannot be deleted. Requires Paperless-ngx 3.0+.
get_selection_data tool
Get tag, correspondent and document type counts across a set of documents. Useful for deciding a bulk edit before running it.
bulk_download_documents tool
Download several documents as a single zip archive written to disk
extract_document_pages tool
Extract pages from a document's PDF into a new PDF written to disk. Processes the file locally; the document in Paperless is not modified.
find_document_pages tool
Find which pages of a document's PDF contain a text snippet. Searches the PDF text layer locally (scanned documents need an OCR'd archive version). Pair with extract_document_pages to pull out the matching pages.
test_storage_path tool
Preview the filename a storage path template produces for a document, without saving anything
rotate_documents tool
merge_documents tool
merge_documents_as_versions tool
Merge existing documents into one as file versions of a chosen root document. The other documents stop being separate documents: they become versions of the root, which keeps its metadata, and they give up their archive serial number (the root takes one if it has none). Only top-level documents can be merged, and documents that have versions of their own cannot be merged into another. You must own the documents and have permission to delete documents. Requires Paperless-ngx 3.1+. On 3.5+ the request is queued and the response contains a task_id (check it with list_tasks).
edit_pdf_document tool
remove_document_password tool
reprocess_documents tool
get_document_content tool
Get the text content of a document (OCR'd text for PDFs, raw text for text files)
get_documents tool
Get full details (including OCR text content) for one or more documents by ID. Use this after list_documents/search_documents, which return metadata only.
get_documents_by_correspondent tool
Find a correspondent by name and list their documents
monthly_summary tool
Get a summary of documents added or created in a given month
yearly_document_check tool
Compare documents of a year against the previous year, grouped by correspondent + document type. Lists combinations present last year but missing this year — useful for spotting missing recurring documents (salary certificate, bank tax statement, insurance summary) when preparing a tax report.
upload_from_url tool
Download a file from a URL (max 100 MB, redirects are not followed) and upload it to Paperless-ngx. Over the HTTP transport, private and local addresses are refused.
list_mail_accounts tool
List configured email accounts that Paperless polls for documents
get_mail_account tool
Get a single mail account by ID
create_mail_account tool
Create a new mail account
update_mail_account tool
Update an existing mail account (partial update)
test_mail_account tool
Test mail account credentials without saving them. Pass the full connection details.
process_mail_account tool
Trigger an immediate mail fetch for one account instead of waiting for the schedule
list_mail_rules tool
List mail rules (which messages get consumed, and how they are tagged)
get_mail_rule tool
Get a single mail rule by ID
create_mail_rule tool
Create a new mail rule
update_mail_rule tool
Update an existing mail rule (partial update)
list_processed_mail tool
List mail messages Paperless has already processed (useful for debugging why a mail was skipped)
semantic_search tool
Search documents by meaning using vector embeddings. Requires sync_embeddings to be run first.
sync_embeddings tool
Sync document embeddings to the local vector database. Indexes all documents for semantic search. Only re-embeds documents whose content has changed. Admin only.
embedding_status tool
Get the status of the local vector embedding database
list_share_links tool
List public share links
get_share_link tool
Get a single share link by ID
get_document_share_links tool
List all share links pointing at one document
create_share_link tool
Create a public share link for a document. Anyone with the returned slug URL can read it.
list_share_link_bundles tool
List share link bundles (one link serving a zip of several documents). Requires Paperless-ngx 3.0+.
get_share_link_bundle tool
Get a single share link bundle by ID. Requires Paperless-ngx 3.0+.
create_share_link_bundle tool
Create a share link bundle serving several documents as one zip. Requires Paperless-ngx 3.0+.
rebuild_share_link_bundle tool
Rebuild a share link bundle's zip after its documents changed. Requires Paperless-ngx 3.0+.
email_document tool
Email a single document as an attachment
email_documents tool
Email several documents as attachments in one message
get_config tool
Get the Paperless application configuration (OCR and barcode settings)
update_config tool
Update the Paperless application configuration (partial update). Affects OCR and barcode handling for future consumption.
get_ui_settings tool
Get the current user's UI settings, permissions and display preferences
get_profile tool
Get the current user's profile (email, first/last name, social accounts)
get_remote_version tool
Check whether a newer Paperless-ngx release is available upstream
list_logs tool
List the available server log files
get_log tool
Read one server log file's contents
list_trash tool
List documents currently in the trash, with the date each is permanently removed
restore_from_trash tool
Restore trashed documents back into the archive
empty_trash tool
Permanently delete trashed documents. This cannot be undone. Omit `documents` to empty the entire trash.
acknowledge_tasks tool
Dismiss background tasks from the tasks list
run_task tool
Manually dispatch a background task. Superuser only, and requires Paperless-ngx 3.0+.
get_task_summary tool
Aggregated task statistics per task type. Requires Paperless-ngx 3.0+.
get_task_status_counts tool
Counts of tasks grouped by status. Requires Paperless-ngx 3.0+.
get_active_tasks tool
Currently pending and running tasks (capped at 50). Requires Paperless-ngx 3.0+. Task fields follow the API version, as in list_tasks.
list_users tool
List all users
get_user tool
Get a single user by ID. Reveals the permission-string format used by user_permissions.
create_user tool
Create a new user (requires Paperless admin privileges)
update_user tool
Update an existing user (partial update; requires Paperless admin privileges)
list_groups tool
List all groups
get_group tool
Get a single group by ID. Reveals the permission-string format used by permissions.
create_group tool
Create a new group (requires Paperless admin privileges)
update_group tool
Update an existing group (partial update; requires Paperless admin privileges)
auto_classify_document tool
Get AI suggestions for a document and apply them in one step. Returns what was changed.
process_inbox tool
Review all inbox documents and return proposed classifications. Does NOT apply changes — returns a plan for review.
bulk_tag_by_content tool
Search for documents matching a query and add a tag to all results. On Paperless-ngx 3.5+ the tagging is queued: the response contains a task_id (check it with list_tasks) and the tags appear once that task has finished.
triage_inbox prompt
Classify inbox documents missing a correspondent, document type or tags; applies changes only after confirmation
tax_prep prompt
Gather a year's tax-relevant documents and spot missing recurring ones (salary certificate, bank statements, ...)
monthly_review prompt
Review a month's documents: overview, unclassified documents and action items
find_document prompt
Find a document from a free-form description using filters, full-text and semantic search
cleanup_tags prompt
Find unused or near-duplicate tags and propose merges; nothing is deleted without confirmation
(name computed at run time) resource
document resource
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 133 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 133 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file path HIGH4 findings in bulk_download_documents, extract_document_pages, upload_document, upload_document_version
- Requests any addressNo tool sends a request to an address the caller supplies — 133 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 133 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 133 capabilities; 130 more call code the scanner could not follow, where it may happen
- Tools that touch files126 of 133 capabilities touch files; 4 more call code the scanner could not follow, where it may happen
- Tools that call the network126 of 133 capabilities call the network; 4 more call code the scanner could not follow, where it may happen
Where the code is: 133 handlers in 12 files at commit 02a62215a79f
src/tools/automation.tslist_workflows, get_workflow, create_workflow, update_workflow, run_workflowsrc/tools/core.tsget_status, get_statistics, list_tasks, search_documents, search_autocomplete, list_documents, get_document, download_document, update_document, delete_document, upload_document, get_document_metadata +35src/tools/documents.tsget_document_history, get_document_thumbnail, get_document_ai_suggestions, get_document_root, upload_document_version, set_document_version_label, delete_document_version, get_selection_data, bulk_download_documents, extract_document_pages, find_document_pages, test_storage_path +6src/tools/helpers.tsget_document_content, get_documents, get_documents_by_correspondent, monthly_summary, yearly_document_check, upload_from_urlsrc/tools/mail.tslist_mail_accounts, get_mail_account, create_mail_account, update_mail_account, test_mail_account, process_mail_account, list_mail_rules, get_mail_rule, create_mail_rule, update_mail_rule, list_processed_mailsrc/tools/prompts.tstriage_inbox, tax_prep, monthly_review, find_document, cleanup_tagssrc/tools/resources.ts(name computed at run time), documentsrc/tools/search.tssemantic_search, sync_embeddings, embedding_statussrc/tools/sharing.tslist_share_links, get_share_link, get_document_share_links, create_share_link, list_share_link_bundles, get_share_link_bundle, create_share_link_bundle, rebuild_share_link_bundle, email_document, email_documentssrc/tools/system.tsget_config, update_config, get_ui_settings, get_profile, get_remote_version, list_logs, get_log, list_trash, restore_from_trash, empty_trash, acknowledge_tasks, run_task +3src/tools/users.tslist_users, get_user, create_user, update_user, list_groups, get_group, create_group, update_groupsrc/tools/workflow.tsauto_classify_document, process_inbox, bulk_tag_by_content
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests1 manifest: package.json
- Lockfiles checked against OSV1 file resolved and checked against the OSV database
- Known vulnerabilities in production dependenciesNo production dependency with a known advisory
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK version@modelcontextprotocol/sdk ^1.30.0
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 133 capabilities; 130 more call code the scanner could not follow, where it may happen
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (7 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (0 in production)
No known vulnerabilities in the production dependencies that could be checked.
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
No security advisories have been published for this server in the GitHub Advisory Database.
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | Streamable HTTP, stdio |
| Sign-in | not checked needs the live server |
| MCP SDK | @modelcontextprotocol/sdk ^1.30.0 |
| Servers in the code | 1 (paperless-mcp) |
The project's own security
| Security policy | none no SECURITY.md in the repository: report issues privately through GitHub if it is enabled |
|---|---|
| Past advisories | none in the GitHub Advisory Database |
| Last push | 2026-11-13 |
| Signed releases | not checked yet |
Where it is published
| Other npm packages | 1 package by other publishers point to this repositoryNot published by the repository's owner; check who publishes a package before you install it. |
|---|---|
| Listed in | 2 catalogs (github_search, npm) |
| License | MIT |
| Created | 2026-05-31 |
| Topics | ai-agents claude docker document-management llm mcp mcp-server model-context-protocol ollama paperless |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.