Paperless-ngx
v0.1.1MCP server for Paperless-ngx 3.x — full REST API coverage, schema-aware, token-frugal.
Values you need
| Variable | What it is | |
|---|---|---|
PAPERLESS_URL | required | Base URL of the Paperless-ngx instance |
PAPERLESS_TOKEN | required secret | Paperless-ngx API token |
PAPERLESS_PUBLIC_URL | optional | URL used when building links, if the instance is reachable under a different name from outside |
PAPERLESS_TOOLSETS | optional | Comma-separated toolsets, or all |
PAPERLESS_READ_ONLY | optional | Expose only tools that cannot change anything Default: false |
PAPERLESS_HEADERS | optional | Extra request headers; needed behind forward-auth proxies such as Authentik |
PAPERLESS_DOWNLOAD_DIR | optional | Where downloaded files are written |
PAPERLESS_MAX_PAGE_SIZE | optional | Hard ceiling on list page sizes Default: 100 |
PAPERLESS_TIMEOUT_MS | optional | Request timeout in milliseconds Default: 60000 |
PAPERLESS_API_VERSION | optional | 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.1Add 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
- Ask the user for: PAPERLESS_URL, PAPERLESS_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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