Paperless-ngx

v0.1.1
io.github.tobee89/mcp-paperless-ngx Checked 2 days ago Published 3 months ago

MCP server for Paperless-ngx 3.x — full REST API coverage, schema-aware, token-frugal.

Values you need

VariableWhat it is
PAPERLESS_URLrequired Base URL of the Paperless-ngx instance
PAPERLESS_TOKENrequired secret Paperless-ngx API token
PAPERLESS_PUBLIC_URLoptional URL used when building links, if the instance is reachable under a different name from outside
PAPERLESS_TOOLSETSoptional Comma-separated toolsets, or all
PAPERLESS_READ_ONLYoptional Expose only tools that cannot change anything Default: false
PAPERLESS_HEADERSoptional Extra request headers; needed behind forward-auth proxies such as Authentik
PAPERLESS_DOWNLOAD_DIRoptional Where downloaded files are written
PAPERLESS_MAX_PAGE_SIZEoptional Hard ceiling on list page sizes Default: 100
PAPERLESS_TIMEOUT_MSoptional Request timeout in milliseconds Default: 60000
PAPERLESS_API_VERSIONoptional REST API version sent in the Accept header Default: 10

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-paperless-ngx -e 'PAPERLESS_TOKEN=<PAPERLESS_TOKEN>' -e 'PAPERLESS_URL=<PAPERLESS_URL>' -- npx -y mcp-paperless-ngx@0.1.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-paperless-ngx": {
      "args": [
        "-y",
        "mcp-paperless-ngx@0.1.1"
      ],
      "command": "npx",
      "env": {
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>",
        "PAPERLESS_URL": "<PAPERLESS_URL>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-paperless-ngx": {
      "args": [
        "-y",
        "mcp-paperless-ngx@0.1.1"
      ],
      "command": "npx",
      "env": {
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>",
        "PAPERLESS_URL": "<PAPERLESS_URL>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "PAPERLESS_TOKEN",
      "id": "paperless-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "PAPERLESS_URL",
      "id": "paperless-url",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-paperless-ngx": {
      "args": [
        "-y",
        "mcp-paperless-ngx@0.1.1"
      ],
      "command": "npx",
      "env": {
        "PAPERLESS_TOKEN": "${input:paperless-token}",
        "PAPERLESS_URL": "${input:paperless-url}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-paperless-ngx]
command = "npx"
args = ["-y", "mcp-paperless-ngx@0.1.1"]
env = { "PAPERLESS_TOKEN" = "<PAPERLESS_TOKEN>", "PAPERLESS_URL" = "<PAPERLESS_URL>" }

For AI agents

  1. Ask the user for: PAPERLESS_URL, PAPERLESS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search_documents, get_document, get_document_content, update_document, delete_document, get_document_metadata, get_document_history, get_document_suggestions, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json