Skip to content
MCP server

Paperless-ngx

MCP server that lets AI assistants search, read, file and upload paperless-ngx documents

Runs locally

Paperless-ngx is an open-source MCP server for files and documents. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Access
Needs a secret key or token
Version
0.5.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.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.

Claude Desktop setup guide

Add to ~/.cursor/mcp.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.

Cursor setup guide

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

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

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-server-paperless": {
      "command": "uvx",
      "args": [
        "mcp-server-paperless"
      ],
      "env": {
        "PAPERLESS_URL": "<PAPERLESS_URL>",
        "PAPERLESS_TOKEN": "<PAPERLESS_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.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.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.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.

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "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.

    Junie

    Add to ~/.junie/mcp/mcp.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.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.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.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • PAPERLESS_URLBase URL of the paperless-ngx 3.x instanceRequired
  • PAPERLESS_TOKENPaperless API token; the server acts as this userRequired
  • PAPERLESS_PUBLIC_URLBase URL for links shown to users, if it differs from PAPERLESS_URL
  • PAPERLESS_MCP_TOOLSETSToolsets to offer, comma-separated, or all; name:read offers a toolset only for reading
  • PAPERLESS_MCP_READ_ONLYOffer only tools that change nothing
  • PAPERLESS_MCP_REQUIRE_DIALOGConfirm only by an accepted dialog (the client must support form elicitation), never by confirm=true
  • PAPERLESS_MCP_DISABLED_TOOLSTools never offered, comma-separated
  • PAPERLESS_MCP_UPLOAD_DIRSAbsolute directories the upload tools may read files from by path (default: none)
  • PAPERLESS_MCP_DOWNLOAD_DIRSAbsolute directories the download tools may save files into (default: none)
  • PAPERLESS_MCP_MAX_UPLOAD_BYTESLargest file the upload tools take, in bytes (at most 104857600)
  • PAPERLESS_MCP_MAX_DOWNLOAD_BYTESLargest file or part the download tools attach, in bytes (at most 33554432)
  • PAPERLESS_MCP_LOG_LEVELMinimum level of log records written to stderr
  • PAPERLESS_MCP_STARTUP_TIMEOUTSeconds the startup check may take

About Paperless-ngx

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.

What it does

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

Pricing

Open source

Free and open source under the MIT licence; self-hosted.

Paperless-ngx 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.

How AIPoweredBot checks servers