Paperless MCP - Document Management System
PDangelmaier
README
Paperless MCP - Document Management System
<p align="center"> <img src="https://via.placeholder.com/200x200?text=Paperless+MCP" alt="Paperless MCP Logo" width="200" height="200"> </p>
<p align="center"> A modern, efficient document management system for the digital workplace </p>
<p align="center"> <a href="#features">Features</a> • <a href="#installation">Installation</a> • <a href="#usage">Usage</a> • <a href="#api-documentation">API</a> • <a href="#configuration">Configuration</a> • <a href="#contributing">Contributing</a> • <a href="#license">License</a> </p>
Overview
Paperless MCP is an open-source document management system designed to streamline the handling of digital documents in enterprise environments. It provides a comprehensive solution for storing, organizing, searching, and processing documents, eliminating the need for physical paperwork and simplifying document workflows.
The system offers robust document processing capabilities, including OCR (Optical Character Recognition), metadata extraction, and automated document classification, all while maintaining strict security and access controls.
Features
Document Storage & Organization
- Secure cloud or on-premises document storage
- Hierarchical folder structure
- Custom metadata and tagging
- Advanced search capabilities
Document Processing
- OCR for scanned documents
- Automated document classification
- Metadata extraction
- PDF processing and manipulation
Security & Compliance
- Role-based access control
- Audit logging for all document activities
- Encryption of sensitive data
- Compliance with industry standards (GDPR, HIPAA, etc.)
Integration & Extensibility
- RESTful API for third-party integration
- Webhook support for automation
- Customizable workflow engine
- Plugin architecture for extending functionality
User Experience
- Intuitive web-based user interface
- Mobile-responsive design
- Document preview and annotation
- Batch operations for efficient document handling
Installation
Prerequisites
- Node.js (v16 or later)
- npm or yarn
- PostgreSQL (v13 or later)
- Docker (optional, for containerized deployment)
Local Installation
- Clone the repository:
git clone https://github.com/yourusername/paperless-mcp.git
cd paperless-mcp
- Install dependencies:
npm install
- Set up environment variables:
cp .env.example .env
# Edit .env with your configuration
- Run database migrations:
npm run migrate
- Start the development server:
npm run dev
Docker Installation
- Clone the repository:
git clone https://github.com/yourusername/paperless-mcp.git
cd paperless-mcp
- Build and start the Docker containers:
docker-compose up -d
The application will be available at http://localhost:3000.
Usage
Basic Operations
Document Upload
import { DocumentService } from 'paperless-mcp';
const documentService = new DocumentService();
const result = await documentService.uploadDocument({
file: fileBuffer,
metadata: {
title: 'Invoice #12345',
category: 'Finance',
tags: ['invoice', '2023', 'vendor-abc']
}
});
Document Retrieval
const document = await documentService.getDocument(documentId);
Document Search
const searchResults = await documentService.searchDocuments({
query: 'invoice',
filters: {
category: 'Finance',
dateRange: {
from: '2023-01-01',
to: '2023-12-31'
}
},
page: 1,
limit: 20
});
CLI Usage
Paperless MCP also provides a command-line interface for administrative tasks:
# Display help
npx paperless-mcp --help
# Initialize the system
npx paperless-mcp init
# Import documents from a directory
npx paperless-mcp import --source /path/to/documents
# Run system diagnostics
npx paperless-mcp diagnose
API Documentation
Paperless MCP exposes a RESTful API for integration with other systems. The API is available at /api/v1
and requires authentication via API keys or JWT tokens.
Authentication
POST /api/v1/auth/login
Request body:
{
"username": "admin",
"password": "your-password"
}
Response:
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresAt": "2023-12-31T23:59:59Z"
}
Documents API
Create Document
POST /api/v1/documents
Request body:
{
"title": "Invoice #12345",
"content": "Base64 encoded file content...",
"metadata": {
"category": "Finance",
"tags": ["invoice", "2023"]
}
}
Get Document
GET /api/v1/documents/:id
Search Documents
GET /api/v1/documents/search?q=invoice&category=Finance&from=2023-01-01&to=2023-12-31&page=1&limit=20
For a complete API reference, see the API Documentation.
Configuration
Paperless MCP can be configured through environment variables, configuration files, or the smithery.yaml
file.
Environment Variables
PORT
: The port the server will listen on (default: 3000)DATABASE_URL
: PostgreSQL connection stringSTORAGE_TYPE
: Storage backend ('local', 's3', 'azure', etc.)STORAGE_PATH
: Local storage path (if STORAGE_TYPE=local)LOG_LEVEL
: Logging level ('debug', 'info', 'warn', 'error')JWT_SECRET
: Secret for JWT token generationOCR_ENGINE
: OCR engine to use ('tesseract', 'azure', etc.)
Configuration File
For more advanced configuration, create a config.js
or config.json
file in the project root. Example:
{
"server": {
"port": 3000,
"host": "0.0.0.0",
"cors": {
"enabled": true,
"origins": ["https://example.com"]
}
},
"database": {
"url": "postgresql://user:password@localhost:5432/paperless",
"pool": {
"min": 2,
"max": 10
}
},
"storage": {
"type": "s3",
"config": {
"bucket": "paperless-documents",
"region": "us-west-2"
}
}
}
Contributing
We welcome contributions to Paperless MCP! Please feel free to submit issues, feature requests, and pull requests.
Development Setup
- Fork the repository
- Clone your fork:
git clone https://github.com/yourusername/paperless-mcp.git
- Create a feature branch:
git checkout -b feature/my-feature
- Make your changes
- Run tests:
npm test
- Commit your changes:
git commit -m 'Add my feature'
- Push to the branch:
git push origin feature/my-feature
- Submit a pull request
Coding Standards
- We follow the TypeScript Coding Guidelines
- All code should be properly typed
- Unit tests are required for new features
- Documentation should be updated with any changes
Documentation
- API documentation is generated using TypeDoc
- Update the README.md if you add or change features
- Add examples for new functionality
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Thanks to all contributors who have helped shape this project
- Special thanks to the open-source community for the tools and libraries that make this project possible
<p align="center"> Made with ❤️ by the Paperless MCP Team </p>
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.