pop-mcp
OfficialSummary: This server lets an AI assistant generate, submit, retrieve, validate, and archive electronic invoices across Italian, EU, Polish, and German formats, sync them to Zoho, and complete POP account onboarding.
Create Italian SdI/FatturaPA XML invoices (
pop_create_sdi_invoice) — TD01 invoices or TD04 credit notes, for private, company, freelance, or PA customers, with optional submission to SdI.Create Peppol UBL 2.1 invoices (
pop_create_peppol_invoice) — for company/freelance customers, with optional submission to the Peppol network.Create branded PDF invoices (
pop_create_pdf_invoice) — logo, header/billing/shipping addresses, footer, and optional emailing to up to 3 recipients.Create Polish KSeF FA(3) XML invoices (
pop_create_ksef_invoice) — local generation or submission via a KSeF provider integration.Create ZUGFeRD/Factur-X packages (
pop_create_zugferd_invoice) — returns a visual PDF, EN16931 CII XML, and a hybrid PDF/A-3 with embedded XML (Base64).Sync invoices to Zoho Books/Invoice (
pop_sync_zoho_document) — with optional connector-status check.Track SdI status and notifications (
pop_get_invoice_status) — pending, accepted, rejected, or delivery.Retrieve documents by UUID — Peppol documents (
pop_get_peppol_document, optional zone) and archived SdI documents (pop_get_sdi_document).Validate SdI XML before sending (
pop_verify_sdi_document) — schema, fiscal code, VAT number, required fields, and amount consistency checks.Archive invoices in legal long-term storage (
pop_preserve_document) — Italian 10-year conservazione sostitutiva, only for RC/MC statuses.Onboard a POP account — request/verify OTP, check onboarding status, read account setup with lookups and capabilities, and save configuration including activating SdI or Peppol integration (mutually exclusive).
Environment switching — most tools accept an
environmentparameter (e.g.sandbox).
Sync documents (invoices) to Zoho via a dedicated Zoho connector.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pop-mcp Create an Italian e-invoice (FatturaPA) for €1000 to ABC srl"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pop-mcp
MCP (Model Context Protocol) server for POP — enabling LLMs to generate, submit, and manage Italian e-invoices (FatturaPA/SdI), Peppol, KSeF, ZUGFeRD/Factur-X, and PDF invoices directly from AI assistants.
npm:
@getpopapi/pop-mcp· Remote:https://mcp.popapi.io/mcp
Remote MCP (HTTP) — fastest way to get started
Don't want to install anything? pop-mcp runs as a hosted, multi-tenant MCP server at:
https://mcp.popapi.io/mcpHead to popapi.io to grab a license key, then point any MCP-speaking client at
that URL with your key as a Bearer token. No local install, no POP_API_KEY env var, no build step
— this is the recommended way to try pop-mcp for most people. Use the local stdio setup below only
if you specifically need a Claude Desktop config running a process on your own machine.
How it works
This endpoint speaks MCP 2026-07-28, which is fully stateless: there is no initialize
handshake and no session to open or track. Every request is self-contained — it names its own
protocol version and capabilities — and the server answers it independently. Because of that,
this is a multi-tenant endpoint: it never reads a fixed POP_API_KEY from its own environment.
Every request must carry your own POP license key as a Bearer token:
Authorization: Bearer <your_license_key>A missing or malformed Authorization header returns a 401 with error_code: "unauthorized_user"
before any POP API call is made. An invalid-but-well-formed key is passed straight through to POP's
API and surfaces whatever error POP returns (unauthorized_user, insufficient_level, etc.) — the
server does not re-validate keys itself.
Any modern MCP HTTP client can connect: Claude (remote connector), the OpenAI Responses API, n8n,
MCP Inspector, or a custom integration — not
just Claude Desktop. All invoice, status, advanced, and onboarding tools are available; onboarding
tools use their own onboarding_token per call and don't require the Bearer key.
Example with curl
Discover the server's supported protocol versions and capabilities (optional — clients can also
just call tools/list or tools/call directly and handle a version-negotiation error inline):
curl -X POST https://mcp.popapi.io/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your_license_key_here" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: server/discover" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "server/discover",
"params": { "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {} } }
}'List the available tools — every request is self-contained, so _meta (protocol version + client
capabilities) travels on every call, not just the first one:
curl -X POST https://mcp.popapi.io/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer your_license_key_here" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: tools/list" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list",
"params": { "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {} } }
}'The tool catalog is identical for every license key, so tools/list and server/discover
responses carry a one-hour public cache hint (ttlMs: 3600000, cacheScope: "public") — clients and
gateways may cache them across tenants.
MCP-Protocol-VersionandMcp-Methodare required on every request (per SEP-2243), and must match the body's_meta.protocolVersionandmethodexactly, or the server rejects the request with a400and JSON-RPC error-32020(HeaderMismatch).tools/callrequests additionally require anMcp-Nameheader matchingparams.name.
Example with MCP Inspector
npx @modelcontextprotocol/inspectorConfigure it to connect to https://mcp.popapi.io/mcp with header
Authorization: Bearer <your_license_key>.
This endpoint runs as a Vercel serverless function (api/mcp.ts → src/mcpHandler.ts). To run it
locally: npx vercel dev (requires vercel link to the project first).
Related MCP server: einvoice-mcp
What is POP?
POP is a cloud service for electronic invoice generation and delivery, supporting:
🇮🇹 Italian e-invoicing (FatturaPA/SdI) — compliant with D.Lgs. 127/2015
🇪🇺 Peppol — pan-European cross-border B2B invoicing (UBL 2.1)
📄 PDF invoices — branded, with email delivery
✅ Validation — fiscal codes, VAT numbers, document pre-submission checks
🗄️ Preservation — Italian legal archival (conservazione sostitutiva)
Tools Available (11 total)
Invoice Creation
Tool | Endpoint | Plan |
| POST | Any |
| POST | Any (Basic+ to submit) |
| POST | Any (Basic+ for email) |
| POST | Any (KSeF setup for provider submission) |
| POST | Any |
| POST | Zoho connector required |
Status & Retrieval
Tool | Endpoint | Plan |
| POST | Any |
| POST | Basic+ |
| POST | Basic+ |
Validation & Advanced SdI
Tool | Endpoint | Plan |
| POST | Basic+ |
| POST | Basic+ |
Prerequisites
Node.js >= 20
A POP license key
For SdI/Peppol submission: active integration on your POP account (Basic/Growth plan)
Authentication
Get Your License Key
New to POP? Visit popapi.io to create your account and get your license key.
API-only users can activate their account and obtain a license_key with this flow:
Enter your email address
Receive a one-time password (OTP) by email and enter it
Complete the configuration wizard
Open https://popapi.io/ → Account > API
Copy the default generated
license_key
Key Management
Your account includes one default
license_key, visible under Account > APIYou can generate additional keys linked to the same account from that same page
Every
license_keymust be treated as a secret credential — do not commit it to source control
Recommended First Steps
Get your
license_keyTest it with
GET /account-profileSend one document-generation request with a real payload
Add optional delivery integrations only after local generation works
Installation
From npm (recommended)
npm install -g @getpopapi/pop-mcpFrom Source
git clone https://github.com/getpopapi/pop-mcp
cd pop-mcp
npm install
npm run buildConfiguration
Set your POP license key as an environment variable:
export POP_API_KEY=your_license_key_hereOptional — use the staging environment:
export POP_ENVIRONMENT=stagingClaude Desktop Setup
Add to your claude_desktop_config.json:
If installed from npm:
{
"mcpServers": {
"pop": {
"command": "pop-mcp",
"env": {
"POP_API_KEY": "your_license_key_here"
}
}
}
}If running from source:
{
"mcpServers": {
"pop": {
"command": "node",
"args": ["/path/to/pop-mcp/dist/cli.js"],
"env": {
"POP_API_KEY": "your_license_key_here"
}
}
}
}Config file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Tool Reference
The license_key is always injected automatically from POP_API_KEY — never pass it manually.
pop_create_sdi_invoice
Generate an Italian FatturaPA XML document. Optionally submit it to the SdI (Sistema di Interscambio).
MCP inputs:
Parameter | Type | Required | Description |
| object | ✅ | Full invoice data (see Invoice Data Structure) |
| boolean | — | Set |
| object | — | Override integration config. Overrides |
| string | — | Target environment (e.g. |
Integration options for integration.use:
"sdi-via-pop"or"sdi"— Submit via POP SdI"pop-to-webhook"— Deliver to a webhook (requiresid)"fatture-in-cloud"— Deliver to Fatture in Cloud
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"user_agent": "pop-mcp",
"user_agent_version": "1.0.0",
"data": { "...invoice fields..." },
"integration": { "use": "sdi-via-pop", "action": "create" }
}
integrationis omitted whensubmit_to_sdiisfalseand no override is provided (XML-only generation).
pop_create_peppol_invoice
Generate a Peppol UBL 2.1 document. Optionally submit it to the Peppol network.
MCP inputs:
Parameter | Type | Required | Description |
| object | ✅ | Full invoice data. |
| boolean | — | Set |
| object | — | Override integration config |
| string | — | Target environment |
Integration options for integration.use:
"peppol-via-pop"or"peppol"— Submit via POP Peppol"pop-to-webhook"— Deliver to a webhook (requiresid)
VAT exemption rules specific to Peppol:
data.natureis the VAT exemption code (a VATEX code such asVATEX-EU-G,VATEX-EU-IC,VATEX-EU-AEorVATEX-EU-O; these are examples, not a complete list). It stays a free string: the POP API verifies it and answers with a plain-language error.The exemption code comes from the user. The model never chooses, infers (countries,
vies, VAT rate) or changes it, and asks when it is missing. An API error is shown to the user and the call is not retried with another code.The API requires
data.delivery_data.country(ISO 3166-1 alpha-2, country only, never the address) when the code isVATEX-EU-IC.delivery_data.date(YYYY-MM-DD) is optional and defaults to the document date. A credit note carries the samedelivery_dataas the invoice it reverses.
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"user_agent": "pop-mcp",
"user_agent_version": "1.0.0",
"data": { "...invoice fields...", "nature": "VATEX-EU-IC", "delivery_data": { "country": "FR" } },
"integration": { "use": "peppol-via-pop", "action": "create" }
}pop_create_pdf_invoice
Generate a branded PDF invoice. Optionally email it to up to 3 recipients.
MCP inputs:
Parameter | Type | Required | Description |
| object | ✅ | Invoice data. Must include |
| boolean | — | Set |
| string | — | Target environment |
data.pdf fields:
Field | Description |
| Title shown on document (e.g. |
| Company logo URL (HTTPS) |
| Supplier address string in header |
| Customer billing address array |
| Shipping address array (optional) |
| Up to 3 recipient email addresses |
| Reply-to address |
| Custom footer message |
| Total tax amount as string |
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"user_agent": "pop-mcp",
"user_agent_version": "1.0.0",
"data": {
"...invoice fields...",
"pdf": {
"doc_type_title": "Invoice",
"logo_url": "https://example.com/logo.png",
"head": { "store_info_address": "Via Roma 1, 00100 Roma IT", "billing": [] },
"total_tax": "22.00",
"email_invoice": { "to": ["customer@example.com"] }
}
}
}pop_create_ksef_invoice
Generate a Polish KSeF FA(3) XML invoice or credit note. Optionally submit it through a configured KSeF provider integration.
MCP inputs:
Parameter | Type | Required | Description |
| object | ✅ | Full invoice data for KSeF FA(3) generation |
| object | — | Optional KSeF provider submission config: |
| string | — | Target environment (e.g. |
Domain rules specific to KSeF:
Poland only —
transfer_lender.personal_data.tax_id_vat.country_idmust be"PL"with a 10-digit NIP asid_codecustomer_typemust be"company"or"freelance"(no private individuals)natureis always required at the top level for KSeF (unlike SdI/Peppol, where it's only required at 0% VAT) — reuses the same SdI nature codes (N1,N2.1,N2.2,N3.1,N3.2,N4, ...) to derive KSeF's internal fiscal varianttransmitter_datais not used (SdI-only concept)payment_data.payment_detailsonly acceptsMP01,MP02/MP03,MP05,MP08— other payment method codes are rejected at generation timeBase XML generation is available on any plan; provider submission via
integration.use: "ksef"requires a Basic+ plan and the supplier already enrolled as a KSeF legal entity in the POP dashboard
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"user_agent": "pop-mcp",
"user_agent_version": "1.0.0",
"data": { "...invoice fields...", "nature": "N1" },
"integration": { "use": "ksef", "action": "create" }
}
integrationis omitted entirely for local XML-only generation (no provider submission).
Returns: raw FA(3) XML (application/xml) for local generation, or JSON (with a UUID) when submitted through a provider integration.
pop_create_zugferd_invoice
Generate a ZUGFeRD/Factur-X document package: a visual PDF, an EN16931 CII XML, and a hybrid PDF/A-3 with the XML embedded.
MCP inputs:
Parameter | Type | Required | Description |
| object | ✅ | Full invoice data for ZUGFeRD/Factur-X generation |
| string | — | Target environment (e.g. |
This tool has no integration parameter — ZUGFeRD generation is local only, with no submit/delivery step.
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"user_agent": "pop-mcp",
"user_agent_version": "1.0.0",
"data": { "...invoice fields..." }
}Returns: JSON with generation metadata and three Base64-encoded attachments:
{
"success": true,
"data": {
"valid": true,
"profile": "EN16931",
"attachments": {
"pdf": { "filename": "...", "mime": "application/pdf", "content_base64": "..." },
"xml": { "filename": "...", "mime": "application/xml", "content_base64": "..." },
"hybrid_pdf": { "filename": "...", "mime": "application/pdf", "content_base64": "..." }
},
"validation": { "...": "..." },
"errors": [],
"warnings": []
}
}pop_get_invoice_status
Retrieve the SdI processing status and notifications for a submitted invoice.
MCP inputs:
Parameter | Type | Required | Description |
| string (UUID) | ✅ | Invoice UUID returned by |
|
| — | Output format. Default: |
| string | — | Target environment |
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"integration": { "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }
}SdI notification statuses: pending · accepted · rejected · delivery
SdI processing is asynchronous and can take minutes to hours. Retry if no notifications are returned yet.
pop_get_peppol_document
Retrieve a Peppol document from the network by UUID.
MCP inputs:
Parameter | Type | Required | Description |
| string (UUID) | ✅ | Peppol document UUID from |
| string (2 chars) | — | Country code of the Peppol access point (e.g. |
|
| — | Output format. Default: |
| string | — | Target environment |
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"integration": { "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "zone": "IT" }
}
zoneis omitted from the payload if not provided.
pop_get_sdi_document
Retrieve an archived SdI (FatturaPA) document from POP storage by UUID.
MCP inputs:
Parameter | Type | Required | Description |
| string (UUID) | ✅ | SdI document UUID |
|
| — | Output format. Default: |
| string | — | Target environment |
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"integration": { "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }
}Requires: Basic+ plan with active SdI integration.
pop_verify_sdi_document
Validate an SdI XML document for compliance before submission. Does not submit the document.
MCP inputs:
Parameter | Type | Required | Description |
| string | ✅ | The SdI XML document encoded as a Base64 string |
| string | — | Target environment |
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"skip_business_check": true,
"integration": { "xml": "<base64-encoded-xml-string>" }
}Validation checks performed: XML schema conformance · fiscal code format · VAT number validity · required field presence · amount consistency
Requires: Basic+ plan with active SdI integration and registered business.
pop_preserve_document
Archive an SdI document in certified long-term digital storage (conservazione sostitutiva). Italian law requires invoices to be preserved for 10 years.
MCP inputs:
Parameter | Type | Required | Description |
| string (UUID) | ✅ | UUID of the SdI document to archive |
| string | — | Target environment |
API payload sent:
{
"license_key": "YOUR_LICENSE_KEY",
"integration": { "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" }
}Important: Only call this tool when
pop_get_invoice_statusreturns statusRC(Ricevuta di Consegna) orMC(Mancata Consegna). Do not call for statusesNS,EC,SE, orDT.
Requires: Basic+ plan with active SdI integration.
Usage Examples
Generate a Simple Italian Invoice (XML Only)
Ask your AI assistant:
"Create a FatturaPA invoice for 1000€ + 22% VAT to Rossi SRL (VAT IT12345678901, Milan). My company is Bianchi SRL (VAT IT98765432109, Rome), using payment method bank transfer to IBAN IT60X0542811101000000123456."
Submit Invoice to SdI
"Create and submit to SdI an invoice #45 for consulting services, 500€ + 22% VAT to customer Mario Rossi (fiscal code RSSMRA80A01H501U) in Rome."
Check Invoice Status After Submission
"What's the status of SdI invoice with UUID abc123-def456-...?"
Generate PDF with Email Delivery
"Create a PDF invoice for order #123 and email it to customer@example.com."
Verify SdI Document Before Sending
"Verify SdI document with UUID abc123-... for compliance before submission."
Plan Requirements
Feature | Free | Basic/Growth | Pro |
XML generation (local) | ✅ | ✅ | ✅ |
PDF generation | ✅ | ✅ | ✅ |
SdI submission | ❌ | ✅ | ✅ |
Peppol submission | ❌ | ✅ | ✅ |
PDF email delivery | ❌ | ✅ | ✅ |
SdI document verification | ❌ | ✅ | ✅ |
Document preservation | ❌ | ✅ | ✅ |
Testing
MCP Inspector (Interactive)
npm run inspector
# or
npx @modelcontextprotocol/inspector dist/cli.jsQuick Smoke Test
POP_API_KEY=your_key node -e "
import('./dist/cli.js').catch(e => {
if (e.message.includes('stdin')) process.exit(0);
console.error(e); process.exit(1);
});
"Test Tool Schema Listing
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | POP_API_KEY=test node dist/cli.jsDevelopment
# Run with auto-reload
npm run dev
# Build
npm run build
# Clean build artifacts
npm run cleanInvoice Data Structure
The data parameter for invoice creation follows the FatturaPA structure:
data
├── id Invoice/order ID (numeric)
├── filename Output filename without extension (e.g. 'IT99900088876_00009')
├── type "invoice" | "credit_note"
├── version "FPR12" | "FPA12"
├── sdi_type 7-char SDI code ('0000000' for private individuals)
├── customer_type "private" | "company" | "freelance" | "pa"
├── nature VAT exemption code (required when rate is 0%, e.g. 'N2.1', 'N6.1')
├── transmitter_data
│ ├── transmitter_id { country_id, id_code }
│ ├── progressive Transmission progressive ID (e.g. '00001')
│ ├── transmitter_format "FPR12" | "FPA12"
│ ├── sdi_code 7-char code
│ ├── transmitter_contact { phone, email }
│ └── recipient_pec PEC email (alternative to sdi_code)
├── transfer_lender Supplier/seller
│ ├── personal_data { tax_id_vat: { country_id, id_code, tax_regime }, company_name }
│ ├── place { address, zip_code, city, province_id, country_id }
│ └── contact { phone, email }
├── transferee_client Customer/buyer
│ ├── personal_data { tax_id_vat, tax_id_code (fiscal code for IT private), company_name }
│ └── place { address, zip_code, city, province_id, country_id }
├── invoice_body
│ ├── general_data { doc_type (TD01|TD04), date (YYYY-MM-DD), invoice_number, currency }
│ └── total_document_amount
├── order_items[]
│ ├── description, quantity, unit
│ ├── unit_price, total_price
│ ├── rate VAT rate as string (e.g. '22.00')
│ ├── total_tax VAT amount (number)
│ └── item_type "product" | "shipping" | "fee"
├── payment_data
│ ├── terms_payment TP01 (instalment) | TP02 (full) | TP03 (advance)
│ ├── payment_details MP01 (Cash) | MP02 (Check) | MP05 (Bank Transfer) | MP08 (Credit Card) | ...
│ ├── payment_amount
│ ├── beneficiary Required for MP05 (bank transfer)
│ ├── financial_institution Required for MP05
│ └── iban Required for MP05
├── purchase_order_data (optional) { id, date }
├── delivery_data (optional, Peppol) { country, date? } — country required for VATEX-EU-IC
├── connected_invoice_data[] (required for credit notes) { id, date }
├── overrides (optional) { language, bollo_force_apply }
└── pdf (only for pop_create_pdf_invoice)
├── doc_type_title
├── logo_url
├── head { store_info_address, billing[], shipping[] }
├── total_tax
├── email_invoice { to[] (max 3), from }
└── footer_textError Reference
Error Code | Meaning | Solution |
| Invalid license key | Check |
| Plan too low | Upgrade POP plan |
| No business profile | Register on popapi.io |
| SdI/Peppol not enabled | Activate on popapi.io |
| >3 email recipients | Reduce to max 3 |
| Plan doesn't allow email | Upgrade to Basic+ |
Related Projects
n8n-nodes-pop — n8n community nodes for POP
POP — Official website
API Documentation — Postman docs
License
MIT © getpopapi
Available Tools
16 toolspop_create_ksef_invoiceCreate KSeF Invoice (FA(3) XML)AInspect
Generate a Polish KSeF FA(3) XML invoice or credit note.
The POP Cloud API performs the authoritative KSeF fiscal validation and can optionally submit the document through the configured KSeF provider integration. KSeF onboarding and legal-entity configuration must be completed for provider submission.
Inputs: data (required), site_url, site_title, environment, +2 more.
pop_create_pdf_invoiceCreate PDF InvoiceAInspect
Generate a PDF invoice with optional branding and email delivery.
Creates a printable PDF invoice. Can include company logo, custom footer, and billing/shipping addresses. The PDF can be emailed automatically to up to 3 recipients (Basic+ plan required for email).
Configuration via data.pdf:
invoice_html: '"true"' to generate HTML version
doc_type_title: Title shown on document (e.g. 'Invoice', 'Receipt', 'Credit Note')
logo_url: Company logo URL (HTTPS)
head.store_info_address: Supplier address displayed in header
head.billing: Customer billing address array
email_invoice.to: Array of up to 3 recipient emails (requires Basic+ plan)
email_invoice.from: Reply-to email address
footer_text: Custom footer message
Returns: PDF binary data or confirmation JSON with email delivery status.
Args:
data: Invoice data with data.pdf configuration populated
send_email: Set true to deliver PDF via email (requires email_invoice in data.pdf)
Inputs: data (required), site_url, send_email, site_title, +2 more.
pop_create_peppol_invoiceCreate Peppol / UBL InvoiceAInspect
Generate a Peppol e-invoice in UBL 2.1 format and optionally submit it to the Peppol network.
Peppol (Pan-European Public Procurement Online) enables cross-border B2B electronic invoicing across Europe. The API generates a compliant UBL 2.1 XML document.
Restrictions:
Customer type must be 'company' or 'freelance' (Peppol does not support private individuals)
Submission requires active Peppol via POP integration (Basic+ plan)
The customer must have a valid Peppol participant ID
Returns: UBL XML string or JSON with UUID when submitting to the network.
Args:
data: Complete invoice data (customer_type must be 'company' or 'freelance')
submit_to_peppol: Set true to submit to Peppol network
integration: Override integration config
Inputs: data (required), site_url, site_title, environment, +3 more.
pop_create_sdi_invoiceCreate SdI / FatturaPA Invoice (XML)AInspect
Generate an Italian FatturaPA electronic invoice in XML format and optionally submit it to the SdI (Sistema di Interscambio).
This tool creates a compliant FatturaPA XML document that satisfies Italian e-invoicing regulations (D.Lgs. 127/2015). The invoice can be generated locally (XML only) or submitted directly to SdI for B2B/B2C delivery.
Key facts:
Supports invoice types: TD01 (invoice) and TD04 (credit note)
Customer types: private, company, freelance, pa (Public Administration)
For Private customers: sdi_type must be '0000000' and tax_id_code (codice fiscale) is required
For PA customers: use version='FPA12' and the 6-char PA office code as sdi_type
VAT rates: 22%, 10%, 5%, 4%, 0% (with nature code required when 0%)
Submission to SdI requires Growth+ plan with active SdI via POP integration
Returns: XML document string when not submitting, or JSON with UUID when submitting.
Args:
data: Complete invoice data (transmitter, supplier, customer, line items, payment)
submit_to_sdi: Set true to automatically submit to SdI (requires active integration)
integration: Override integration config (sdi-via-pop, pop-to-webhook, fatture-in-cloud)
Inputs: data (required), site_url, site_title, environment, +3 more.
pop_create_zugferd_invoiceCreate ZUGFeRD / Factur-X InvoiceAInspect
Generate a ZUGFeRD/Factur-X document package containing a visual PDF, EN16931 CII XML, and hybrid PDF with embedded XML.
The POP Cloud API performs the authoritative document and fiscal validation and returns structured generation metadata.
Inputs: data (required), site_url, site_title, environment, +1 more.
pop_get_invoice_statusGet SdI Invoice StatusARead-onlyIdempotentInspect
Retrieve the SdI processing status and notifications for a submitted invoice.
After submitting an invoice to the Italian SdI (Sistema di Interscambio), the system processes it asynchronously and sends notifications. This tool polls the current status and all notifications.
SdI notification statuses:
pending: Invoice received, awaiting processing
accepted: Invoice accepted and delivered to recipient
rejected: Invoice rejected (check details for reason and correction steps)
delivery: Delivery notification received
Note: SdI processing can take from minutes to hours. If no notifications are returned, wait and retry.
Args:
uuid: The UUID returned by pop_create_sdi_invoice (when submit_to_sdi=true)
response_format: 'markdown' for readable output, 'json' for structured data
Inputs: uuid (required), environment, response_format.
pop_get_peppol_documentGet Peppol DocumentARead-onlyIdempotentInspect
Retrieve a Peppol document from the network by UUID.
After a Peppol invoice is submitted, use this tool to retrieve the processed document or check its delivery status on the Peppol network.
Args:
uuid: The Peppol document UUID from pop_create_peppol_invoice
zone: Country code for the Peppol access point (e.g. 'BE' for Belgium). Required for some regions.
response_format: Output format
Inputs: uuid (required), type, zone, environment, +1 more.
pop_get_sdi_documentGet SdI DocumentARead-onlyIdempotentInspect
Retrieve an SdI document from POP storage by UUID.
Fetches a previously submitted or preserved SdI (FatturaPA) document. Useful for auditing, re-downloading, or verifying stored invoices.
Requires: Growth+ plan with active SdI via POP integration.
Args:
uuid: The SdI document UUID
response_format: 'markdown' for readable summary, 'json' for raw data
Inputs: uuid (required), environment, response_format.
pop_onboarding_get_account_setupGet Account Setup ConfigurationARead-onlyIdempotentInspect
Retrieve the full account setup payload: current field values, lookup tables, capabilities, and integration state.
This is step 4 of 5 in the onboarding sequence. Call this before save_account_setup to understand:
Which fields are already saved (non-null in configurations)
Which fields are locked (field_locks = true) and cannot be changed
Which integrations are available for the account country (capabilities)
Valid tax regime codes (lookup.tax_regimes keyed by country)
Valid Peppol scheme options (lookup.peppol.endpoint_scheme_options)
Which integration toggles can be set (allowed_integration_toggles)
Key behaviours:
Null values in configurations = field not yet saved, must be provided in save_account_setup.
Locked fields (🔒) must not be changed — the API will reject modifications.
Use capabilities.supports_sdi_onboarding and supports_peppol_onboarding to decide which integration to offer.
lookup.countries labels are in Italian regardless of the lang field.
Inputs: onboarding_token (required).
pop_onboarding_get_statusGet Onboarding StatusARead-onlyIdempotentInspect
Retrieve the current onboarding state for the authenticated account.
This is step 3 of 5 in the onboarding sequence (optional — use to poll state or check progress).
Returns: state, next_action, wizard_variant, wizard_completed, required_fields, step_visibility, integration_state.
Does NOT return configurations (field values). Use pop_onboarding_get_account_setup for those.
Key behaviours:
auth_source will be 'onboarding_token' confirming the token was accepted.
step_visibility.integration = false means SdI/Peppol toggles do not apply to this account (basic variant).
integration_state.ksef.status = 'not_supported_in_onboarding_yet' is correct — not an error.
Inputs: onboarding_token (required).
pop_onboarding_request_otpRequest Onboarding OTPAInspect
Start the POP onboarding flow by sending a one-time password (OTP) to an email address.
This is step 1 of 5 in the onboarding sequence: request-otp → verify-otp → get_status → get_account_setup → save_account_setup
Key behaviours:
The OTP code is returned directly in the response (not just by email). Read otp_code from the response.
OTP expires in 10 minutes. Pass it to pop_onboarding_verify_otp immediately.
If the email does not exist, a new POP account is created automatically.
For administrator accounts, no OTP is issued. Use the admin password as the otp field in verify-otp instead.
No API key required for this call.
Inputs: email (required), lang.
pop_onboarding_save_account_setupSave Account Setup ConfigurationAInspect
Save the account setup configuration and optionally activate SdI or Peppol integration.
This is step 5 of 5 in the onboarding sequence.
Integration rules:
To activate SdI (Italy/San Marino): set active_sdipop_integration=1 and active_peppol_integration=0
To activate Peppol (EU countries): set active_peppol_integration=1 and active_sdipop_integration=0, and provide all peppol_* fields
SdI and Peppol are mutually exclusive — never set both to 1
For 'basic' variant accounts (non-IT, non-EU): do not send integration toggle fields
Key behaviours:
general_store_vat_number must be unique on the target environment. 422 if already in use.
Sending 0 for an integration toggle means "do not activate" — the value stores as null in configurations. Always read the effective activation state from integration_state.environments.*.sdi.enabled.
Once wizard is complete (wizard_completed=true), calling this again returns the current state without writing (applied_changes=false).
Once Peppol is registered (peppol_legal_entity_uuid set), all Peppol fields are locked permanently.
If SdI activation fails at ACube, the account data is still saved — retry is safe.
Inputs: configurations (required), onboarding_token (required), environment.
pop_onboarding_verify_otpVerify Onboarding OTPAInspect
Verify the OTP from pop_onboarding_request_otp and obtain an onboarding token.
This is step 2 of 5 in the onboarding sequence.
Key behaviours:
Returns an onboarding_token (48-character string). Save it — required for all subsequent steps.
Token expires 30 minutes after issue. No refresh endpoint; restart from request-otp if expired.
token_issued_at and token_expires_at are ISO 8601 strings (e.g. 2026-05-26T13:47:15+00:00).
wizard_variant is 'basic' if no country is saved yet — it updates after save_account_setup sets the country.
If wizard_required is false after this step, the account is already fully set up. No further steps needed.
For administrator accounts: pass the admin password as the otp field.
No API key required for this call.
Inputs: otp (required), email (required), site_id, platform.
pop_preserve_documentPreserve / Archive SdI DocumentAIdempotentInspect
Archive an SdI document in long-term digital storage (conservazione sostitutiva).
Italian law requires electronic invoices to be preserved for 10 years. This tool archives a document in POP's certified digital storage system to meet legal preservation requirements.
IMPORTANT: Only call this tool when pop_get_invoice_status returns a status of RC (Ricevuta di Consegna — successfully delivered) or MC (Mancata Consegna — delivery failed but SdI accepted). Do NOT call for other statuses such as NS, EC, SE, or DT.
Requires: Basic+ plan with active SdI via POP integration.
Args:
uuid: UUID of the SdI document to archive
Inputs: uuid (required), environment.
pop_sync_zoho_documentSync Invoice to ZohoAInspect
Synchronize an invoice or credit note with the account's native Zoho Books/Invoice connector.
The connector status is checked first by default. TD04 credit notes require a reference in connected_invoice_data, and the POP Cloud API performs the authoritative Zoho payload validation and mapping.
Inputs: data (required), site_url, site_title, environment, +2 more.
pop_verify_sdi_documentVerify SdI DocumentARead-onlyIdempotentInspect
Validate an SdI (FatturaPA) XML document for compliance before submission.
Use this tool to check if an SdI XML document passes XML syntax validation and Italian e-invoicing compliance checks — without actually submitting it. This helps catch errors before they result in SdI rejections.
Common validation checks:
XML schema conformance
Fiscal code format
VAT number validity
Required field presence
Amount consistency
Requires: Basic+ plan with active SdI via POP integration and registered business.
Args:
xml_base64: The SdI XML document encoded as a Base64 string
Inputs: xml_base64 (required), environment.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools have distinct purposes based on their target invoice format or operation. Potential confusion exists between pop_get_invoice_status and pop_get_sdi_document, but descriptions clearly differentiate status polling from document retrieval. Onboarding tools are distinctly sequenced.
All tools follow a consistent pop_ prefix with snake_case. Create tools follow pop_create_<format>_invoice, get tools use pop_get_<resource>, and onboarding tools are grouped as pop_onboarding_*. The naming pattern is predictable and uniform.
With 16 tools, the server is at the high end of the ideal range, but each tool serves a distinct purpose across multiple invoice formats and an onboarding sequence. The count is justified for the domain's breadth.
The server covers SdI and Peppol well with create/status/retrieve/verify operations, but lacks equivalent status and verification tools for KSeF and ZUGFeRD. Generic listing or cancellation tools are missing, and credit note support is inconsistent across formats.
Maintenance
Related MCP Connectors
Italy FatturaPA invoices for AI agents: build FPR12 XML, transmit to the SdI, query status.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
MCP server for AI agents: WhatsApp, Instagram, TikTok, Facebook and Google Business Profile.
Fatture in Cloud MCP server for ChatGPT, Claude and any AI agent: create invoice, send to SDI, add client, record expense and list unpaid invoices in your own Fatture in Cloud account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Fatture in Cloud yourself; Cotlet does not store your password and you need no Fatture in Cloud API key. About the official Fatture in Cloud API: Yes, Fatture in Cloud has a documented REST API (v2) for issued invoices, clients, received documents, e-invoices to SDI and attachments (checked 14 Oct 2026), but it has no official MCP server. To use it you register an OAuth 2.0 app, or create a manual access token in the web app, choose scopes and pick the companies the token applies to. Setup and FAQ: https://cotlet.dev/integrations/fatture-in-cloud-api-mcp-server
Related MCP Servers
- AlicenseAqualityCmaintenanceModel Context Protocol (MCP) server for Italian Electronic Invoicing (FatturaPA / SDI). Provide tools to validate, generate, and explore API specifications for Sistema di Interscambio (SDI) interoperability.4374 PyPI2Apache 2.0
- AlicenseAqualityDmaintenanceMCP server for German e-invoice compliance (XRechnung 3.0 & ZUGFeRD 2.x) enabling AI agents to validate, generate, parse, and check compliance of electronic invoices per EN 16931.61MIT
- AlicenseBqualityBmaintenanceMCP server for VoxFactura enabling AI assistants to query business data (invoices, expenses, project margins, clients, VAT) and create draft quotes or mark invoices paid via a scoped API, with no direct client sends.25MIT
- AlicenseAqualityDmaintenanceMCP server for interacting with Aruba Fatturazione Elettronica API, enabling users to manage electronic invoices with Claude, including sending invoices to SDI, searching, downloading, and retrieving invoice details and notifications.67MIT