Koskamo

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.

zatca-toolkit-mcp logo, by SalmanKhan957Community listingLocal stdioSource reviewed; not executedPublished by SalmanKhan957
You need:npm install zatca-toolkit
Vendor documentation

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

Community listingRegistry 0.1.1
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

zatca-toolkit-mcp 0.1.1

npm
zatca-toolkit-mcp package definition
{
  "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.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "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

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.