Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PAPERLESS_URLYesBase URL the MCP server uses to talk to Paperless-NGX.
PAPERLESS_API_KEYYesAPI token for Paperless-NGX.
PAPERLESS_PUBLIC_URLNoPublic URL the assistant uses when constructing browser links to documents. Falls back to PAPERLESS_URL.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
edit_documents_bulkA

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.

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.

list_documentsA

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 use the relevant tool (e.g., 'list_tags', 'list_correspondents', 'list_document_types', 'list_storage_paths') to find the correct ID, 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.

get_documentA

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.

get_document_contentA

Get the text content of a specific document by ID. Use this when you need to read or analyze the actual document text.

search_documentsA

Full text search for documents. This tool is for searching document content, title, and metadata using a full text query. For general document listing or filtering by fields, use 'list_documents' instead. Note: Document content is excluded from results by default. Use 'get_document_content' to retrieve content when needed.

download_documentB

Download a document file by ID. Returns the document as a base64-encoded resource.

get_document_thumbnailA

Get a document thumbnail (image preview) by ID. Returns the thumbnail as a base64-encoded WebP image resource.

update_documentA

Update fields on ONE document (PATCH — only fields you supply are changed). Editable fields: title, correspondent, document_type, storage_path, tags (replaces the array), 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.

email_documentB

Send a document via email to one or more recipients.

get_document_historyA

Get the change history / audit log for a document, showing who changed what and when.

get_document_previewB

Get a full-page preview image of a document. Returns the preview as a base64-encoded image resource.

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.

update_document_versionA

Rename a version of a document (change its version_label). Version IDs are listed in get_document's versions.

delete_document_versionA

⚠️ DESTRUCTIVE: Permanently delete one non-root version of a document. The root (original) version can't be deleted — delete the document instead.

merge_documents_as_versionsA

⚠️ 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.

list_tagsB

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 (with a large enough page_size), 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.

get_tagA

Get a specific tag by ID with full details including matching rules.

create_tagB

Create a new tag with optional color, matching pattern, and matching algorithm for automatic document tagging.

update_tagA

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.

delete_tagA

⚠️ DESTRUCTIVE: Permanently delete a tag from the entire system. This will remove the tag from ALL documents that use it. Use with extreme caution.

edit_tags_bulkA

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.

list_correspondentsB

List all correspondents with optional filtering and pagination. Correspondents represent entities that send or receive documents.

get_correspondentA

Get a specific correspondent by ID with full details including matching rules.

create_correspondentA

Create a new correspondent with optional matching pattern and algorithm for automatic document assignment.

update_correspondentA

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.

delete_correspondentA

⚠️ DESTRUCTIVE: Permanently delete a correspondent from the entire system. This will affect ALL documents that use this correspondent.

edit_correspondents_bulkA

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.

list_document_typesA

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 (with a large enough page_size), 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.

get_document_typeA

Get a specific document type by ID with full details including matching rules.

create_document_typeA

Create a new document type with optional matching pattern and algorithm for automatic document classification.

update_document_typeA

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.

delete_document_typeA

⚠️ DESTRUCTIVE: Permanently delete a document type from the entire system. This will affect ALL documents that use this type.

edit_document_types_bulkA

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.

list_custom_fieldsA

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.

get_custom_fieldA

Get a specific custom field by ID with full details including data type and extra configuration.

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$).

update_custom_fieldA

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.

delete_custom_fieldA

⚠️ DESTRUCTIVE: Permanently delete a custom field from the entire system. This will remove the field from ALL documents that use it.

edit_custom_fields_bulkA

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.

list_storage_pathsB

List all storage paths with optional filtering and pagination. Storage paths define where documents are stored on disk.

get_storage_pathA

Get a specific storage path by ID with full details including matching rules.

create_storage_pathB

Create a new storage path with a name, path template, and optional matching rules.

update_storage_pathA

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.

delete_storage_pathA

⚠️ DESTRUCTIVE: Permanently delete a storage path from the entire system. This will affect ALL documents that use this storage path.

test_storage_pathA

Test a storage path template to see how it would resolve for documents. Useful for validating path templates before creating or updating storage paths.

list_saved_viewsA

List all saved views with optional pagination. Saved views store filter/sort configurations for quick access.

get_saved_viewA

Get a specific saved view by ID with full details including filter rules.

create_saved_viewB

Create a new saved view with filter rules and sort configuration.

update_saved_viewA

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).

delete_saved_viewB

⚠️ DESTRUCTIVE: Permanently delete a saved view.

list_share_linksC

List all share links with optional filtering by creation date, expiration date, and pagination.

get_share_linkB

Get a specific share link by ID with full details.

create_share_linkA

Create a share link for a document. Optionally set an expiration date and file version (archive or original). Share links can't be edited afterwards — to change the expiry, delete and recreate. To share several documents as one ZIP link, use create_share_link_bundle.

delete_share_linkA

⚠️ DESTRUCTIVE: Permanently delete a share link. The shared URL will stop working.

list_document_share_linksA

List all share links for a specific document.

list_share_link_bundlesA

List share link bundles (one public link to a ZIP of several documents) with optional status filter and pagination.

get_share_link_bundleB

Get one share link bundle, including its build status (pending → processing → ready or failed), size and last_error.

create_share_link_bundleA

Create ONE public share link for a ZIP of several documents. The ZIP is built in the background: the bundle starts as status 'pending' and becomes usable once get_share_link_bundle reports 'ready'. The slug identifies the public link.

rebuild_share_link_bundleA

Re-queue a share link bundle's ZIP build, e.g. after it failed or its documents changed. The link (slug) stays the same.

delete_share_link_bundleA

⚠️ DESTRUCTIVE: Permanently delete a share link bundle. Its public link stops working; the documents are not affected.

list_workflow_actionsA

List all workflow actions with optional pagination.

get_workflow_actionA

Get a specific workflow action by ID.

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).

update_workflow_actionA

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.

delete_workflow_actionA

⚠️ DESTRUCTIVE: Permanently delete a workflow action.

list_workflow_triggersA

List all workflow triggers with optional pagination.

get_workflow_triggerA

Get a specific workflow trigger by ID.

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).

update_workflow_triggerA

Update fields on ONE workflow trigger (PATCH — only fields you supply are changed). Use get_workflow_trigger first to see its current shape.

delete_workflow_triggerB

⚠️ DESTRUCTIVE: Permanently delete a workflow trigger.

list_workflowsA

List workflows (each with its nested triggers and actions) with optional pagination.

get_workflowA

Get one workflow by ID, including its full triggers and actions.

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.

update_workflowA

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.

delete_workflowA

⚠️ DESTRUCTIVE: Permanently delete a workflow. Documents it already processed are not changed.

list_mail_accountsA

List the IMAP accounts Paperless fetches mail from. Passwords are always masked.

get_mail_accountA

Get one mail account by ID (password masked).

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.

update_mail_accountA

Update fields on ONE mail account (PATCH — only fields you supply are changed). Omit password to keep the stored one.

delete_mail_accountA

⚠️ DESTRUCTIVE: Permanently delete a mail account and stop fetching from it. Mail rules using it are deleted too. Already-imported documents are not affected.

test_mail_accountA

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'.

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.

list_mail_rulesA

List mail rules: which mails Paperless imports from which account, and how it assigns title, tags, correspondent and document type.

get_mail_ruleA

Get one mail rule by ID.

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.

update_mail_ruleA

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.

delete_mail_ruleA

⚠️ DESTRUCTIVE: Permanently delete a mail rule. Already-imported documents are not affected.

get_statisticsA

Get system statistics including document counts, inbox status, file type breakdown, and storage information.

get_system_statusA

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.

get_document_suggestionsA

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.

get_document_ai_suggestionsA

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.

get_document_metadataB

Get file metadata for a document including checksums, file sizes, and archival information.

list_document_notesA

List all notes for a specific document.

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.

delete_document_noteB

⚠️ DESTRUCTIVE: Delete a note from a document.

delete_documentA

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.

list_trashA

List documents in the trash (soft-deleted documents). Document content is left out, as in list_documents.

restore_from_trashA

Restore documents from the trash back to the system.

empty_trashA

⚠️ DESTRUCTIVE: Permanently delete documents from the trash, or empty the entire trash. This action is irreversible.

search_autocompleteA

Get search term autocomplete suggestions based on the document index.

get_next_asnA

Get the next available Archive Serial Number (ASN) for document filing.

list_tasksA

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.

acknowledge_tasksA

Acknowledge/dismiss completed tasks to clear them from the task list.

list_active_tasksA

List tasks that are pending or running right now (at most 50). For finished tasks use list_tasks.

get_task_status_countsA

Get task counts: all, needs_attention (failed and unacknowledged), in_progress, completed.

get_task_summaryA

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.

download_documents_bulkB

Download multiple documents as a ZIP archive. Returns base64-encoded ZIP file.

Prompts

Interactive templates invoked by user choice

NameDescription
triage_inboxScan inbox documents, propose metadata (correspondent, document type, tags) preferring existing items, and apply only after explicit user confirmation.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 108 tools

Disambiguation4/5

Most tools follow a clear resource+action pattern with detailed descriptions that distinguish them, but the sheer scale and a few near-overlapping pairs (list_documents vs search_documents, update_document vs edit_documents_bulk, get_document_suggestions vs get_document_ai_suggestions) could cause misselection without careful reading.

Naming Consistency4/5

Names are predominantly consistent verb_noun snake_case (list_documents, create_tag, update_document, delete_tag, edit_documents_bulk), with only minor deviations like post_document, restore_from_trash, empty_trash, and merge_documents_as_versions that don't undermine the overall pattern.

Tool Count2/5

At 108 tools, this is far beyond the 25+ threshold that already feels heavy, and the volume risks overwhelming agents even though the Paperless-ngx domain is broad. The exhaustive endpoint-by-endpoint design explains the count, but it would benefit from consolidation into fewer multi-purpose tools.

Completeness5/5

The surface is remarkably complete, covering documents (single, bulk, versions, notes, trash, share links, downloads, previews), search, tasks, workflows, mail accounts/rules, and all configuration objects. The only minor gap is a missing update operation for document notes, which is easily worked around.

Maintenance

ActivityNo data
ResponsivenessUnresponsive