Skip to main content
Glama
mcp-paperless-ngx

mcp-paperless-ngx


Construido contra la API REST versión 10, con tres cosas que hace de forma diferente:

  • Cobertura justificada. Cada uno de los 92 endpoints documentados está expuesto como herramienta o aparece en src/tools/coverage.ts con una razón escrita para excluirlo. Una prueba lo verifica, de modo que una versión de Paperless que añada un endpoint haga fallar la CI en lugar de quedar silenciosamente sin soporte.

  • Disciplina de tokens. Un documento de Paperless lleva su texto OCR completo. Los envoltorios ingenuos lo devuelven por defecto y una sola búsqueda puede agotar el contexto del modelo. Aquí, los resultados de las listas se recortan en el servidor mediante ?fields=, el texto vive detrás de su propia herramienta paginada, y ningún endpoint de lista pasa la respuesta cruda de la API — una prueba lo verifica. Véase Coste de contexto.

  • Superficie limitada. 99 herramientas ahogarían la lista de herramientas de un modelo. Los conjuntos de herramientas permiten exponer solo lo que un cliente concreto necesita, y --read-only elimina por completo cualquier vía de escritura.

Paperless-ngx 2.x no es compatible: la versión 10 de la API introdujo endpoints (etiquetas anidadas, versiones de documentos, share_link_bundles, las operaciones de división de PDF) que este servidor asume que existen.

Inicio rápido

npx -y mcp-paperless-ngx --check   # verify connectivity, then exit

Claude Code

claude mcp add paperless --scope user \
  --env PAPERLESS_URL=https://paperless.example.com \
  --env PAPERLESS_TOKEN=your-api-token \
  -- npx -y mcp-paperless-ngx

Claude Desktop, Cursor, Cline y otros clientes MCP

{
  "mcpServers": {
    "paperless": {
      "command": "npx",
      "args": ["-y", "mcp-paperless-ngx"],
      "env": {
        "PAPERLESS_URL": "https://paperless.example.com",
        "PAPERLESS_TOKEN": "your-api-token"
      }
    }
  }
}

Obtener un token de API

Interfaz web de Paperless → tu nombre de usuario (arriba a la derecha) → Mi perfil → el botón de flecha circular junto al campo del token de API.

Related MCP server: paperless-mcp

Configuración

Variable

Obligatoria

Valor por defecto

Propósito

PAPERLESS_URL

sí

—

URL base con la que habla el servidor.

PAPERLESS_TOKEN

sí

—

Token de API. PAPERLESS_API_KEY también funciona.

PAPERLESS_PUBLIC_URL

no

PAPERLESS_URL

URL utilizada al construir enlaces para el usuario, si la instancia es accesible desde fuera con un nombre diferente.

PAPERLESS_TOOLSETS

no

ver más abajo

Conjuntos de herramientas separados por comas, o all.

PAPERLESS_READ_ONLY

no

false

Expone solo las herramientas que no pueden cambiar nada.

PAPERLESS_HEADERS

no

—

Cabeceras de petición adicionales, como JSON ({"X-Auth":"…"}) o Nombre: valor, Nombre: valor. Necesarias detrás de proxies de autenticación directa como Authentik o Authelia.

PAPERLESS_DOWNLOAD_DIR

no

temp del sistema

Dónde se escriben los archivos descargados.

PAPERLESS_MAX_PAGE_SIZE

no

100

Límite máximo de tamaños de página en las listas, sea cual sea lo que pida el modelo.

PAPERLESS_TIMEOUT_MS

no

60000

Tiempo de espera de las peticiones.

PAPERLESS_API_VERSION

no

10

Versión de la API REST enviada en la cabecera Accept.

Los indicadores de línea de comandos --url, --token, --public-url, --toolsets y --read-only anulan el entorno. --check verifica la conectividad, --list-tools imprime las herramientas habilitadas.

Conjuntos de herramientas

Conjunto de herramientas

Por defecto

Contenido

documents

activado

Buscar, leer, actualizar, eliminar, subir, descargar, notas, operaciones masivas y de PDF

metadata

activado

Etiquetas, remitentes, tipos de documento, rutas de almacenamiento

customfields

activado

Definiciones de campos personalizados

views

activado

Vistas guardadas

sharing

activado

Enlaces de compartición y paquetes de enlaces de compartición

workflows

activado

Reglas de automatización, disparadores, acciones

system

activado

Búsqueda global, estadísticas, estado, tareas, papelera

mail

desactivado

Cuentas IMAP, reglas de correo, correo procesado

admin

desactivado

Usuarios, grupos, perfil, configuración, registros (solo lectura)

mail y admin están desactivados por defecto porque la mayoría de las sesiones nunca los necesitan y cada herramienta extra cuesta contexto en cada petición. Actívalos explícitamente:

PAPERLESS_TOOLSETS=documents,metadata,system,mail
PAPERLESS_TOOLSETS=all

Coste de contexto

Envolver una API para un modelo de lenguaje tiene un coste que la propia API no tiene: todo lo que el modelo ve se paga en cada petición. Dos lugares donde eso afecta, y qué hace este servidor al respecto.

Respuestas. Tres formas son caras en Paperless y fáciles de devolver por accidente:

Fuente

Problema

Manejo

Listas de documentos

Cada documento lleva su texto OCR completo en content

?fields= restringe la respuesta en el servidor; get_document_content pagina el texto por separado

/api/search/

Devuelve objetos Document completos, con texto OCR incluido, en todos los tipos de objetos

Los documentos se resumen, los demás tipos se reducen a id + nombre

Flujos de trabajo, reglas de correo, grupos, tareas

27–34 campos por objeto, definiciones de disparador/acción anidadas en línea

Resumidos a campos identificativos; las listas anidadas se colapsan en recuentos. full: true lo devuelve todo

Definiciones de herramientas. Son el coste más grande y menos evidente: nombres, descripciones y esquemas JSON viajan con cada petición, se llame o no a alguna herramienta.

Conjuntos de herramientas

Herramientas

Coste aproximado por petición

all

99

~20 500 tokens

por defecto

85

~18 500 tokens

documents,metadata

49

~12 900 tokens

No hay forma de que eso sea gratis — es el precio de una herramienta que el modelo puede usar sin adivinar. Pero merece la pena ser deliberado: si tus sesiones solo buscan y archivan documentos, ejecutar PAPERLESS_TOOLSETS=documents,metadata ahorra más contexto que cualquier recorte de respuestas.

Seguridad

El servidor expone operaciones destructivas, porque un gestor de documentos sin ellas no es gran cosa. No intenta adivinar cuándo son apropiadas — ese juicio pertenece al cliente y al usuario. Lo que sí hace:

  • Las herramientas destructivas están anotadas con destructiveHint: true, para que los clientes MCP puedan exigir confirmación.

  • Las descripciones de las herramientas indican claramente lo que no se puede deshacer (empty_trash, delete_custom_field, delete_originals) y piden confirmación antes de la llamada.

  • --read-only elimina toda herramienta de escritura de la lista, en lugar de rechazarlas en el momento de la llamada.

  • Los endpoints masivos admiten un modo "aplicar a todo lo que coincida con este filtro". Este servidor no lo expone: las herramientas masivas aceptan listas explícitas de IDs, de modo que un filtro erróneo no pueda afectar silenciosamente a todo el archivo.

  • create_share_link produce una URL accesible públicamente. Su descripción lo indica, y el prompt audit_sharing existe para revisar lo que ya está expuesto.

Los endpoints relacionados con credenciales (generación de tokens, registro de TOTP, desactivación del segundo factor de alguien) se excluyen deliberadamente. Véase EXCLUDED_ENDPOINTS para la lista completa y el razonamiento.

Prompts

Registrados como comandos de barra en los clientes que admiten prompts MCP:

Prompt

Qué hace

triage_inbox

Recorre los documentos sin clasificar, propone metadatos prefiriendo las entradas existentes, no aplica nada hasta que el usuario lo aprueba.

find_document

Localiza un documento a partir de una descripción vaga, buscando de forma barata antes de buscar de forma amplia.

audit_sharing

Revisa todos los enlaces de compartición públicos y señala los que nunca caducan.

Pruebas

Tres capas, porque detectan cosas diferentes:

npm test                                        # logic — no network
PAPERLESS_URL=… PAPERLESS_TOKEN=… \
  node scripts/smoke-test.mjs                   # all 55 read-only tools, live
PAPERLESS_URL=… PAPERLESS_TOKEN=… \
  node scripts/write-test.mjs                   # writes, live — see the warning

npm test comprueba el razonamiento propio de este servidor: cobertura de endpoints, valores de enumeración contra el esquema, que ninguna herramienta de listas filtre objetos crudos de la API, que el modo de solo lectura elimine realmente las escrituras.

smoke-test.mjs comprueba las suposiciones que hace sobre Paperless. Llama a todas las herramientas de solo lectura contra una instancia real, resolviendo los IDs a partir de llamadas de listas en lugar de codificarlos, e imprime los tamaños de las respuestas para que las herramientas caras sigan siendo visibles. No escribe nada.

write-test.mjs cubre el resto: subida y consumo, actualización de cada tipo de campo, notas, ediciones masivas de etiquetas, enlaces de compartición, rotación y un ciclo de ida y vuelta con la papelera.

Solo toca los objetos que crea él mismo. Todo lo que crea lleva el prefijo zz-mcp-test y se elimina de nuevo al final, y nunca modifica un documento que no haya subido. Si una ejecución se interrumpe, los restos con ese prefijo son seguros de eliminar. Prefiere una instancia de prueba si tienes una.

Mantenerse al día con Paperless

PAPERLESS_URL=… PAPERLESS_TOKEN=… node scripts/sync-schema.mjs
npm test

sync-schema.mjs regenera schema/endpoints.json a partir del documento OpenAPI de tu propia instancia. El conjunto de pruebas informa entonces de cualquier endpoint que no esté ni expuesto ni excluido explícitamente. Ese es todo el bucle de mantenimiento: apúntalo a una versión más reciente de Paperless y la prueba te dirá qué ha cambiado.

Desarrollo

npm install
npm start          # run from source
npm run build      # compile to build/
npm test           # unit tests + coverage checks
npm run inspect    # build, then open the MCP inspector

Trabajo previo

Ya existen varios servidores MCP para Paperless, sobre todo cubinet-code/paperless-ngx-mcp, y también nloui/paperless-mcp y barryw/PaperlessMCP. Están dirigidos a la API 2.x. Si usas Paperless-ngx 2.x, usa uno de esos; este asume 3.x.

Licencia

MIT. Ver LICENSE.


Available Tools

85 tools
acknowledge_tasksDismiss tasksA

Mark finished or failed tasks as acknowledged so they stop showing in the UI.

Inputs: tasks (required).

bulk_download_documentsBulk download documentsA
Read-onlyIdempotent

Download several documents as one zip archive, written to the download directory. Returns the archive path, not its contents.

Inputs: documents (required), content, filename, compression, +1 more.

bulk_edit_documentsBulk edit documentsA
Destructive

Apply one operation to many documents at once. Far cheaper than looping update_document, and the only way to add or remove individual tags without replacing the whole tag list. Methods: set_correspondent, set_document_type, set_storage_path, add_tag, remove_tag, modify_tags, modify_custom_fields, set_permissions, reprocess, delete, rotate, merge, split, delete_pages, edit_pdf, remove_password. The destructive methods (delete, delete_pages, split/merge with delete_originals) need explicit user confirmation first.

Inputs: method (required), documents (required), tag, merge, +14 more.

bulk_edit_metadata_objectsBulk edit metadata objectsA
Destructive

Delete or set permissions on many tags, correspondents, document types or storage paths at once. Deletion here is permanent — confirm with the user before calling it.

Inputs: objects (required), operation (required), object_type (required), merge, +2 more.

create_correspondentCreate correspondentA

Create a new correspondent. Check list_correspondents first: near-duplicate entries are hard to merge later.

Inputs: name (required), match, owner, is_insensitive, +2 more.

create_custom_fieldCreate custom fieldA

Define a new custom field. The data type cannot be changed afterwards, so pick it deliberately.

Inputs: name (required), data_type (required), extra_data.

create_document_noteAdd a note to a documentA

Attach a free-text note to a document. Use this to record context that belongs with the document rather than in the conversation — why it was kept, what was agreed, what to do next.

Inputs: id (required), note (required).

create_document_typeCreate document typeA

Create a new document type. Check list_document_types first: near-duplicate entries are hard to merge later.

Inputs: name (required), match, owner, is_insensitive, +2 more.

create_saved_viewCreate saved viewA

Save a filter preset that shows up in the user's Paperless sidebar. filter_rules use the web UI's numeric rule types — copy the shape from an existing view via get_saved_view rather than guessing.

Inputs: name (required), page_size, sort_field, filter_rules, +3 more.

create_storage_pathCreate storage pathA

Create a new storage path. Check list_storage_paths first: near-duplicate entries are hard to merge later.

Inputs: name (required), path (required), match, owner, +3 more.

create_tagCreate tagA

Create a new tag. Check list_tags first: near-duplicate entries are hard to merge later.

Inputs: name (required), color, match, owner, +5 more.

create_workflowCreate workflowA

Create an automation rule. Workflows run automatically against future documents, so a mistake here silently mis-files everything that arrives afterwards. Read an existing workflow with get_workflow to copy the exact shape, and confirm the rule with the user before creating it. Trigger object. type: 1=consumption started, 2=document added, 3=document updated, 4=scheduled. Common fields: sources (1=consume folder, 2=API upload, 3=mail fetch), filter_filename, filter_path, filter_mailrule, match + matching_algorithm, filter_has_tags / filter_has_all_tags / filter_has_not_tags, filter_has_any_correspondents, filter_has_any_document_types, filter_custom_field_query, and for scheduled triggers schedule_offset_days, schedule_is_recurring, schedule_recurring_interval_days, schedule_date_field (added|created|modified|custom_field). Action object. type: 1=assignment, 2=removal, 3=email, 4=webhook, 5=..., 6=... Assignment actions use assign_title, assign_tags, assign_correspondent, assign_document_type, assign_storage_path, assign_owner, assign_view_users/groups, assign_custom_fields. Removal actions use the remove_* counterparts. Email and webhook actions nest their own config object.

Inputs: name (required), actions (required), triggers (required), order, +1 more.

delete_correspondentDelete correspondentA
Destructive

Permanently delete a correspondent. Documents are not deleted, but they lose this assignment and it cannot be restored. Confirm with the user first.

Inputs: id (required).

delete_custom_fieldDelete custom fieldA
Destructive

Delete a custom field definition and every value stored in it, across all documents. This cannot be undone — confirm with the user, and check document_count first.

Inputs: id (required).

delete_documentDelete documentA
Destructive

Move a document to the trash. It stays recoverable until the trash is emptied or the retention period expires. Always confirm with the user before deleting anything.

Inputs: id (required).

delete_document_noteDelete a document noteA
Destructive

Remove a note from a document. Not recoverable.

Inputs: id (required), note_id (required).

delete_documentsDelete documentsA
Destructive

Move several documents to the trash at once. Recoverable until the trash is emptied. Requires explicit user confirmation — list what will be deleted before calling this.

Inputs: documents (required).

delete_document_typeDelete document typeA
Destructive

Permanently delete a document type. Documents are not deleted, but they lose this assignment and it cannot be restored. Confirm with the user first.

Inputs: id (required).

delete_saved_viewDelete saved viewA
Destructive

Remove a saved view. Documents are unaffected.

Inputs: id (required).

delete_storage_pathDelete storage pathA
Destructive

Permanently delete a storage path. Documents are not deleted, but they lose this assignment and it cannot be restored. Confirm with the user first.

Inputs: id (required).

delete_tagDelete tagA
Destructive

Permanently delete a tag. Documents are not deleted, but they lose this assignment and it cannot be restored. Confirm with the user first.

Inputs: id (required).

delete_workflowDelete workflowA
Destructive

Delete an automation rule permanently. Consider update_workflow with enabled:false instead.

Inputs: id (required).

download_documentDownload documentA
Read-onlyIdempotent

Save a document's file to disk on the machine running this MCP server and return the path. Files are written to PAPERLESS_DOWNLOAD_DIR (defaults to the system temp directory). The bytes are deliberately not returned inline — a PDF as base64 would consume the entire context.

Inputs: id (required), version, filename.

edit_pdfEdit a PDFA
Destructive

Reorder, rotate, remove or split out pages of a single document, producing a new document. operations is a list of page instructions; each entry names a source page and what to do with it. Consult the Paperless API docs for the exact operation shape before using this.

Inputs: documents (required), operations (required), delete_original, update_document, +1 more.

email_documentsEmail documentsA

Send one or more documents by email from the Paperless instance. This sends real mail to real people — only call it after the user has confirmed the recipients, subject and body.

Inputs: message (required), subject (required), addresses (required), documents (required), +1 more.

empty_trashEmpty the trashA
Destructive

Permanently destroy trashed documents. There is no recovery after this — the files are gone. Never call this without the user explicitly asking for it in the current conversation, and list what is in the trash first.

Inputs: documents.

get_active_tasksCurrently running tasksA
Read-onlyIdempotent

Tasks executing right now. Tells you whether the instance is busy.

Inputs: no named parameters.

get_correspondentGet correspondentA
Read-onlyIdempotent

Fetch a single correspondent by ID, with all fields.

Inputs: id (required).

get_custom_fieldGet custom fieldB
Read-onlyIdempotent

One custom field definition including its select options, if any.

Inputs: id (required).

get_documentGet documentA
Read-onlyIdempotent

Fetch one document's metadata by ID: title, correspondent, type, tags, dates, custom fields, notes and available versions. Does not include the OCR text unless include_content is set.

Inputs: id (required), include_content.

get_document_ai_suggestionsGet AI filing suggestionsA
Read-onlyIdempotent

Suggestions from the instance's configured LLM backend (Paperless-ngx 3.x, only if AI features are enabled server-side). Returns 404 or an error when AI is disabled — that is expected, not a bug.

Inputs: id (required).

get_document_contentGet document textA
Read-onlyIdempotent

Return the OCR/extracted text of one document. Deliberately a separate tool: this is the most expensive thing you can pull from Paperless, so fetch it only for documents you have already narrowed down. Supports offset/limit for long documents.

Inputs: id (required), limit, offset.

get_document_historyGet document historyA
Read-onlyIdempotent

Audit trail of changes to a document — who changed which field, and when. Requires audit logging to be enabled on the instance. Returns the most recent entries first; raise limit to see further back.

Inputs: id (required), limit.

get_document_metadataGet document file metadataA
Read-onlyIdempotent

Technical file metadata for a document: checksums, byte sizes, MIME type, stored filename, whether an archived PDF/A version exists, and embedded PDF metadata. Not the Paperless tags/correspondent — use get_document for those.

Inputs: id (required).

get_document_suggestionsGet filing suggestionsA
Read-onlyIdempotent

Paperless' own suggestions for a document — correspondents, tags, document types and dates its classifier considers likely. Useful as a starting point when triaging, but the suggestions are only as good as the trained model; verify before applying.

Inputs: id (required).

get_document_thumbnailGet document thumbnailA
Read-onlyIdempotent

Return the document's thumbnail image inline so it can actually be looked at. Useful for confirming what a document is without reading its whole OCR text.

Inputs: id (required).

get_document_typeGet document typeA
Read-onlyIdempotent

Fetch a single document type by ID, with all fields.

Inputs: id (required).

get_metadata_overviewMetadata overviewA
Read-onlyIdempotent

One compact snapshot of all tags, correspondents, document types and storage paths with their IDs and document counts. Cheaper than four separate list calls and the right first step before filing or triaging documents.

Inputs: no named parameters.

get_next_asnGet next archive serial numberA
Read-onlyIdempotent

The next free archive serial number, for filing a physical document alongside its scan.

Inputs: no named parameters.

get_remote_versionCheck for Paperless updatesA
Read-onlyIdempotent

The latest Paperless-ngx release, and whether an update is available.

Inputs: no named parameters.

get_saved_viewGet saved viewA
Read-onlyIdempotent

One saved view including its filter rules, so you can reproduce it as a search.

Inputs: id (required).

get_selection_dataSummarise a document selectionA
Read-onlyIdempotent

For a set of document IDs, return how many of them carry each tag, correspondent, document type and storage path. Answers 'what is in this pile?' in one call instead of fetching every document.

Inputs: documents (required).

get_server_statusServer statusA
Read-onlyIdempotent

Instance health: Paperless version, database and index status, whether Redis and the task workers are reachable, and whether the search index is up to date.

Inputs: no named parameters.

get_statisticsArchive statisticsA
Read-onlyIdempotent

Totals for the archive: document count, inbox count, characters, file type breakdown. A cheap orientation call at the start of a session.

Inputs: no named parameters.

get_storage_pathGet storage pathA
Read-onlyIdempotent

Fetch a single storage path by ID, with all fields.

Inputs: id (required).

get_tagGet tagA
Read-onlyIdempotent

Fetch a single tag by ID, with all fields.

Inputs: id (required).

get_taskGet a background taskA
Read-onlyIdempotent

One background task by database ID, including its result. Use this to find out whether an upload or merge actually succeeded.

Inputs: id (required).

get_workflowGet workflowA
Read-onlyIdempotent

One workflow with its full trigger and action definitions.

Inputs: id (required).

list_correspondentsList correspondentsA
Read-onlyIdempotent

List correspondents. A correspondent is the sender or counterparty a document came from. Returns id, name and document_count for each. Call this before creating anything — reusing an existing correspondent is almost always correct.

Inputs: full, page, ordering, page_size, +1 more.

list_custom_fieldsList custom fieldsA
Read-onlyIdempotent

Custom fields defined on this instance, with their IDs, data types and how many documents use them. You need the IDs before you can read or write custom field values on a document.

Inputs: full, page, ordering, page_size, +1 more.

list_document_notesList document notesA
Read-onlyIdempotent

Notes attached to a document, with authors and timestamps. Notes hold context the OCR text does not contain — worth reading before drawing conclusions about a document.

Inputs: id (required).

list_document_typesList document typesA
Read-onlyIdempotent

List document types. A document type says what kind of document it is (invoice, contract, payslip). Returns id, name and document_count for each. Call this before creating anything — reusing an existing document type is almost always correct.

Inputs: full, page, ordering, page_size, +1 more.

list_saved_viewsList saved viewsA
Read-onlyIdempotent

Saved views are the filter presets the user built in the Paperless web UI. Reading them is the fastest way to learn how this person actually organises their archive — check here before inventing your own filters.

Inputs: full, page, ordering, page_size, +1 more.

list_storage_pathsList storage pathsA
Read-onlyIdempotent

List storage paths. A storage path is a filename template controlling where Paperless stores the file on disk. Returns id, name and document_count for each. Call this before creating anything — reusing an existing storage path is almost always correct.

Inputs: full, page, ordering, page_size, +1 more.

list_tagsList tagsA
Read-onlyIdempotent

List tags. Tags are the primary way documents are categorised, and can be nested via parent. Returns id, name and document_count for each. Call this before creating anything — reusing an existing tag is almost always correct.

Inputs: full, page, ordering, page_size, +1 more.

list_tasksList background tasksA
Read-onlyIdempotent

Background tasks — consumption, merges, reprocessing — with their state and result. This is where an upload's outcome shows up, including the ID of the document it created.

Inputs: full, page, status, task_id, +4 more.

list_trashList trashed documentsA
Read-onlyIdempotent

Documents in the trash, with the date each was deleted and when it will be purged for good.

Inputs: full, page, ordering, page_size, +1 more.

list_workflow_actionsList workflow actionsA
Read-onlyIdempotent

Action definitions across all workflows. Useful for auditing what gets assigned automatically.

Inputs: full, page, ordering, page_size, +1 more.

list_workflowsList workflowsA
Read-onlyIdempotent

Automation rules on this instance, each with its triggers and actions inlined. Read these before changing filing behaviour — a workflow may already be doing what the user is asking you to do by hand.

Inputs: full, page, ordering, page_size, +1 more.

list_workflow_triggersList workflow triggersB
Read-onlyIdempotent

Trigger definitions across all workflows. Useful for auditing what fires when.

Inputs: full, page, ordering, page_size, +1 more.

merge_documentsMerge documentsA
Destructive

Merge several documents into one new PDF, in the order given. The originals stay unless delete_originals is set. Runs asynchronously — poll the returned task with get_task.

Inputs: documents (required), archive_fallback, delete_originals, metadata_document_id.

remove_pdf_passwordRemove a PDF passwordA

Decrypt password-protected PDFs so Paperless can OCR them. The password is sent to your Paperless instance over its API; only use it against an instance you control.

Inputs: password (required), documents (required), delete_original, update_document, +1 more.

reprocess_documentsReprocess documentsA

Re-run OCR and the archive generation for the given documents, e.g. after changing OCR settings. Queued asynchronously; the documents keep their metadata.

Inputs: documents (required).

restore_from_trashRestore documents from trashA

Bring deleted documents back. The safe counterpart to delete_document.

Inputs: documents (required).

rotate_documentsRotate documentsA

Rotate every page of the given documents clockwise by 90, 180 or 270 degrees.

Inputs: degrees (required), documents (required).

search_autocompleteAutocomplete a search termA
Read-onlyIdempotent

Completions for a partial search term, ranked by importance in the full-text index. Helpful when the user's spelling of a name or term may not match what is in the archive.

Inputs: term (required), limit.

search_documentsSearch documentsA
Read-onlyIdempotent

Find documents by full-text search, metadata filters, or both. This is the main entry point for every 'which documents ...' question. Returns a compact summary per document (id, title, IDs of correspondent/type/tags, dates) — NOT the OCR text, which would flood the context. Use get_document_content for the text of a specific document.

Inputs: page, query, ordering, is_tagged, +19 more.

test_storage_pathTest a storage path templateA
Read-onlyIdempotent

Render a storage path template against an existing document to see the resulting file path. Use this to validate a template before saving it.

Inputs: path (required), document (required).

update_correspondentUpdate correspondentA

Partially update a correspondent. Only the fields you pass are changed; omitted fields keep their current value.

Inputs: id (required), name, match, owner, +3 more.

update_custom_fieldUpdate custom fieldA

Rename a custom field or adjust its extra_data (e.g. add select options). Changing data_type is not supported by Paperless.

Inputs: id (required), name, extra_data.

update_documentUpdate documentA

Change metadata on a single document. Only the fields you pass are modified. Pass numeric IDs for correspondent, document_type and storage_path — resolve names via get_metadata_overview first. Setting tags replaces the whole tag list; to add or remove individual tags across documents use bulk_edit_documents.

Inputs: id (required), tags, owner, title, +6 more.

update_document_typeUpdate document typeA

Partially update a document type. Only the fields you pass are changed; omitted fields keep their current value.

Inputs: id (required), name, match, owner, +3 more.

update_saved_viewUpdate saved viewA

Change a saved view's name, sorting, visibility or filter rules.

Inputs: id (required), name, page_size, sort_field, +4 more.

update_storage_pathUpdate storage pathA

Partially update a storage path. Only the fields you pass are changed; omitted fields keep their current value.

Inputs: id (required), name, path, match, +4 more.

update_tagUpdate tagA

Partially update a tag. Only the fields you pass are changed; omitted fields keep their current value.

Inputs: id (required), name, color, match, +6 more.

update_workflowUpdate workflowA

Update a workflow. Passing triggers or actions replaces the existing list wholesale — fetch the current definition with get_workflow, modify it, and send the complete list back. To simply switch a rule off, pass enabled:false and nothing else.

Inputs: id (required), name, order, actions, +2 more.

upload_documentUpload a documentA

Hand a file to Paperless for consumption. Provide either path (a file on the machine running this server — the cheap option) or content_base64 (works for remote deployments but costs context proportional to the file size; avoid for anything over a few hundred kilobytes). Consumption is asynchronous: the returned task ID can be polled with get_task.

Inputs: path, tags, title, created, +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 85 tools

    Disambiguation3/5

    Most CRUD tool families are clearly separated by resource type, but bulk_edit_documents overlaps with rotate_documents, merge_documents, edit_pdf, reprocess_documents, and delete_documents by exposing the same operations as methods. get_document with include_content also partially duplicates get_document_content, so an agent must read descriptions carefully to pick the right tool.

    Naming Consistency5/5

    Nearly every tool follows the verb_noun snake_case pattern, with predictable list/get/create/update/delete families for each resource type. Minor exceptions like global_search and search_autocomplete still fit the general verb-first style and do not create confusion.

    Tool Count1/5

    85 tools is an extreme surface for an MCP server, far beyond the practical range for agent tool selection. Even for a broad domain like Paperless-ngx, this exceeds the 50+ threshold that constitutes an extreme mismatch.

    Completeness4/5

    The server covers nearly the entire Paperless lifecycle: document search, content retrieval, metadata editing, OCR reprocessing, merging, trash management, share links, workflows, tasks, and full CRUD for all metadata objects. Minor gaps remain, such as no note update tool, no share-link update tool, and no direct user or mail-rule management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      A
      maintenance
      An MCP (Model Context Protocol) server for interacting with a Paperless-NGX API server. This server provides tools for managing documents, tags, correspondents, and document types in your Paperless-NGX instance.
      47
      1,246 npm
      154
      TypeScript
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      A read-only and write MCP server for Paperless-ngx, enabling document listing, metadata retrieval, and creation of tags, correspondents, document types, and sorting workflows via natural language.
      MIT