Back to Home
Subhan696 icon

Logistic-MCP-server

by Subhan696

Overview

An MCP server to help AI agents manage logistics invoices by fetching emails, downloading attachments, parsing PDFs, and storing structured data.

Installation

Run Command
npm start

Environment Variables

  • DATABASE_URL
  • GEMINI_API_KEY
  • OPENAI_API_KEY
  • ENCRYPTION_KEY

Security Notes

CRITICAL: The `ENCRYPTION_KEY` in `src/utils/encryption.ts` has a hardcoded fallback value (`'default-secret-key-must-be-32-bytes'`) if `process.env.ENCRYPTION_KEY` is not explicitly set. This severely compromises the security of stored broker email credentials in a production environment. The `src/scripts/seedBroker.ts` file, while intended for development, encourages directly embedding sensitive email credentials into the source code, which is poor security practice. The `ImapService` correctly uses encrypted credentials for IMAP connections. Processing arbitrary PDF files (via `pdf-parse` and `tesseract.js`) can theoretically pose risks if malicious content is embedded, but no specific vulnerability in the parsing logic is immediately apparent.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassMedium
Avg Tokens900
Stars0
Forks0
Last Update2026-01-19

Tags

LogisticsInvoice AutomationEmail ProcessingPDF ParsingAI Agent Tool