einvoice-validators-mcp

einvoice-validators-mcp

Enables AI agents to validate e-invoices from Malaysia, Dominican Republic, Nigeria, Bolivia, and Costa Rica against official tax rules before submission, returning structured reports on structure, signatures, and business rule compliance.

Category
Visit Server

README

einvoice-validators-mcp

MCP server that lets AI agents validate legally mandated e-invoices before submission — Malaysia MyInvois (LHDN), Dominican Republic e-CF (DGII), Nigeria NRS/FIRS, Bolivia SIAT, Costa Rica Hacienda v4.4.

Each tool runs a keyless, stateless pre-flight against the official rules of the country: XSD structure, business rules, code lists, totals math, control codes (Bolivia's CUF rebuilt digit by digit, Costa Rica's 50-digit clave decomposed) and digital signatures (XAdES / XAdES-EPES / XML-DSig verified against the embedded certificate). Documents are validated in-memory and discarded — nothing is filed with any tax authority.

Tools

Tool Country / regime
validate_malaysia_myinvois 🇲🇾 MyInvois (LHDN/IRBM) — UBL 2.1 XML & JSON
validate_dominican_republic_ecf 🇩🇴 e-CF (DGII, Ley 32-23) — signed XML
validate_nigeria_firs 🇳🇬 NRS/FIRS FIRSMBS — UBL 2.1 XML & JSON
validate_bolivia_siat 🇧🇴 SFV/SIAT (SIN) — signed XML + CUF
validate_costa_rica_v44 🇨🇷 Comprobantes v4.4 (Hacienda) — signed XML, 8 document types

Every response is a JSON report: valid, wellFormed, signatureValid, errorCount, warningCount and rule-coded findings the agent can reason about.

Setup

  1. Get a RapidAPI key (free): subscribe to the API(s) you need — every one has a free plan:
  2. Add the server to your MCP client.

Claude Desktop / Claude Code

{
  "mcpServers": {
    "einvoice-validators": {
      "command": "npx",
      "args": ["-y", "einvoice-validators-mcp"],
      "env": { "RAPIDAPI_KEY": "your-rapidapi-key" }
    }
  }
}

Any MCP client (stdio)

RAPIDAPI_KEY=your-rapidapi-key npx -y einvoice-validators-mcp

Usage notes for agents

  • Pass the invoice as-is in the invoice argument. Signed documents are byte-sensitive: do not pretty-print, re-encode or "fix" them before validating.
  • A non-compliant invoice is a normal result ("valid": false with findings), not an error.
  • valid: true is an informative pre-flight ("structurally ready to submit"), not an acceptance by the authority — trust chains, live registries and clearance remain with the tax authority's online services.

Why not just generate validation code?

The commodity layer (XSD) you can generate. What you cannot reliably generate: the gated or prose-only rule sets, the exact signature canonicalization proven against genuinely signed documents, and the maintenance when regulators change the rules (Costa Rica's TRIBU-CR migration, LHDN SDK updates). These APIs are maintained validators with real-world proof — the technical write-ups show real outputs, including tamper detection on genuinely signed documents.

Links

License

MIT (this MCP client). The validation services themselves are commercial APIs.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured