# Paperless-ngx

> Paperless-ngx is an open-source MCP server for files and documents. MCP server that lets AI assistants search, read, file and upload paperless-ngx documents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted, VS Code, macOS, Windows, Linux
- **Repository:** https://github.com/gardenbaum/mcp-server-paperless
- **MCP Registry name:** io.github.gardenbaum/mcp-server-paperless
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-27

## About

Connects an MCP-capable assistant such as Claude, Cursor or VS Code to a paperless-ngx 3.x archive. Documents can be found by name, read in pieces, filed and uploaded, and taxonomy items such as tags, correspondents and types are referred to by name rather than numeric id.

The server ships with 111 tools grouped into 14 toolsets, but only the core and AI toolsets are on by default, keeping the assistant's tool list short. Toolsets for PDF operations, trash, versions, sharing, mail rules, workflows and administration can be enabled through an environment variable, and a read-only mode is available.

Before tools that delete, overwrite, publish or share anything, the server describes the effect and asks for confirmation through a client dialog or a repeated call. It runs as stdio locally or over Streamed HTTP with a bearer token, and acts as the Paperless user who owns the API token.

## Features

- **Search by name:** Finds documents, tags, correspondents and types by their names instead of internal ids.
- **Confirm before final changes:** Deletes, overwrites and shares are previewed and only proceed after an explicit yes.
- **Adjustable toolsets:** Fourteen toolsets can be switched on individually, or the server can be limited to read-only tools.
- **Upload and download limits:** File upload and download paths and size limits are restricted to directories and sizes you configure.
- **Remote access with auth:** Over HTTP the server refuses to start without a bearer token and supports OIDC sign-in for claude.ai.

## Good for

- Asking an assistant which documents in the inbox still need a correspondent or tag
- Finding and totalling expense documents such as bills for a given period
- Uploading a scanned invoice and filing it with the right tags
- Reading a specific page of a long scanned contract through the assistant
- Cleaning up duplicate or unused tags in a Paperless instance

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server-paperless --env PAPERLESS_URL='<PAPERLESS_URL>' --env PAPERLESS_TOKEN='<PAPERLESS_TOKEN>' -- uvx mcp-server-paperless
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server-paperless --env PAPERLESS_URL='<PAPERLESS_URL>' --env PAPERLESS_TOKEN='<PAPERLESS_TOKEN>' -- uvx mcp-server-paperless
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server-paperless]
command = "uvx"
args = ["mcp-server-paperless"]
env = { PAPERLESS_URL = "<PAPERLESS_URL>", PAPERLESS_TOKEN = "<PAPERLESS_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e PAPERLESS_URL='<PAPERLESS_URL>' -e PAPERLESS_TOKEN='<PAPERLESS_TOKEN>' mcp-server-paperless uvx -- mcp-server-paperless

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Which paperless-ngx versions are supported?

paperless-ngx 3.5.1 or later (API version 10). Older 3.x releases and 2.x are not supported.

### Do I need a Paperless API token?

Yes. The server requires PAPERLESS_URL and PAPERLESS_TOKEN, and acts as the user who owns that token.

### Can I run Paperless-ngx without allowing changes?

Yes. Setting PAPERLESS_MCP_READ_ONLY to true offers only tools that change nothing.

### How do I install Paperless-ngx for Claude Code?

Run claude mcp add with the URL and token environment variables and uvx mcp-server-paperless@latest as the command.

### Is Paperless-ngx free?

Yes. Paperless-ngx is open source, so you can use and self-host it for free.

### How do I add Paperless-ngx to Claude Code?

Run this command in your terminal: claude mcp add mcp-server-paperless --env PAPERLESS_URL='<PAPERLESS_URL>' --env PAPERLESS_TOKEN='<PAPERLESS_TOKEN>' -- uvx mcp-server-paperless

### What are the best alternatives to Paperless-ngx?

The closest alternatives to Paperless-ngx are Paperless MCP, Paperless-ngx, Paper, PrivaTools and Nutrient Document Engine MCP Server.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Paperless MCP](https://ai-powered.com/mcp/paperless-mcp): Paperless MCP is an open-source MCP server for files and documents.
- [Paperless-ngx](https://ai-powered.com/mcp/paperless-ngx-2): Paperless-ngx is an open-source MCP server for files and documents.
- [Paper](https://ai-powered.com/mcp/paper): Paper is an open-source MCP server for files and documents.
- [PrivaTools](https://ai-powered.com/mcp/privatools): PrivaTools is a freemium MCP server for files and documents.
- [Nutrient Document Engine MCP Server](https://ai-powered.com/mcp/nutrient-document-engine-mcp-server): Nutrient Document Engine MCP Server is an open-source MCP server for files and documents.
- [PDF.chat](https://ai-powered.com/mcp/pdf-chat): PDF.chat is a freemium MCP server for files and documents.
- [Docs MCP](https://ai-powered.com/mcp/docs-mcp-5): Docs MCP is a freemium MCP server for files and documents.
- [Laserfiche MCP](https://ai-powered.com/mcp/laserfiche-mcp): Laserfiche MCP is an open-source MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/paperless-ngx-3
