Back to Home
Alex1966design icon

thai-customs-ed01-mcp

Verified Safe

by Alex1966design

Overview

Facilitates the generation of draft Thai Customs ED01 declarations, either via a Gradio web interface from uploaded PDFs or programmatically through MCP tools from structured data, including item parsing and weight allocation.

Installation

Run Command
python server.py

Security Notes

The code employs robust PDF text extraction (PyMuPDF) and 'STRICT' parsing logic, mitigating risks of arbitrary code execution through input. No critical hardcoded secrets are found. Potential security considerations include vulnerabilities within the PyMuPDF library itself when processing untrusted PDFs (outside the scope of this code review), and the exposure of detailed error messages if the Gradio app's debug mode (`debug=True`) is used in a public production environment. The MCP server tools handle structured JSON inputs and perform deterministic calculations, with no direct use of `eval` or similar dangerous functions on user-provided data.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-14

Tags

CustomsDeclarationPDF ProcessingAI Agent ToolGradio