mcp-paperless-ngx
A read-only and write MCP server for Paperless-ngx, enabling document listing, metadata retrieval, and creation of tags, correspondents, document types, and sorting workflows via natural language.
README
mcp-paperless-ngx
MCP server for Paperless-ngx using the streamable HTTP transport protocol.
Features
Resources
| URI | Description |
|---|---|
paperless://openapi |
Full OpenAPI spec for the Paperless-ngx REST API |
paperless://server |
Configured server base URL |
paperless://token |
API auth token |
Tools (read-only)
list_documents— list documents with filters (tag, correspondent, document type, full-text query)get_document— retrieve a single document with all metadataget_document_content— retrieve extracted text content of a documentget_document_suggestions— AI-generated metadata suggestions for a documentlist_tags— list all tagslist_correspondents— list all correspondentslist_document_types— list all document typeslist_workflows— list all sorting workflowslist_workflow_triggers— list all workflow triggerslist_workflow_actions— list all workflow actions
Tools (write — metadata and workflow creation)
create_tag— create a new tagcreate_correspondent— create a new correspondentcreate_document_type— create a new document typecreate_workflow_trigger— create a workflow trigger (conditions)create_workflow_action— create a workflow action (assignments)create_workflow— create a complete workflow linking triggers and actions
Prompts
get_inbox_documents— formatted overview of all inbox documentsget_document_data_for_rule_creation(document_id)— detailed document data to help design a sorting rulecreate_sorting_rule(document_id?)— guided walkthrough for creating a sorting workflow
Configuration
Create ~/.config/mcp-paperless-ngx/config.toml:
[paperless]
server_url = "http://your-paperless-server:8000"
token = "your-api-token"
inbox_tag_id = 1 # ID of the tag used for the inbox view
Override the config path with the PAPERLESS_MCP_CONFIG environment variable.
Running
# Install dependencies
uv sync
# Start the server (listens on 0.0.0.0:8000/mcp)
uv run mcp-paperless-ngx
The MCP endpoint is available at http://localhost:8000/mcp (streamable HTTP).
Docker
Quick start
# Pull and run (replace values in the environment or mount a config file)
docker run -d \
--name mcp-paperless-ngx \
-p 8000:8000 \
-v ./config:/config:ro \
ghcr.io/Code-Omega-Solutions/mcp-paperless-ngx:latest
Create ./config/config.toml before starting (see Configuration above).
docker-compose
# 1. Create the config directory and file
mkdir config
cat > config/config.toml <<'EOF'
[paperless]
server_url = "http://your-paperless-server:8000"
token = "your-api-token"
inbox_tag_id = 1
EOF
# 2. Start the service
docker compose up -d
# 3. Check it is healthy
docker compose ps
The docker-compose.yml in this repository mounts ./config as read-only and
includes a health check that verifies the server is accepting TCP connections on
port 8000.
Building locally
docker build -t mcp-paperless-ngx .
docker run -d -p 8000:8000 -v ./config:/config:ro mcp-paperless-ngx
Published image
Pre-built images for linux/amd64 and linux/arm64 are available at:
ghcr.io/Code-Omega-Solutions/mcp-paperless-ngx:latest
Tags follow Semantic Versioning — v1.2.3, 1.2, latest.
Getting an API token
In Paperless-ngx, go to Settings → Profile and generate an API token, or use:
curl -X POST http://your-server/api/token/ \
-d '{"username": "your-user", "password": "your-password"}' \
-H "Content-Type: application/json"
Connecting from Open WebUI
To use this MCP server with Open WebUI:
-
Open Settings → Functions
-
Click "+" to add a new function
-
Configure the MCP connection:
- Name: Paperless Assistant (or your preferred name)
- Type: MCP
- URL:
http://host.docker.internal:8000/mcp- If Open WebUI runs in Docker on the same host as mcp-paperless-ngx, use
host.docker.internal - If running on different hosts, replace with the actual hostname/IP
- Critical: The port (
:8000) and/mcppath are required
- If Open WebUI runs in Docker on the same host as mcp-paperless-ngx, use
- Auth: None ⚠️
- Do NOT use "Bearer" — the server authenticates to Paperless internally using credentials from
config.toml - Open WebUI does not need to provide additional auth tokens
- Do NOT use "Bearer" — the server authenticates to Paperless internally using credentials from
- Description: (Optional) "Access Paperless-ngx documents"
-
Click Save
-
Test the connection by asking: "Show me documents in my inbox"
Common Issues
- 404 errors: Verify the URL includes
/mcpat the end - Connection refused: Ensure the port
:8000is included and the server is running (uv run mcp-paperless-ngx) - Authentication errors: Confirm Auth is set to "None", not "Bearer"
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。