Paperless MCP
io.github.pvliesdonk/paperless-mcp
v3.0.0Updated Sep 21, 2026stdio · Dockerstdio · PyPI
Paperless-NGX over MCP: search, read, upload and tag documents; manage correspondents and types.
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add paperless-mcp -e PAPERLESS_MCP_KV_STORE_URL=file:///data/state -e PAPERLESS_MCP_LOG_LEVEL=INFO -e PAPERLESS_MCP_HTTP_TIMEOUT_SECONDS=30.0 -e PAPERLESS_MCP_HTTP_RETRIES=2 -e PAPERLESS_MCP_DEFAULT_PAGE_SIZE=25 -e PAPERLESS_MCP_TRANSFER_TTL_DEFAULT_S=3600.0 -e PAPERLESS_MCP_TRANSFER_TTL_MAX_S=86400.0 -e PAPERLESS_MCP_TRANSFER_GRACE_TTL_S=60.0 -e PAPERLESS_MCP_TRANSFER_LEASE_S=60.0 -e PAPERLESS_MCP_TRANSFER_MAX_UPLOAD_BYTES=104857600 -- uvx pvliesdonk-paperless-mcp==3.0.0Configuration
40 settings.
PAPERLESS_MCP_API_TOKENEnv var· optional· secretPaperless service-account token used for outbound API requests. The server refuses to start without it.PAPERLESS_MCP_BEARER_TOKENEnv var· optional· secretSingle shared bearer token; enables bearer auth unless `bearer_tokens_file` is set, which takes precedence.PAPERLESS_MCP_OIDC_CLIENT_SECRETEnv var· optional· secretOIDC client secret registered with the provider.PAPERLESS_MCP_OIDC_JWT_SIGNING_KEYEnv var· optional· secretSigning key for issued tokens; used in oidc-proxy mode only. When unset, the key is derived deterministically from `oidc_client_secret`, so tokens survive a restart. Rotating that secret then invalidates every issued token. Set this explicitly to decouple token validity from secret rotation. Generate with `openssl rand -hex 32`.Default:derivedPAPERLESS_MCP_KV_STORE_URLEnv var· optionalPersistent-state backend URL shared by every pvl-core subsystem that needs state. `memory://` is in-process and lost on restart; `file:///path` persists on one server; `redis://`, `dynamodb://` and `mongodb://` each need their matching extra. When unset, defaults to `file:///data/state` (the volume family Docker images mount), or to `memory://` (with a warning) on a host where that directory is not usable.Default:file:///data/statePAPERLESS_MCP_TOOLS_ALLOWEnv var· optionalComma-separated explicit tool names this instance exposes; every other tool is hidden from listings and cannot be invoked. Names matching no registered tool are inert. Mutually exclusive with `tools_deny`. Takes effect through `apply_tool_visibility`.
Show 34 moreShow fewer
PAPERLESS_MCP_TOOLS_DENYEnv var· optionalComma-separated explicit tool names hidden from this instance (absent from listings, cannot be invoked). Names matching no registered tool are inert. Mutually exclusive with `tools_allow`. Takes effect through `apply_tool_visibility`.PAPERLESS_MCP_SERVER_NAMEEnv var· optionalRename this server instance; defaults to the project name.PAPERLESS_MCP_INSTANCE_DESCRIPTIONEnv var· optionalConcise routing context that distinguishes this deployment's material or responsibility.PAPERLESS_MCP_INSTRUCTIONS_EXTRAEnv var· optionalDeployment-specific behavioral policy added to the generated MCP instructions.PAPERLESS_MCP_INSTRUCTIONSEnv var· optionalLegacy: replaces all generated MCP instructions (deprecated; use _INSTANCE_DESCRIPTION for routing and _INSTRUCTIONS_EXTRA for policy).PAPERLESS_MCP_LOG_LEVELEnv var· optionalLog level for every logger in the process, FastMCP's included (DEBUG / INFO / WARNING / ERROR / CRITICAL). The -v CLI flag overrides to DEBUG. The unprefixed FASTMCP_LOG_LEVEL still works for one major version and logs a deprecation warning.Default:INFOPAPERLESS_MCP_LOG_FORMATEnv var· optionalLog rendering. rich is one colour event key=value line per record, for a terminal; json is one JSON object per record, for a collector. Unset picks rich when stderr is a terminal and json everywhere else, so a container or journald gets JSON with no configuration.PAPERLESS_MCP_PAPERLESS_URLEnv var· optionalBase URL of the Paperless-NGX REST API, without a trailing slash. The server refuses to start without it.PAPERLESS_MCP_HTTP_TIMEOUT_SECONDSEnv var· optionalPer-request HTTP timeout in seconds.Default:30.0PAPERLESS_MCP_HTTP_RETRIESEnv var· optionalRetries for idempotent requests after network errors or 5xx responses.Default:2PAPERLESS_MCP_DEFAULT_PAGE_SIZEEnv var· optionalDefault page size for list tools, from 1 through 100.Default:25PAPERLESS_MCP_PAPERLESS_PUBLIC_URLEnv var· optionalPublic Paperless UI URL for user-visible links; defaults to PAPERLESS_URL.PAPERLESS_MCP_TRANSFER_TTL_DEFAULT_SEnv var· optionalLink lifetime in seconds when the caller requests no explicit TTL.Default:3600.0PAPERLESS_MCP_TRANSFER_TTL_MAX_SEnv var· optionalCeiling in seconds a caller-requested link TTL is clamped to.Default:86400.0PAPERLESS_MCP_TRANSFER_GRACE_TTL_SEnv var· optionalPost-success grace window in seconds: a served token's TTL shrinks to this so a stalled transfer can retry within it.Default:60.0PAPERLESS_MCP_TRANSFER_LEASE_SEnv var· optionalCrashed-handler reclaim window in seconds for an in-flight reservation.Default:60.0PAPERLESS_MCP_TRANSFER_MAX_UPLOAD_BYTESEnv var· optionalMaximum size in bytes of a single upload.Default:104857600PAPERLESS_MCP_SHUTDOWN_GRACE_SEnv var· optionalSeconds SIGTERM may spend draining in-flight requests before the HTTP server exits. Keep it at or below the termination grace period the orchestrator allows. `0` drops in-flight requests immediately.Default:3PAPERLESS_MCP_BASE_URLEnv var· optionalPublic base URL of the deployed server, for example `https://mcp.example.com`. Required for OIDC. Also the fallback source of the MCP Apps domain when `app_domain` is unset.PAPERLESS_MCP_OIDC_CONFIG_URLEnv var· optionalOIDC discovery document URL, for example `https://auth.example.com/.well-known/openid-configuration`.PAPERLESS_MCP_OIDC_CLIENT_IDEnv var· optionalOIDC client identifier registered with the provider.PAPERLESS_MCP_OIDC_AUDIENCEEnv var· optionalExpected `aud` claim; tokens issued for another audience are rejected.PAPERLESS_MCP_OIDC_REQUIRED_SCOPESEnv var· optionalScopes a caller must present, space- or comma-separated. Defaults to `openid` in oidc-proxy mode.Default:openidPAPERLESS_MCP_OIDC_ADVERTISED_SCOPESEnv var· optionalScopes advertised to MCP clients in protected-resource metadata, space- or comma-separated. Overrides the default `openid offline_access`; `oidc_required_scopes` is always added on top. Set this when the registered client is not permitted `offline_access`, or to have clients request extra claim scopes (such as `groups`) without also requiring them in every token.Default:openid offline_accessPAPERLESS_MCP_OIDC_VERIFY_ACCESS_TOKENEnv var· optionalValidate the access token instead of the id token.Default:falsePAPERLESS_MCP_APP_DOMAINEnv var· optionalMCP Apps iframe domain, used for CSP sandboxing. Overrides the host derived from `base_url`.PAPERLESS_MCP_AUTH_MODEEnv var· optionalExplicit auth-mode override, accepting `remote` or `oidc-proxy` (case- and whitespace-insensitive). When unset the mode is auto-detected from which auth variables are set; the override exists because having all four OIDC variables set is ambiguous between those two modes. Other values are ignored with a warning.PAPERLESS_MCP_BEARER_TOKENS_FILEEnv var· optionalPath to a TOML file mapping bearer tokens to subjects; overrides the single-token `bearer_token` mode.PAPERLESS_MCP_BEARER_DEFAULT_SUBJECTEnv var· optionalSubject assigned to the single-token bearer mode; ignored when `bearer_tokens_file` is set, since mapped mode carries per-token subjects.Default:bearer-anonPAPERLESS_MCP_HTTP_PATHEnv var· optionalMount path for the MCP endpoint; the health routes derive their prefix from it.Default:/mcpPAPERLESS_MCP_HEALTH_DETAILEnv var· optionalHow much the unauthenticated /health and /health/ready bodies say: status, standard (adds name, version and per-check verdicts), or full (adds redacted reasons; trusted networks only).Default:standardPUIDEnv var· optionalRun the server process as this UID; the container entrypoint reassigns ownership of writable paths to match.Default:1000PGIDEnv var· optionalRun the server process as this GID; pair with PUID to match the owner of a mounted volume.Default:1000--portArgument· optionalPort for the HTTP transportDefault:8000
Links
Listed in the official MCP Registry since Sep 21, 2026. Mirrored daily; last checked Nov 26, 2026.