zatca-toolkit-mcp
An open-source MCP server that exposes ZATCA e-invoicing capabilities to AI assistants. It allows agents to create, sign, validate, and submit Saudi Phase 2 e-invoices, decode QR codes, and explain compliance errors. The server integrates with tools like Claude Code and Cursor, supporting both simplified (B2C) and standard (B2B) invoice flows.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Create a simplified invoice for consulting services
- Validate an existing XML invoice against ZATCA rules
- Decode a ZATCA QR code payload
- Explain specific ZATCA error codes
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
zatca-toolkit-mcp 0.1.1
{
"version": "0.1.1",
"transport": "stdio",
"identifier": "zatca-toolkit-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "ZATCA_ENV",
"description": "sandbox (default), simulation or production"
},
{
"name": "ZATCA_PRIVATE_KEY_FILE",
"description": "Path to the EGS secp256k1 private key (PEM)"
},
{
"name": "ZATCA_CERTIFICATE",
"description": "CSID certificate or binarySecurityToken from ZATCA"
},
{
"name": "ZATCA_CSID_SECRET",
"description": "CSID secret, needed to submit invoices"
},
{
"name": "ZATCA_SELLER_FILE",
"description": "Path to seller details JSON"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"zatca-toolkit-mcp": {
"command": "npx",
"args": [
"-y",
"zatca-toolkit-mcp@0.1.1"
],
"env": {
"ZATCA_ENV": "<YOUR_ZATCA_ENV>",
"ZATCA_PRIVATE_KEY_FILE": "<YOUR_ZATCA_PRIVATE_KEY_FILE>",
"ZATCA_CERTIFICATE": "<YOUR_ZATCA_CERTIFICATE>",
"ZATCA_CSID_SECRET": "<YOUR_ZATCA_CSID_SECRET>",
"ZATCA_SELLER_FILE": "<YOUR_ZATCA_SELLER_FILE>"
}
}
}
}Cline
{
"mcpServers": {
"zatca-toolkit-mcp": {
"command": "npx",
"args": [
"-y",
"zatca-toolkit-mcp@0.1.1"
],
"env": {
"ZATCA_ENV": "<YOUR_ZATCA_ENV>",
"ZATCA_PRIVATE_KEY_FILE": "<YOUR_ZATCA_PRIVATE_KEY_FILE>",
"ZATCA_CERTIFICATE": "<YOUR_ZATCA_CERTIFICATE>",
"ZATCA_CSID_SECRET": "<YOUR_ZATCA_CSID_SECRET>",
"ZATCA_SELLER_FILE": "<YOUR_ZATCA_SELLER_FILE>"
}
}
}
}VS Code
{
"servers": {
"zatca-toolkit-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"zatca-toolkit-mcp@0.1.1"
],
"env": {
"ZATCA_ENV": "<YOUR_ZATCA_ENV>",
"ZATCA_PRIVATE_KEY_FILE": "<YOUR_ZATCA_PRIVATE_KEY_FILE>",
"ZATCA_CERTIFICATE": "<YOUR_ZATCA_CERTIFICATE>",
"ZATCA_CSID_SECRET": "<YOUR_ZATCA_CSID_SECRET>",
"ZATCA_SELLER_FILE": "<YOUR_ZATCA_SELLER_FILE>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"zatca-toolkit-mcp": {
"command": "npx",
"args": [
"-y",
"zatca-toolkit-mcp@0.1.1"
],
"env": {
"ZATCA_ENV": "<YOUR_ZATCA_ENV>",
"ZATCA_PRIVATE_KEY_FILE": "<YOUR_ZATCA_PRIVATE_KEY_FILE>",
"ZATCA_CERTIFICATE": "<YOUR_ZATCA_CERTIFICATE>",
"ZATCA_CSID_SECRET": "<YOUR_ZATCA_CSID_SECRET>",
"ZATCA_SELLER_FILE": "<YOUR_ZATCA_SELLER_FILE>"
}
}
}
}Let your agent find its tools
Find servers like zatca-toolkit-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.