Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PAPERLESS_URLYesURL of your Paperless-NGX instancehttp://your-paperless-instance:8000
PAPERLESS_API_KEYYesAPI token for your Paperless-NGX instance

Instructions

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

Paperless-NGX MCP Server Instructions

⚠️ CRITICAL: Always differentiate between operations on specific documents vs operations on the entire system:

  • REMOVE operations (e.g., remove_tag in bulk_edit_documents): Affect only the specified documents, items remain in the system

  • DELETE operations (e.g., delete_tag, delete_correspondent): Permanently delete items from the entire system, affecting ALL documents that use them

When a user asks to "remove" something, prefer operations that affect specific documents. Only use DELETE operations when explicitly asked to delete from the system.

To view documents in your Paperless-NGX web interface, construct URLs using this pattern: http://paperless.example.com:8000/documents/{document_id}/

Example: If your base URL is "http://localhost:8000", the web interface URL would be "http://localhost:8000/documents/123/" for document ID 123.

The document tools return JSON data with document IDs that you can use to construct these URLs.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

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

Tools

Functions exposed to the LLM to take actions

NameDescription
bulk_edit_documentsB

Perform bulk operations on multiple documents. Note: 'remove_tag' removes a tag from specific documents (tag remains in system), while 'delete_tag' permanently deletes a tag from the entire system. ⚠️ WARNING: 'delete' moves documents to the trash on Paperless-ngx 2.10+ (temporarily restorable; retention depends on server policy and documents may be permanently removed automatically or manually); older versions permanently delete them. Confirmation is required in all versions.

post_documentA

Upload a new document to Paperless-NGX with optional metadata like title, correspondent, document type, tags, and custom fields. Provide either 'file' (base64-encoded content) or 'file_path' (absolute path to a file on the server's filesystem). Using file_path avoids base64 encoding overhead for large files. SECURITY: When using file_path, set PAPERLESS_MCP_UPLOAD_PATHS environment variable to restrict uploads to specific directories (colon-separated paths).

list_documentsA

List and filter documents with pagination and common Paperless filters such as title search, correspondent, document type, tag, storage path, creation date, archive serial number, and simple custom field filters. Use 'query_documents' for full-text query, structured custom field conditions, or advanced documented /api/documents/ query parameters. IMPORTANT: For queries like 'the last 3 contributions' or when searching by tag, correspondent, document type, or storage path, first use the relevant lookup tool to find the correct ID. Note: Document content is excluded from results by default. Use 'get_document_content' when you need the document text.

query_documentsA

Query documents using the full-text query engine plus structured Paperless filters. Use this for complex filtering, custom field conditions, or any documented /api/documents/ query parameters that are not exposed as first-class arguments. Prefer the dedicated top-level arguments where available. custom_field_query supports [field_name_or_id, operator, value] leaves or ['AND'|'OR', [clause1, clause2]] groups. Note: Document content is excluded from results by default. Use 'get_document_content' when you need the document text.

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.

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

Deprecated compatibility wrapper for full-text document search. Use 'query_documents' with the 'query' argument for new integrations. Note: Document content is excluded from results by default. Use 'get_document_content' to retrieve content when needed.

download_documentA

Download a document file by ID. Returns a paperless:// resource URI; read the resource to fetch the file content.

get_document_thumbnailA

Get a document thumbnail (image preview) by ID. Returns a paperless:// resource URI; read the resource to fetch the image content.

update_documentA

Update a specific document with new values (title, correspondent, document type, storage path, tags, custom fields, and more). Top-level fields you omit are left unchanged. IMPORTANT: custom_fields is the exception — see its parameter description; it replaces the document's entire custom-field set.

list_document_notesA

List all notes attached to a document. Notes are free-text comments on a document and are the natural place for an audit trail (e.g. "invoice paid on X from account Y") or progress notes on an action item.

create_document_noteA

Add a note to a document. Use this to record an audit trail or progress note directly on the document. Returns the document's full list of notes after the note is added.

delete_document_noteB

⚠️ DESTRUCTIVE: Permanently delete a single note from a document by its note ID. This operation is irreversible. Returns the document's remaining notes.

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.

create_tagA

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

update_tagB

Update an existing tag's name, color, matching pattern, or matching algorithm.

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.

bulk_edit_tagsC

Bulk edit tags. ⚠️ WARNING: 'delete' operation permanently removes tags from the entire system. Use with caution.

list_correspondentsB

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

get_correspondentB

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

create_correspondentB

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

update_correspondentB

Update an existing correspondent's name, matching pattern, or matching algorithm.

delete_correspondentB

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

bulk_edit_correspondentsB

Bulk edit correspondents. ⚠️ WARNING: 'delete' operation 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_typeB

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

create_document_typeB

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

update_document_typeB

Update an existing document type's name, matching pattern, or matching algorithm.

delete_document_typeA

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

bulk_edit_document_typesB

Bulk edit document types. ⚠️ WARNING: 'delete' operation 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_fieldB

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_fieldB

Update an existing custom field's name, data type, or extra configuration data.

delete_custom_fieldB

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

bulk_edit_custom_fieldsB

Bulk edit custom fields. ⚠️ WARNING: 'delete' operation permanently removes custom fields from the entire system.

list_mail_accountsA

List Paperless mail accounts for selecting the account ID needed by mail rules. Does not expose account passwords.

get_mail_accountA

Get one Paperless mail account by ID. Password/token fields are redacted if the server returns them.

process_mail_accountB

Manually run Paperless mail processing for one account. This can consume matching mails according to enabled Paperless mail rules.

list_mail_rulesB

List Paperless mail rules with optional pagination.

get_mail_ruleA

Get one Paperless mail rule by ID.

create_mail_ruleB

Create a Paperless mail rule. Use list_mail_accounts first to choose account. Prefer attachment-only rules for invoices unless the full mail must be archived.

update_mail_ruleB

Patch an existing Paperless mail rule. Only supplied fields are changed.

delete_mail_ruleA

Delete one Paperless mail rule. This changes future mail ingestion behavior but does not delete documents.

list_storage_pathsB

List storage paths with optional filtering and pagination. Returns one page of path IDs, names, path templates and matching rules without modifying storage paths or documents.

list_tasksA

List Paperless consumer-queue tasks, including failed uploads (unsupported file type, duplicate of an existing document, unreadable file). Each task has its status, result message (the failure reason), and, for uploads, the file name and related document; these two can be null for other tasks. Use status failure with acknowledged false to find unacknowledged failures. A failure can remain unacknowledged after its underlying issue is resolved.

acknowledge_tasksA

Mark tasks as acknowledged (seen and handled) by their numeric task IDs from list_tasks. This only sets the acknowledged flag; it does not delete tasks or retry them. Returns the number of tasks acknowledged.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 47 tools

Disambiguation4/5

Most tools map to a distinct resource and action across Paperless-ngx, with clear separation between document metadata, content, notes, tags, correspondents, document types, custom fields, mail rules, and tasks. However, list_documents, query_documents, and the deprecated search_documents overlap on document retrieval, and bulk_edit_* operations partly duplicate individual delete/update verbs.

Naming Consistency5/5

Tool names are uniformly snake_case and follow a predictable verb-first pattern such as list_tags, create_tag, delete_mail_rule, and bulk_edit_documents. Verb choices vary by operation (post_document, process_mail_account, acknowledge_tasks), but the verb_noun structure remains consistent throughout.

Tool Count2/5

At 47 tools, the surface is very large for a single MCP server even though Paperless-ngx is a broad domain with many entity types. This is well beyond the typical well-scoped range and lands in the rubric's 25+ 'too many' category.

Completeness3/5

Core document workflows and metadata lifecycle operations are well covered, including notes, tags, correspondents, document types, custom fields, mail rules, and task acknowledgment. However, storage paths only expose list_storage_paths with no get/create/update/delete, and mail accounts are read/process-only, leaving notable lifecycle gaps.

Maintenance

ActivityMaintained
ResponsivenessMixed handling