@kjanat/paperless-mcp 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +71 -69
  2. package/dist/index.js +118 -93
  3. package/package.json +62 -52
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Paperless-ngx MCP Server
2
2
 
3
+ [![NPM Version](https://img.shields.io/npm/v/@kjanat/paperless-mcp?logo=npm&labelColor=CB3837&color=black)](https://www.npmjs.com/package/@kjanat/paperless-mcp)
4
+
3
5
  An MCP (Model Context Protocol) server for interacting with a Paperless-ngx API server. This server provides tools for managing documents, tags, correspondents, and document types in your Paperless-ngx instance.
4
6
 
5
7
  ## Quick Start
@@ -16,16 +18,16 @@ An MCP (Model Context Protocol) server for interacting with a Paperless-ngx API
16
18
 
17
19
  ```jsonc
18
20
  {
19
- "mcpServers": {
20
- "paperless": {
21
- "command": "bunx", // or npx
22
- "args": ["@kjanat/paperless-mcp"],
23
- "env": {
24
- "PAPERLESS_URL": "http://your-paperless-instance:8000",
25
- "PAPERLESS_API_KEY": "your-api-token",
26
- },
27
- },
28
- },
21
+ "mcpServers": {
22
+ "paperless": {
23
+ "command": "bunx", // or npx
24
+ "args": ["@kjanat/paperless-mcp"],
25
+ "env": {
26
+ "PAPERLESS_URL": "http://your-paperless-instance:8000",
27
+ "PAPERLESS_API_KEY": "your-api-token",
28
+ },
29
+ },
30
+ },
29
31
  }
30
32
  ```
31
33
 
@@ -33,16 +35,16 @@ An MCP (Model Context Protocol) server for interacting with a Paperless-ngx API
33
35
 
34
36
  ```jsonc
35
37
  {
36
- "mcpServers": {
37
- "paperless": {
38
- "command": "bunx", // or npx
39
- "args": [
40
- "@kjanat/paperless-mcp",
41
- "http://your-paperless-instance:8000",
42
- "your-api-token",
43
- ],
44
- },
45
- },
38
+ "mcpServers": {
39
+ "paperless": {
40
+ "command": "bunx", // or npx
41
+ "args": [
42
+ "@kjanat/paperless-mcp",
43
+ "http://your-paperless-instance:8000",
44
+ "your-api-token",
45
+ ],
46
+ },
47
+ },
46
48
  }
47
49
  ```
48
50
 
@@ -94,7 +96,7 @@ Parameters:
94
96
 
95
97
  ```typescript
96
98
  get_document({
97
- id: 123,
99
+ id: 123,
98
100
  });
99
101
  ```
100
102
 
@@ -108,7 +110,7 @@ Parameters:
108
110
 
109
111
  ```typescript
110
112
  search_documents({
111
- query: "invoice 2024",
113
+ query: "invoice 2024",
112
114
  });
113
115
  ```
114
116
 
@@ -123,8 +125,8 @@ Parameters:
123
125
 
124
126
  ```typescript
125
127
  download_document({
126
- id: 123,
127
- original: false,
128
+ id: 123,
129
+ original: false,
128
130
  });
129
131
  ```
130
132
 
@@ -167,39 +169,39 @@ Examples:
167
169
  ```typescript
168
170
  // Add a tag to multiple documents
169
171
  bulk_edit_documents({
170
- documents: [1, 2, 3],
171
- method: "add_tag",
172
- tag: 5,
172
+ documents: [1, 2, 3],
173
+ method: "add_tag",
174
+ tag: 5,
173
175
  });
174
176
 
175
177
  // Set correspondent and document type
176
178
  bulk_edit_documents({
177
- documents: [4, 5],
178
- method: "set_correspondent",
179
- correspondent: 2,
179
+ documents: [4, 5],
180
+ method: "set_correspondent",
181
+ correspondent: 2,
180
182
  });
181
183
 
182
184
  // Merge documents
183
185
  bulk_edit_documents({
184
- documents: [6, 7, 8],
185
- method: "merge",
186
- metadata_document_id: 6,
187
- delete_originals: true,
186
+ documents: [6, 7, 8],
187
+ method: "merge",
188
+ metadata_document_id: 6,
189
+ delete_originals: true,
188
190
  });
189
191
 
190
192
  // Split document into parts
191
193
  bulk_edit_documents({
192
- documents: [9],
193
- method: "split",
194
- pages: "[1-2,3-4,5]",
194
+ documents: [9],
195
+ method: "split",
196
+ pages: "[1-2,3-4,5]",
195
197
  });
196
198
 
197
199
  // Modify multiple tags at once
198
200
  bulk_edit_documents({
199
- documents: [10, 11],
200
- method: "modify_tags",
201
- add_tags: [1, 2],
202
- remove_tags: [3, 4],
201
+ documents: [10, 11],
202
+ method: "modify_tags",
203
+ add_tags: [1, 2],
204
+ remove_tags: [3, 4],
203
205
  });
204
206
  ```
205
207
 
@@ -222,14 +224,14 @@ Parameters:
222
224
 
223
225
  ```typescript
224
226
  post_document({
225
- file: "base64_encoded_content",
226
- filename: "invoice.pdf",
227
- title: "January Invoice",
228
- created: "2024-01-19",
229
- correspondent: 1,
230
- document_type: 2,
231
- tags: [1, 3],
232
- archive_serial_number: "2024-001",
227
+ file: "base64_encoded_content",
228
+ filename: "invoice.pdf",
229
+ title: "January Invoice",
230
+ created: "2024-01-19",
231
+ correspondent: 1,
232
+ document_type: 2,
233
+ tags: [1, 3],
234
+ archive_serial_number: "2024-001",
233
235
  });
234
236
  ```
235
237
 
@@ -260,10 +262,10 @@ Parameters:
260
262
 
261
263
  ```typescript
262
264
  create_tag({
263
- name: "Invoice",
264
- color: "#ff0000",
265
- match: "invoice",
266
- matching_algorithm: 5,
265
+ name: "Invoice",
266
+ color: "#ff0000",
267
+ match: "invoice",
268
+ matching_algorithm: 5,
267
269
  });
268
270
  ```
269
271
 
@@ -281,9 +283,9 @@ Parameters:
281
283
 
282
284
  ```typescript
283
285
  update_tag({
284
- id: 5,
285
- name: "Invoices",
286
- color: "#00ff00",
286
+ id: 5,
287
+ name: "Invoices",
288
+ color: "#00ff00",
287
289
  });
288
290
  ```
289
291
 
@@ -297,7 +299,7 @@ Parameters:
297
299
 
298
300
  ```typescript
299
301
  delete_tag({
300
- id: 5,
302
+ id: 5,
301
303
  });
302
304
  ```
303
305
 
@@ -315,8 +317,8 @@ Parameters:
315
317
 
316
318
  ```typescript
317
319
  bulk_edit_tags({
318
- tag_ids: [1, 2, 3],
319
- operation: "delete",
320
+ tag_ids: [1, 2, 3],
321
+ operation: "delete",
320
322
  });
321
323
  ```
322
324
 
@@ -346,9 +348,9 @@ Parameters:
346
348
 
347
349
  ```typescript
348
350
  create_correspondent({
349
- name: "ACME Corp",
350
- match: "ACME",
351
- matching_algorithm: 5,
351
+ name: "ACME Corp",
352
+ match: "ACME",
353
+ matching_algorithm: 5,
352
354
  });
353
355
  ```
354
356
 
@@ -366,8 +368,8 @@ Parameters:
366
368
 
367
369
  ```typescript
368
370
  bulk_edit_correspondents({
369
- correspondent_ids: [1, 2],
370
- operation: "delete",
371
+ correspondent_ids: [1, 2],
372
+ operation: "delete",
371
373
  });
372
374
  ```
373
375
 
@@ -397,9 +399,9 @@ Parameters:
397
399
 
398
400
  ```typescript
399
401
  create_document_type({
400
- name: "Invoice",
401
- match: "invoice total amount due",
402
- matching_algorithm: 1,
402
+ name: "Invoice",
403
+ match: "invoice total amount due",
404
+ matching_algorithm: 1,
403
405
  });
404
406
  ```
405
407
 
@@ -417,8 +419,8 @@ Parameters:
417
419
 
418
420
  ```typescript
419
421
  bulk_edit_document_types({
420
- document_type_ids: [1, 2],
421
- operation: "delete",
422
+ document_type_ids: [1, 2],
423
+ operation: "delete",
422
424
  });
423
425
  ```
424
426