MENA GS1 Pharmaceutical Track-and-Trace & Egypt Nafeza 19-Digit ACID MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MENA GS1 Pharmaceutical Track-and-Trace & Egypt Nafeza 19-Digit ACID MCP Server parse this GS1 DataMatrix and validate its check digit: 01012345678901281725053110LOT123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
NBrain MENA GS1 Pharmaceutical Track-and-Trace (SFDA RSD, UAE Tatmeen, Egypt EDA) & Egypt Nafeza 19-Digit ACID + MCP
Engineered by Eng. Nadeem Mohamed Badr Eldin at NBrain (nbra.in).
Core Capabilities
GS1 DataMatrix 2D Barcode Parser (
FNC1/& HRI(01)...) — DecodesAI (01)GTIN-14,AI (17)YYMMDD Expiry (including the official GS1DD=00leap-year-aware end-of-month rule),AI (10)Batch/Lot,AI (21)Unique Serial Number,AI (00)SSCC-18, andAI (410/414)GLN-13.Saudi SFDA
RSD(Rasad), UAE MoHAPTatmeen& EgyptEDAValidation — Blocks expired or check-digit-corrupted packs before pharmacy dispensing and builds GS1 EPCIS 2.0 JSON-LD (SGTIN/SGLNURIs).Egypt Customs
Nafeza19-Digit ACID & IATAOCISegment Generator — Validates 19-digit ACID declarations, 9-digit Egyptian Importer Tax IDs, and CargoX/IATA Air WaybillOCI/EG/IMP/M/...segments.Built-in Model Context Protocol (
MCP) Server — Ready for Claude Code, Cline, Cursor, Docker MCP Toolkit, and Antigravity.
Related MCP server: chestnyznak-mcp
Run Unit Tests
python -m unittest discover -s tests -vAvailable Tools
4 toolsbuild_epcis2_pharma_eventB
Generate a GS1 EPCIS 2.0 JSON-LD ObjectEvent (SGTIN / SGLN URIs) for Saudi SFDA RSD or UAE Tatmeen reporting.
Inputs: raw_scan (required), regime, sender_gln, action_type, +1 more.
validate_egypt_nafeza_acidB
Validate Egypt Customs Nafeza 19-digit ACID & 9-digit Importer Tax ID and generate IATA Air Waybill OCI & CargoX envelope metadata.
Inputs: acid_number (required), importer_tax_id (required), exporter_reg_number, exporter_country_iso2.
validate_mena_pharma_packB
Parse and validate a 2D GS1 DataMatrix pharmaceutical pack (AI 01 GTIN-14, AI 17 YYMMDD expiry incl. DD=00 rule, AI 10 Batch, AI 21 Serial) against Saudi SFDA RSD, UAE MoHAP Tatmeen, or Egypt EDA.
Inputs: raw_scan (required), regime, reference_date.
verify_gs1_identifierA
Verify GS1 Modulo-10 check digit and MENA GS1 country prefix for GTIN-8/12/13/14, GLN-13, or SSCC-18.
Inputs: code (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct artifact: full pack parsing, EPCIS event generation, Egypt ACID/Waybill metadata, and generic GS1 identifier checks. The one blurred boundary is between validate_mena_pharma_pack and verify_gs1_identifier, since pack validation implicitly includes GTIN check-digit verification, and the validate/verify verb distinction is subtle. Descriptions do disambiguate (pack vs single identifier), so misselection risk is low but non-zero.
All names use snake_case with a leading verb (validate_, build_, verify_), giving a predictable pattern. Minor deviation: three names use validate/verify interchangeably for what is essentially checksum/format checking, and 'mena_pharma_pack' drops the GS1 qualifier present in the other names, but the convention is otherwise coherent.
Four tools is on the lean side but each maps to a clearly separate workflow step (pack validation, event build, ACID/customs check, identifier verification), so none feel padded. It sits just below the ideal 5-15 range for a domain this broad, but the scoping is defensible for a focused validator server.
The surface covers inbound validation and outbound EPCIS event generation for Saudi/UAE, plus Egypt customs ACID — but Egypt EDA has a validator with no corresponding EPCIS/reporting event builder, creating an asymmetric dead end. There is also no aggregation/cartonization event support, no master-data or reference lookup, and no way to validate a produced EPCIS event before submission.
Maintenance
Related MCP Connectors
EPCIS 2.0 repository: trace products, query and count events, resolve GS1 Digital Links.
Manage products, EU Digital Product Passports, operator parties, and GS1 EPCIS supply-chain events.
Barcodes, price watch, QR, VINs, tariffs, invoices, VAT and product checksums, via Apify.
GS1 barcodes, check digits, freight class, CBM, Julian dates and shelf life, worked out from input.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for generating and decoding barcodes, QR codes, and encoding RFID EPCs according to GS1 standards. All processing is local with no network calls.5MIT
- AlicenseAqualityCmaintenanceEnables Russian product marking verification via Chestny ZNAK/CRPT APIs, including authenticity checks, product details, batch checks, and authorized GTIN/CIS lookups.26545 npm6MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents to decode and render barcodes/QR codes and validate GTINs via the Model Context Protocol, with both hosted and self-hosted deployment options.-
- AlicenseAqualityCmaintenanceEnables AI clients to canonicalize Egyptian Tax Authority B2B e-invoices and B2C e-receipts, compute SHA-256 UUIDs, verify previousUUID chains and tax registration numbers, and calculate EGP VAT and withholding tax.4MIT