Skip to main content

SpecGrid EU e-Invoicing & Compliance SDK + MCP Server (MCP · Node/TS · Python · PHP · n8n · Make.com)

SDK & Templates CI License: MIT OpenAPI 3.0.3 Zero Dependencies

Zero-dependency official client SDKs, Postman Collection v2.1, and ready-to-import n8n & Make.com automation templates for the SpecGrid EU Compliance API (running on Cloudflare Workers with zero payload retention):

  • Spanish AEAT VeriFactu (RD 1007/2023 & Orden HAC/1177/2024): Exact 8-field canonical SHA-256 Huella chaining, multi-record tamper verification, ValidarQR URLs (prod & sandbox), printable Tributary QR SVG, and <sf:RegistroAlta> XML generation.
  • Peppol BIS Billing 3.0 (EN 16931 UBL 2.1 / XRechnung) & Spanish Facturae 3.2.2: JSON-to-UBL XML generation + cent-level mathematical & structural validation (BR-CO-10..16, XXE-hardened).
  • SEPA EPC069-12 v002 Payment QR (GiroCode): Scan-to-pay European credit transfer QR payloads & ECL-M SVGs with automatic ISO 13616 IBAN Mod-97 verification.
  • EU-27 VAT, ISO 13616 Mod-97 IBAN & Spanish NIF/NIE/CIF Checksum Validation.
  • EU GPSR (Regulation 2023/988) Compliance Pack: Manufacturer & EU-27 Responsible Person validation + tracking-free safety QR SVG generator.

Try Free or Subscribe (Global MoR · Automated EU VAT Invoice)

Channel Tier Quota Link
Interactive Web Sandbox Free Browser Playground Instant live JSON + SVG preview eu.specgrid-api.workers.dev
RapidAPI Hub Basic $0 / Pro $15 / Ultra $39 50 / 5,000 / 50,000 calls/mo RapidAPI Hub Listing
Direct API Key (Polar.sh) Starter $15/mo · Growth $39/mo Instant SPECGRID-... Bearer Key Direct Polar Checkout

AI Agent Integration — MCP Server (Cursor · Claude Desktop · Windsurf · Antigravity)

Give any LLM coding agent deterministic EU compliance tools (zero hash/math/XML hallucinations) using either Remote Streamable HTTP or our Zero-Dependency Local Stdio Bridge:

{
  "mcpServers": {
    "specgrid-eu-compliance": {
      "url": "https://eu.specgrid-api.workers.dev/mcp",
      "headers": {
        "Authorization": "Bearer SPECGRID-YOUR-POLAR-KEY"
      }
    }
  }
}

Option B: Local Zero-Dependency Stdio MCP Bridge (mcp/specgrid-mcp-server.mjs)

{
  "mcpServers": {
    "specgrid-eu-compliance": {
      "command": "node",
      "args": ["/path/to/specgrid-eu-compliance-sdk/mcp/specgrid-mcp-server.mjs"],
      "env": {
        "SPECGRID_API_KEY": "SPECGRID-YOUR-POLAR-KEY"
      }
    }
  }
}

Exposes all 7 deterministic MCP tools: verifactu_fingerprint, verifactu_verify_chain, einvoice_validate, einvoice_generate, sepa_epc_qr, tax_id_validate, and gpsr_compliance_pack.


Quickstart — TypeScript / Node 20+ (0 Dependencies)

import { SpecGridClient } from './src/index.ts';

// Option A: Direct Polar.sh Key (Authorization: Bearer ...)
const client = new SpecGridClient({ apiKey: process.env.SPECGRID_API_KEY });

// Option B: RapidAPI Hub Key
// const client = new SpecGridClient({ rapidApiKey: process.env.RAPIDAPI_KEY });

const verifactu = await client.generateElectronicInvoice({
  format: 'verifactu_registro_alta',
  invoiceNumber: 'INV-2026/0105',
  issueDate: '2026-11-29',
  supplier: { name: 'SpecGrid Systems SL', taxId: 'B85905495', countryCode: 'ES' },
  customer: { name: 'Nordic Automation GmbH', taxId: 'DE123456789', countryCode: 'DE' },
  lines: [{ description: 'Engineering Services', quantity: 2, unitPrice: 50, vatRate: 21 }]
});

console.log('AEAT SHA-256 Huella:', verifactu.fingerprintSha256);
console.log('AEAT ValidarQR URL:', verifactu.qrValidationUrl);

See runnable examples in examples/verifactu-quickstart.mjs and examples/peppol-ubl-quickstart.mjs.

Quickstart — Python 3 (0 Dependencies)

import os
from python.specgrid_client import SpecGridClient

client = SpecGridClient(api_key=os.environ["SPECGRID_API_KEY"])
sepa = client.generate_sepa_qr(
    beneficiaryName="SpecGrid Systems SL",
    iban="ES9121000418450200051332",
    amountEur=121.00,
    remittanceText="Invoice INV-2026/0105"
)
print(sepa["payload"])

Quickstart — PHP 8+ / Laravel / WooCommerce (0 Dependencies)

<?php
require_once __DIR__ . '/php/SpecGridClient.php';

$client = new \SpecGrid\SpecGridClient(apiKey: getenv('SPECGRID_API_KEY'));
$vf = $client->generateElectronicInvoice([
    'format' => 'verifactu_registro_alta',
    'invoiceNumber' => 'INV-2026/0105',
    'issueDate' => '2026-11-29',
    'supplier' => ['name' => 'SpecGrid Systems SL', 'taxId' => 'B85905495', 'countryCode' => 'ES'],
    'customer' => ['name' => 'Cliente SA', 'taxId' => 'A12345674', 'countryCode' => 'ES'],
    'lines' => [['description' => 'Suscripcion SaaS', 'quantity' => 1, 'unitPrice' => 100.0, 'vatRate' => 21]],
]);

echo $vf['fingerprintSha256'] . PHP_EOL;
echo $vf['qrValidationUrl'] . PHP_EOL;

No-Code Templates & API Tools (1-Click Import)

  • n8n Workflow: Import n8n/verifactu-sepa-invoice-workflow.json via Workflows → Import from File and replace SPECGRID-REPLACE-WITH-YOUR-POLAR-KEY with your live SPECGRID-... key (or X-RapidAPI-Key).
  • Make.com Scenario Blueprint: Import make/verifactu-sepa-make-blueprint.json into a new Make scenario to chain Webhook → VeriFactu XML + SHA-256 → SEPA EPC QR → JSON Response.
  • Postman / Insomnia / Bruno / Hoppscotch: Import postman/specgrid-eu-compliance.postman_collection.json (all 8 endpoints pre-populated with verified payloads) or load the CORS-enabled OpenAPI 3.0.3 schema directly from https://eu.specgrid-api.workers.dev/openapi.json.
  • AI / LLM Documentation: Machine-readable specs available at https://eu.specgrid-api.workers.dev/llms.txt and /llms-full.txt.

Security & Technical Scope

SpecGrid processes invoice XMLs, tax identifiers, and IBANs synchronously in memory with zero payload retention. SpecGrid provides deterministic software validation and cryptographic/QR formatting tools based on published technical specifications and is not a law firm, tax advisor, or certified Peppol Access Point.

License

MIT License — Copyright (c) 2026 SpecGrid.

Metadata

Release files for specgrid-eu-compliance 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for specgrid-eu-compliance 1.6.0
File Size Uploaded Provenance Actions
specgrid_eu_compliance-1.6.0.tar.gz 6.3 kB Without provenance Details for specgrid_eu_compliance-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for specgrid-eu-compliance 1.6.0
File Interpreter ABI Platform Actions
specgrid_eu_compliance-1.6.0-py3-none-any.whl Python 3 none any Details for specgrid_eu_compliance-1.6.0-py3-none-any.whl

Total release size: 12.7 kB

Release files / specgrid_eu_compliance-1.6.0.tar.gz

Download URL specgrid_eu_compliance-1.6.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6f9fae482f5df21ea8df2af66b1469b25a16b5b7df44ce73f6650a25c1ec69e3
BLAKE2b-256 checksum
How to use checksums
c270ca9b070bef499c54acb1fe9a1492f48a513f1d29663da2c2a7d1ad4cf47d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / specgrid_eu_compliance-1.6.0-py3-none-any.whl

Download URL specgrid_eu_compliance-1.6.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5329388b7905ed36d05a1ff50749f2526ed7229e85521530f8c814080a9a2de
BLAKE2b-256 checksum
How to use checksums
37becd37c7c492616831e2e03d2baca84ab0ce7032833656f186f7fc22e35b17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Security for specgrid-eu-compliance 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.6.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page