SuperAPIAI Directory

mcp-paperless-ngx

github.com · AI developer platforms

mcp-paperless-ngx is a Model Context Protocol (MCP) server for Paperless-ngx 3.x, built on REST API version 10, covering 92 documented endpoints, and designed to control model context consumption through on-demand trimming of list responses, toolset grouping, and read-only mode. It is suitable for MCP clients such as Claude Desktop, Cursor, and Cline, enabling models to search, organize, and manage documents in Paperless-ngx.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux · API

About this tool

mcp-paperless-ngx is a Model Context Protocol (MCP) server for Paperless-ngx 3.x, built on Paperless-ngx REST API version 10. Its goal is to provide language models in MCP clients with access to the Paperless-ngx document management system while controlling model context overhead.

Purpose and positioning The server wraps the Paperless-ngx REST API as MCP tools for invocation by MCP-capable clients such as Claude Desktop, Cursor, and Cline. It explicitly does not support Paperless-ngx 2.x, because API version 10 introduces endpoints such as nested tags, document versions, share_link_bundles, and split PDF operations, and the server assumes these endpoints exist.

Main capabilities

  • Endpoint coverage: The 92 documented endpoints are either exposed as tools or listed in src/tools/coverage.ts with the reason for exclusion, and tests enforce this coverage relationship.
  • Context control: Paperless documents contain full OCR text; list results are trimmed server-side via ?fields=, OCR text is provided by a separate paginated tool, and list endpoints do not return raw API responses directly.
  • Toolsets: Only the tools needed by a specific client are exposed via toolsets; --read-only removes all write paths.
  • Security design: Destructive tools carry the destructiveHint: true annotation; batch endpoints accept only explicit ID lists and do not provide an "apply to all matches" mode; credential-related endpoints (such as token generation, TOTP enrollment, and disabling another person's second factor) are not exposed.
  • Prompts: Registered as slash commands in clients that support MCP prompts, for example audit_sharing for reviewing publicly shared content.

Usage You first need to obtain an API token from the Paperless Web UI: username in the top right corner → My Profile → the circular arrow button next to the API token field. The CLI flags --url, --token, --public-url, --toolsets, and --read-only override environment variables; --check verifies connectivity, and --list-tools prints the enabled tools. The mail and admin toolsets are disabled by default and must be explicitly enabled. If a session is only used for searching and archiving documents, you can set PAPERLESS_TOOLSETS=documents,metadata to save context.

Testing and maintenance npm test checks endpoint coverage, enum values, whether list tools leak raw API objects, and whether read-only mode removes write tools. smoke-test.mjs calls all read-only tools against a real instance and writes nothing. write-test.mjs covers upload, field updates, notes, batch tag editing, share links, rotation, and trash round-trips, operating only on objects it creates itself with the zz-mcp-test prefix. sync-schema.mjs can regenerate schema/endpoints.json from the instance's OpenAPI document, and tests report endpoints that are neither exposed nor explicitly excluded.

Use cases and limitations Suitable for users who need to manage Paperless-ngx 3.x documents in MCP clients and care about context cost. Limitations include: Paperless-ngx 2.x is not supported; you must provide your own API token; some toolsets are disabled by default; destructive operations require the client and user to judge and confirm on their own. The project uses the MIT license.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools