SpecGrid EU e-Invoicing & Compliance SDK + MCP Server (MCP · Node/TS · Python · PHP · n8n · Make.com)
Quick Install (0 Dependencies)
# Node.js / TypeScript SDK + MCP CLI
npm install specgrid-eu-compliance
# Python 3 SDK
pip install specgrid-eu-compliance
# Instant 1-command Stdio MCP Server (no clone required)
npx -y specgrid-eu-compliance
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-256Huellachaining, multi-record tamper verification,ValidarQRURLs (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:
Option A: Remote Streamable HTTP (Recommended — Zero Install)
{
"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 (1-Command npx, No Clone Required)
{
"mcpServers": {
"specgrid-eu-compliance": {
"command": "npx",
"args": ["-y", "specgrid-eu-compliance"],
"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.jsonvia Workflows → Import from File and replaceSPECGRID-REPLACE-WITH-YOUR-POLAR-KEYwith your liveSPECGRID-...key (orX-RapidAPI-Key). - Make.com Scenario Blueprint: Import
make/verifactu-sepa-make-blueprint.jsoninto 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 fromhttps://eu.specgrid-api.workers.dev/openapi.json. - AI / LLM Documentation: Machine-readable specs available at
https://eu.specgrid-api.workers.dev/llms.txtand/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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| specgrid_eu_compliance-1.6.1.tar.gz | 6.5 kB | Without provenance | Details for specgrid_eu_compliance-1.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| specgrid_eu_compliance-1.6.1-py3-none-any.whl | Python 3 | none | any | Details for specgrid_eu_compliance-1.6.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / specgrid_eu_compliance-1.6.1.tar.gz
| Download URL | specgrid_eu_compliance-1.6.1.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85870397e175dc75dfa5bc1656368ab106f65df118a5ffa84d7baea980440caa
|
|
BLAKE2b-256 checksum How to use checksums |
15fdb2bb08922d3127549b73822812192230edbcaba80ebb033a2268adb1a334
|
| 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.1-py3-none-any.whl
| Download URL | specgrid_eu_compliance-1.6.1-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4ff63bdb7676bcedbecbdc49b7973ad3205f7e767d9d6ee494c290063c08239
|
|
BLAKE2b-256 checksum How to use checksums |
a848f694d101727e7fb515557028b8339fe51f3ed2509bc9cd76e875ed73a0a2
|
| 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.1
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.