MCP (Model Context Protocol) server configuration for Paperless-NGX integration with Claude Code.
This project provides a configured instance of the @baruchiro/paperless-mcp server, which allows Claude Code to interact with your Paperless-NGX document management system.
- Search and retrieve documents from Paperless-NGX
- Manage tags, correspondents, and document types
- Upload new documents
- Perform bulk operations on documents
- Full integration with Claude Code
- Node.js (v16 or higher)
- A running Paperless-NGX instance
- Paperless-NGX API token
- Clone this repository:
git clone https://github.com/Makerflix/paperless-mcp.git
cd paperless-mcp- Install dependencies:
npm install- Create your configuration file:
cp config.example.json config.json- Edit
config.jsonwith your Paperless-NGX details:
{
"paperless_url": "http://your-paperless-instance:8001",
"paperless_token": "your-api-token-here"
}- Log into your Paperless-NGX instance
- Click your username in the top right
- Select "My Profile"
- Click the circular arrow button to generate a new token
- Copy the token to your
config.json
Add this to your Claude Code MCP configuration:
{
"mcpServers": {
"paperless": {
"command": "npx",
"args": ["-y", "@baruchiro/paperless-mcp@latest"],
"env": {
"PAPERLESS_URL": "http://your-paperless-instance:8001",
"PAPERLESS_API_KEY": "your-api-token"
}
}
}
}Run the MCP server directly:
npx @baruchiro/paperless-mcpOnce configured, you can ask Claude to:
- "Show me all documents tagged as 'Invoice'"
- "Search for documents containing 'tax return'"
- "Create a new tag called 'Receipts'"
- "Download document #123"
- "List all correspondents"
- "Upload this document to Paperless"
- Never commit
config.json- It contains your API token - The
.gitignorefile is configured to exclude sensitive files - Use
config.example.jsonas a template
paperless-mcp/
├── config.json # Your configuration (not in git)
├── config.example.json # Template configuration
├── package.json # Dependencies
├── package-lock.json # Locked dependencies
└── README.md # This file
- Verify your Paperless-NGX instance is running
- Check that the URL in
config.jsonis correct - Ensure your API token is valid
- Restart Claude Code after configuration changes
- Check the Claude Code logs for errors
- Verify the MCP server is properly installed
- Paperless-NGX - Document management system
- @baruchiro/paperless-mcp - Original MCP server package
ISC
Makerflix