/paperless-ngx:paperless-ngx-manage-instancesfrom paperless-ngx
Configure connections to one or more Paperless-ngx MCP server deployments: add a new instance (URL plus API token or OAuth login, optionally labeled), list which are configured and connected, or remove one. Every instance is registered as a user-scoped MCP server via `claude mcp add` (no settings.json editing, no bundled .mcp.json). Use when the paperless MCP server is unconfigured, disconnected or missing credentials (including when a SessionStart hook flags this), when the user asks to set up, configure or connect the Paperless-ngx plugin, or when they want to add, remove or list additional Paperless-ngx instances.
Ships in paperless-ngx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Every Paperless-ngx instance, including the first/default one, is its own MCP server registered with the claude mcp add CLI command, scoped user so it's available to every project under the current Claude Code installation. The default instance is named paperless-ngx; each additional one is paperless-ngx-<label> (e.g. paperless-ngx-work). Instances registered as paperless-ngx_<label> still count. Claude Code exposes each server's tools under its own prefix (mcp__paperless-ngx__*, mcp__paperless-ngx-work__*, …); skills resolve which prefix to use per task, see Working with multiple instances.
This skill is the only way instances get configured. Go through claude mcp add/list/get/remove only. Never write an mcpServers block into settings.json (it rejects the key) and never create a .mcp.json.
There is no claude CLI there; a Paperless-ngx MCP server is connected as a custom connector instead. If Paperless-ngx tools are already available, say so and stop. Otherwise explain the steps, with the Paperless-ngx MCP server's public HTTPS URL ending in /mcp:
MCP_BASE_URL and MCP_OAUTH_SECRET set); claude.ai can't send a token header.Paperless-ngx) and the URL, keep the detected OAuth choices, then sign in with the Paperless-ngx username and password.Details: https://paperless-ngx-mcp.marceltov.de/claude-ai/. Everything below applies to Claude Code only.
Figure out from the request whether the user wants to add a new instance, list what's configured, or remove one. Default to add when the trigger is a missing-credentials nudge and the user hasn't said otherwise.
Check whether Paperless-ngx is already reachable before asking anything. Any of these means it is:
mcp__paperless-ngx__* tools are listed as available in this session.mcp__claude_ai_Paperless-NGX__documents_list). The SessionStart hook can't see connectors, so its one-time setup offer may come anyway.claude mcp get paperless-ngx exits 0 (its output shows scope and connection status, never the token).If so, stop: report what's already configured and finish. Only continue if the user explicitly wants an additional instance, or none of these is true.
For an additional instance (not the first), ask for a label, a short name like work or home. Sanitize it: lowercase, replace every run of characters outside [a-z0-9] with -, strip leading/trailing -. If the result is empty, ask again. Run claude mcp get paperless-ngx-<label>: exit 0 means the name is taken (a miss lists every configured server, useful for suggesting a free label); ask for another label instead of overwriting.
Skip this step for the first/default instance; it stays unlabeled (server name paperless-ngx).
Ask for the remaining values, one at a time:
/mcp. http://localhost:8081/mcp is the default port of a local Paperless-ngx MCP server container; offer it as a suggestion but still ask.MCP_BASE_URL and MCP_OAUTH_SECRET set. No token is needed; Claude Code opens the login on first use.Register the instance:
# API token
claude mcp add --transport http <name> "<url>" -H "Authorization: <token>" -s user
# OAuth
claude mcp add --transport http <name> "<url>" -s user
<name> is paperless-ngx or paperless-ngx-<label>. The token appears in the command's arguments; there's no other way to pass it, so don't print or log it anywhere else.
Tell the user to restart Claude Code (or start a new session). A newly added server only connects on the next launch. With OAuth, the first tool call opens the login.
claude mcp list; it health-checks every configured server.paperless-ngx([-_].+)?. Each ends with a connection status.paperless-ngx) and connected or not. Mention claude.ai connectors with Paperless-ngx tools too, if any are loaded in this session. Never print tokens.claude mcp remove <name> with the exact server name.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/paperless-ngx-clean-up-inboxReview the Paperless-ngx inbox (or any selection of documents) one document at a time and fix what automatic import got wrong: useless titles (email subjects, scanner file names), wrong or import-day dates, wrong correspondents, document types and tags. Marks every reviewed document, removes duplicates on request, and ends with a report of follow-ups (open payment reminders, possible business receipts, documents that need a human). Use when the user asks to clean up, sort, review, tidy or process their Paperless-ngx inbox, or says many documents have wrong dates, correspondents, tags or types./paperless-ngx-edit-document-metadataChange the title, date, correspondent, document type, storage path, tags or custom fields of one or many Paperless-ngx documents with documents_partial_update and bulk_edit, avoiding the API's traps (null not clearing fields, tag lists being replaced, parent tags added automatically). Use when the user asks to rename, re-date, re-tag, recategorize or otherwise correct documents, or when another skill needs to write metadata.Other plugins' skills for the same job
/paperless-ngx-find-duplicatesFind duplicate documents in Paperless-ngx (byte-identical copies flagged by has_duplicates, and same-content copies such as a scan and a PDF of the same invoice), pick which copy to keep, and move the others to the trash after the user confirms. Use when the user asks to find or remove duplicates, when an import ran twice, or when clean-up-inbox finds many copies.npx claudepluginhub marceltov/paperless-ngx-plugin --plugin paperless-ngx