npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

arabic-invoice-mcp

v1.0.2

Published

Arabic Invoice MCP Server - TypeScript port

Readme

arabic-invoice-mcp — Arabic e-invoicing tools for AI assistants

An MCP server that lets an AI assistant build a Saudi (ZATCA) tax invoice — six tools covering VAT totals, Arabic amount-in-words, and a Phase-1 TLV QR code built from the specification text.

Point Claude Desktop (or any MCP client) at it — no clone, no build:

{
  "mcpServers": {
    "arabic-invoice": {
      "command": "npx",
      "args": ["-y", "arabic-invoice-mcp"]
    }
  }
}

Or install it as a command:

npm i -g arabic-invoice-mcp
arabic-invoice-mcp          # stdio transport

What it gets right that most implementations do not: the TLV length is a BER length in bytes, not characters. شركة is 4 characters and 8 bytes, and past 128 bytes the single-byte form is invalid. We measured 11 packages carrying 44,915 npm downloads — 91.7% of those downloads encode it wrong. The benchmark is open.

Built on TypeScript 5.8 (ESM), Zod-validated inputs, MCP SDK 1.29+. 47 tests.

Not here: Phase-2 tags 6–9 (XML hash, ECDSA signature, certificates), and any claim about whether ZATCA accepted an invoice — that lives in the platform's response, not in the file.

Details below in Arabic. MIT.


نسخة TypeScript من Arabic Invoice MCP — 6 tools أساسية + ZATCA QR.

TypeScript port of arabic-invoice-mcp (Python) — 6 core tools compatible with the Python version.

✨ المميزات

  • ✅ 6 MCP tools (نفس الـ Python API)
  • ✅ ZATCA QR generator (TLV + Base64)
  • ✅ TypeScript 5.8+ (ESM)
  • ✅ Zod validation للـ inputs
  • ✅ Strict mode + full type safety
  • ✅ MCP SDK 1.29+ (stable v1)

🚀 التثبيت

npm i -g arabic-invoice-mcp   # ثم: arabic-invoice-mcp

أو بلا تثبيت: npx -y arabic-invoice-mcp. وللبناء من المصدر: npm install && npm run build && npm start.

🔗 إعداد Claude Desktop

{
  "mcpServers": {
    "arabic-invoice": {
      "command": "npx",
      "args": ["-y", "arabic-invoice-mcp"]
    }
  }
}

🛠️ الأدوات

| Tool | Description | |---|---| | tafgeet_amount | تفقيط مبلغ مالي | | convert_number_to_arabic | تحويل رقم إلى كلمات | | calculate_vat | حساب VAT حسب الدولة | | list_supported_currencies | العملات المدعومة | | list_supported_vat_rates | معدلات VAT | | generate_zatca_qr | QR code متوافق مع ZATCA |

🧪 الاختبارات

npm test

📊 Parity with Python

| Feature | Python | TypeScript | |---|---|---| | Tafgeet engine | ✅ | ✅ | | 5 currencies | ✅ | ✅ | | 7 VAT countries | ✅ | ✅ | | ZATCA QR (TLV) | ✅ | ✅ | | Invoice creation | ✅ | 🔜 | | Format invoice | ✅ | 🔜 | | Date converter | ✅ | 🔜 | | Saudi VAT Pro | ✅ | 🔜 |

🏗️ Architecture

arabic-invoice-mcp-ts/
├── src/
│   └── index.ts          # All tools + server
├── tests/
│   └── basic.test.ts     # Vitest
├── package.json
├── tsconfig.json
└── dist/                 # Build output

📝 License

MIT — نفس الـ Python version.