Skip to main content
Glama
MENA GS1 Pharmaceutical Track-and-Trace & Egypt Nafeza 19-Digit ACID MCP Server

MENA GS1 Pharmaceutical Track-and-Trace & Egypt Nafeza 19-Digit ACID MCP Server

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

  1. GS1 DataMatrix 2D Barcode Parser (FNC1 /  & HRI (01)...) — Decodes AI (01) GTIN-14, AI (17) YYMMDD Expiry (including the official GS1 DD=00 leap-year-aware end-of-month rule), AI (10) Batch/Lot, AI (21) Unique Serial Number, AI (00) SSCC-18, and AI (410/414) GLN-13.

  2. Saudi SFDA RSD (Rasad), UAE MoHAP Tatmeen & Egypt EDA Validation — Blocks expired or check-digit-corrupted packs before pharmacy dispensing and builds GS1 EPCIS 2.0 JSON-LD (SGTIN / SGLN URIs).

  3. Egypt Customs Nafeza 19-Digit ACID & IATA OCI Segment Generator — Validates 19-digit ACID declarations, 9-digit Egyptian Importer Tax IDs, and CargoX/IATA Air Waybill OCI/EG/IMP/M/... segments.

  4. 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 -v

Available Tools

4 tools
build_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

    B3.4/5.0

    Scored across 4 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      MCP server for generating and decoding barcodes, QR codes, and encoding RFID EPCs according to GS1 standards. All processing is local with no network calls.
      5
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      -
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      4
      MIT