AI agent integration

Ask your AI assistant to handle ZATCA invoicing

Connect Claude, Cursor, or Windsurf to Saudi VAT Pro and create invoices, check compliance status, and fix errors in plain conversation — no dashboard, no code. Few Saudi e-invoicing platforms offer this yet.

Built on the Model Context Protocol (MCP), the open standard AI clients use to connect to outside tools.

AI client · connected via MCP
Check the ZATCA status of invoice INV-2049.

Example conversation with an MCP-connected agent

Direct answer

What is an AI agent for ZATCA compliance?

An AI agent for ZATCA compliance is software running inside a chat client — such as Claude Desktop, Cursor, or Windsurf — that reads and manages your Saudi e-invoicing on your behalf. Instead of clicking through a dashboard, you ask it in plain language to create an invoice, check its ZATCA status, or fix a failed submission, and it calls the underlying compliance platform to do the work.

How does Saudi VAT Pro's MCP server work?

Saudi VAT Pro runs a Model Context Protocol (MCP) server that exposes 9 tools — including create_invoice, get_zatca_status, explain_invoice_error, and create_credit_note — to any MCP-compatible AI client. Connect over the hosted remote endpoint or the local npm package, authorize your Saudi VAT Pro account, and the agent can create invoices, check ZATCA clearance (about 1.2 seconds for standard B2B invoices), explain errors, and issue credit notes, while Saudi VAT Pro performs the actual signing and ZATCA submission.

Account authorization is required

The hosted service and local package access your Saudi VAT Pro account. Authorize a supported client through its remote connection flow, or use an API key in a local configuration. The npm package is a connector, not a standalone compliance engine: Saudi VAT Pro performs the authorized invoice workflow and ZATCA processing.

Hosted remote connection

Recommended when your AI client supports remote MCP servers.

  1. 1In your AI client, add a remote MCP server and use the hosted URL below.
  2. 2Complete the Saudi VAT Pro authorization requested by the client. Only connect clients you trust.
  3. 3Ask the agent to check ZATCA status before it creates or submits an invoice.
Remote MCP endpoint
https://saudivatpro.com/api/mcp

Client setup labels vary: look for “Remote MCP”, “Add server”, or a URL-based MCP connection. Authorization availability depends on your client and account.

Local npm setup

Use a local stdio connector when your desktop client requires it.

Run with npx
npx -y saudi-vat-pro-mcp

Add the command to your client’s MCP configuration and provide a Saudi VAT Pro API key as SAUDI_VAT_PRO_API_KEY. Keep that key in your local environment; never paste it into a chat.

Claude Desktop / Cursor example
{
  "mcpServers": {
    "saudi-vat-pro": {
      "command": "npx",
      "args": ["-y", "saudi-vat-pro-mcp"],
      "env": {
        "SAUDI_VAT_PRO_API_KEY": "svp_live_YOUR_KEY_HERE"
      }
    }
  }
}

What your AI invoice agent can do

Create and review invoices

Prepare invoices using the details you provide and inspect the returned status.

Check compliance readiness

Read certificate and environment status before a live submission.

Manage exceptions

Find failed invoices, explain errors, and create credit notes with the right controls.

An agent does not replace your review obligations. Confirm business data, invoice type, and the returned environment/status before treating a submission as complete.

MCP directory status

io.github.Morouna1/saudi-vat-pro is published and active on the official MCP Registry, so MCP-compatible clients and agent directories that read from it can already discover this server. Saudi VAT Pro also provides the package metadata needed for submission to community directories such as Smithery and PulseMCP; those services control their own review and publication processes, so listing there depends on their acceptance and, in some cases, a submission made from your own account.

Frequently asked questions

Can an AI agent submit ZATCA invoices on its own?

Yes, once you authorize it. An MCP-connected agent can call create_invoice and create_credit_note directly, and Saudi VAT Pro handles the ZATCA signing, clearance, and reporting behind that call. You still control what gets created by reviewing what the agent proposes before treating a run as final.

Which AI clients work with the Saudi VAT Pro MCP server?

Any MCP-compatible client works, including Claude Desktop, Cursor, and Windsurf. Clients that support remote MCP servers can connect directly to the hosted endpoint; others use the local npm package (saudi-vat-pro-mcp) over stdio.

Is my ZATCA signing key exposed to the AI agent?

No. The agent calls Saudi VAT Pro's authorized API; your certificate, private key, and signing operations stay on Saudi VAT Pro's servers. The agent only receives invoice data, status, and error messages back.

What can the MCP server do that the dashboard can't?

Nothing the dashboard can't also do — the MCP server exposes the same invoice, credit note, and status operations through natural language instead of clicks, so an agent can create an invoice, check its ZATCA status, explain a failed invoice's error, and issue a credit note in one conversation.

Does connecting an AI agent replace my ZATCA compliance review?

No. An agent does not replace your review obligations. Always confirm the business data, invoice type, and the returned environment/status before treating a submission as complete, the same as with any other integration.

What's the difference between the hosted and local MCP setup?

The hosted remote endpoint (https://saudivatpro.com/api/mcp) needs no installation — add it as a remote MCP server and authorize your account. The local setup runs "npx -y saudi-vat-pro-mcp" on your machine and authenticates with a Saudi VAT Pro API key, for clients that only support local stdio servers.

How fast does ZATCA clearance happen through the agent?

The agent calls the same pipeline as the dashboard: standard (B2B) invoices typically clear with ZATCA in about 1.2 seconds, and simplified (B2C) invoices are reported. The agent should check get_zatca_status before treating any submission as final.

Can I revoke an AI agent's access?

Yes. Every authorized MCP connection appears under your account's connected AI agents, where you can revoke it immediately; a revoked agent loses access to your invoices and account data right away.

Need implementation detail?

Read the API documentation or the package README for tools, local-client examples, and operational safety guidance.