mcp-paperless-ngx

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.

Category
访问服务器

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 metadata
  • get_document_content — retrieve extracted text content of a document
  • get_document_suggestions — AI-generated metadata suggestions for a document
  • list_tags — list all tags
  • list_correspondents — list all correspondents
  • list_document_types — list all document types
  • list_workflows — list all sorting workflows
  • list_workflow_triggers — list all workflow triggers
  • list_workflow_actions — list all workflow actions

Tools (write — metadata and workflow creation)

  • create_tag — create a new tag
  • create_correspondent — create a new correspondent
  • create_document_type — create a new document type
  • create_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 documents
  • get_document_data_for_rule_creation(document_id) — detailed document data to help design a sorting rule
  • create_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 Versioningv1.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:

  1. Open SettingsFunctions

  2. Click "+" to add a new function

  3. 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 /mcp path are required
    • 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
    • Description: (Optional) "Access Paperless-ngx documents"
  4. Click Save

  5. Test the connection by asking: "Show me documents in my inbox"

Common Issues

  • 404 errors: Verify the URL includes /mcp at the end
  • Connection refused: Ensure the port :8000 is included and the server is running (uv run mcp-paperless-ngx)
  • Authentication errors: Confirm Auth is set to "None", not "Bearer"

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选