paperless-mcp
paperless-mcp
A read-only MCP server for your paperless-ngx document archive. It lets an AI assistant search your documents by full text, tags, correspondents, and dates, and read the text of any document — without being able to change or delete anything.
Setup
uv syncYou'll need an API token from your paperless-ngx instance: log in, open your profile (the person icon in the top right), and copy or generate the API token there.
The server is configured entirely through environment variables:
export PAPERLESS_URL=https://paperless.example.com
export PAPERLESS_TOKEN=your-api-tokenConnecting a client
For Claude Code:
claude mcp add paperless \
-e PAPERLESS_URL=https://paperless.example.com \
-e PAPERLESS_TOKEN=your-api-token \
-- uv run --directory /path/to/paperless-mcp paperless-mcpFor Claude Desktop, add this to claude_desktop_config.json:
{
"mcpServers": {
"paperless": {
"command": "uv",
"args": ["run", "--directory", "/path/to/paperless-mcp", "paperless-mcp"],
"env": {
"PAPERLESS_URL": "https://paperless.example.com",
"PAPERLESS_TOKEN": "your-api-token"
}
}
}
}Tools
Tool | What it does |
| Full-text search (whoosh syntax) plus filters for title, content, tags, correspondent, document type, storage path, and dates |
| One document's full metadata, with optional inline text content |
| Tags, filterable by name |
| Correspondents, filterable by name |
| Document types, filterable by name |
| Storage paths, filterable by name |
| Custom field definitions |
Every document result includes a uri like paperless://documents/42 that
can be read as an MCP resource.
Resources
Resource | Contents |
| The document's full text |
| A WebP thumbnail of the first page |
Security
This server is read-only by construction: it only ever issues GET requests to paperless-ngx, and it exposes no way to create, modify, or delete documents. It performs no authentication of its own — anyone who can reach the running server can read whatever the configured token can read, so treat the token accordingly and run the server close to where you use it.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrisguidry/paperless-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server