aruba-fatturazione-elettronica-mcp
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., "@aruba-fatturazione-elettronica-mcp list my most recent invoices"
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.
Aruba Fatturazione Elettronica MCP Read-only
Documentation: https://mnbro.github.io/aruba-fatturazione-elettronica-mcp/
Tool list: https://mnbro.github.io/aruba-fatturazione-elettronica-mcp/tools/
Docker: https://mnbro.github.io/aruba-fatturazione-elettronica-mcp/docker/
LLM-friendly tools: https://mnbro.github.io/aruba-fatturazione-elettronica-mcp/llm-tools/
API parity: https://mnbro.github.io/aruba-fatturazione-elettronica-mcp/api-parity/
This MCP server exposes read-only Aruba Fatturazione Elettronica API operations. It does not send invoices, upload files, accept or reject invoices, update resources, delete resources, or expose business POST/PUT/PATCH/DELETE operations.
Authentication uses POST /auth/signin because Aruba requires it for signin and refresh token lifecycle. Those POST requests are internal auth operations only.
The server also includes LLM-friendly read-only tools for fiscal document normalization, document context, lifecycle status, risk checks, FatturaPA XML parsing, SDI notification explanations, VAT summaries, duplicate/anomaly checks, safe redaction and generic Markdown/event exports. The optional local SQLite index writes only to the configured local database path and never modifies Aruba.
This is an Aruba Fatturazione Elettronica domain MCP, not a business workflow orchestrator. It does not call other MCP servers or integrate with external CRM, email, wiki, chat, billing or reporting systems.
Badges for PyPI, release, downloads and Codecov become active after the first publication/release and Codecov setup.
License
This project is licensed under the PolyForm Internal Use License 1.0.0.
You may use and modify it for your own internal business operations, including commercial internal use. You may not redistribute it, resell it, sublicense it, or offer it as a productized service to third parties.
Related MCP server: Aruba Fatture MCP
Install
uv sync
cp .env.example .envSet ARUBA_ENV=demo first unless you have a specific reason to start in production.
Run
uv run aruba-fatturazione-elettronica-mcppython -m aruba_fatturazione_elettronica_mcp is also supported.
Docker
The Debian slim based container image is published to GitHub Container Registry:
docker run --rm -i \
--env ARUBA_ENV=demo \
--env ARUBA_USERNAME \
--env ARUBA_PASSWORD \
ghcr.io/mnbro/aruba-fatturazione-elettronica-mcp:latestSee the Docker documentation for MCP client configuration and local index volume setup.
LLM-friendly helpers
Recommended helper tools for agents:
normalize_fiscal_documentget_document_contextfiscal_document_summarydocument_lifecycle_statusdocument_risk_checkvalidate_fiscal_document_consistencycounterparty_document_historylist_pending_or_problem_documentsfiscal_period_summarytax_summaryexport_fiscal_eventsexport_document_markdownexport_period_markdownexport_counterparty_markdownprepare_document_match_hints
These helpers are built over the existing read-only Aruba wrappers. They normalize, summarize, validate and export fiscal document context without modifying Aruba state.
MCP client config
{
"mcpServers": {
"aruba-fatturazione-elettronica-readonly": {
"command": "uvx",
"args": ["aruba-fatturazione-elettronica-mcp"],
"env": {
"ARUBA_ENV": "demo",
"ARUBA_USERNAME": "...",
"ARUBA_PASSWORD": "..."
}
}
}
}API parity table
Aruba section | Aruba endpoint | MCP tool | Implemented | Sensitive read | Binary |
Auth |
|
| yes | no | no |
Auth |
|
| yes | no | no |
Auth |
|
| yes | no | no |
Sent invoices |
|
| yes | no | no |
Sent invoices |
|
| yes | conditional | no |
Sent invoices |
|
| yes | yes | yes |
Sent invoices |
|
| yes | conditional | no |
Sent invoices |
|
| yes | conditional | no |
Sent invoices |
|
| yes | yes | yes |
Received invoices |
|
| yes | no | no |
Received invoices |
|
| yes | conditional | no |
Received invoices |
|
| yes | yes | yes |
Received invoices |
|
| yes | conditional | no |
Received invoices |
|
| yes | conditional | no |
Received invoices |
|
| yes | yes | no |
Received invoices |
|
| yes | yes | yes |
Sent notifications |
|
| yes | yes | no |
Sent notifications |
|
| yes | yes | no |
Sent notifications |
|
| yes | yes | no |
Received notifications |
|
| yes | yes | no |
Received notifications |
|
| yes | yes | no |
Received notifications |
|
| yes | yes | no |
Customer result |
|
| yes | no | no |
Security notes
Some responses can contain fiscal XML, PDF, ZIP or Base64 payloads with sensitive tax data. Credentials are read only from environment variables. Tokens, passwords, Base64, XML, PDF, ZIP and likely VAT/fiscal codes are redacted from logs.
Use dedicated credentials where possible, not shared admin accounts. Verify contractually that Aruba Web Services/API access is enabled for your account. Start with ARUBA_ENV=demo.
Attribution
Inspired by these projects:
zangetsu02/fatturazione-elettronica-arubaandreafalzetti/node-fatturazione-elettronica-aruba
No code was copied verbatim in this implementation. Preserve original notices if future changes adapt source code from third-party projects.
Available Tools
70 toolsaruba_answer_invoice_questionCRead-onlyIdempotent
Collect structured context for an LLM to answer a natural-language invoice question.
Inputs: question (required), date_from, date_to, direction, +1 more. Returns: object
aruba_auth_statusARead-onlyIdempotent
Return local auth cache status without access_token or refresh_token.
Inputs: no named parameters. Returns: object
aruba_compare_invoice_totalsBRead-onlyIdempotent
Compare document total with line and VAT totals.
Inputs: xml_base64 (required). Returns: object
aruba_counterparty_reportCRead-onlyIdempotent
Aggregate invoices by supplier or customer.
Inputs: direction, date_from, date_to, group_by, +2 more. Returns: object
aruba_detect_invoice_anomaliesCRead-onlyIdempotent
Detect data-quality anomalies without providing definitive tax advice.
Inputs: direction, date_from, date_to, limit, +1 more. Returns: object
aruba_explain_invoice_typeBRead-onlyIdempotent
Explain common FatturaPA codes such as TD01, N2.2, MP05 or RF19.
Inputs: code_type (required), code (required). Returns: object
aruba_explain_sdi_notificationsCRead-onlyIdempotent
Translate SDI notifications into human-oriented status information.
Inputs: direction (required), invoice_filename (required), confirm_read. Returns: object
aruba_export_invoices_tableCRead-onlyIdempotent
Return a clean JSON table for invoices.
Inputs: direction, date_from, date_to, format, +2 more. Returns: object
aruba_extract_invoice_fieldsBRead-onlyIdempotent
Extract precise fields from a FatturaPA XML returned by Aruba.
Inputs: direction (required), filename (required), fields (required), confirm_read. Returns: object
aruba_find_duplicate_invoicesCRead-onlyIdempotent
Find possible duplicate invoices.
Inputs: direction, date_from, date_to, limit, +1 more. Returns: object
aruba_find_invoices_without_pddCRead-onlyIdempotent
Find invoice list entries that appear to lack PDD references.
Inputs: direction, date_from, date_to, limit. Returns: object
aruba_find_invoices_without_pdf_or_xmlCRead-onlyIdempotent
Find invoice list entries that appear to lack PDF/XML references.
Inputs: direction, date_from, date_to, limit. Returns: object
aruba_find_missing_notificationsBRead-onlyIdempotent
Find invoices that appear to be missing expected final SDI notifications.
Inputs: direction, date_from, date_to, expected_final_status, +2 more. Returns: object
aruba_find_received_invoicesCRead-onlyIdempotent
GET /services/invoice/in/findByUsername. Read-only received invoice search.
Inputs: username, page, size, startDate, +7 more. Returns: object
aruba_find_sent_invoicesCRead-onlyIdempotent
GET /services/invoice/out/findByUsername. Read-only sent invoice search.
Inputs: username, page, size, startDate, +7 more. Returns: object
aruba_get_customer_result_statusCRead-onlyIdempotent
GET /services/invoice/in/sendEsitoCommittente/{filename}.
Read-only customer result status.
Inputs: filename (required). Returns: object
aruba_get_index_statsARead-onlyIdempotent
Return local invoice index statistics.
Inputs: no named parameters. Returns: object
aruba_get_invoice_full_contextBRead-onlyIdempotent
LLM-friendly full invoice context from read-only Aruba GET endpoints.
Aggregates invoice payload, parsed XML, notifications, timeline and optional PDD. Sensitive when XML/PDF/notifications/PDD are requested.
Inputs: direction (required), filename (required), include_file, include_pdf, +3 more. Returns: object
aruba_get_invoice_timelineCRead-onlyIdempotent
Build a timeline from invoice metadata and SDI notifications.
Inputs: direction (required), filename (required), confirm_read. Returns: object
aruba_get_multicedente_by_idBRead-onlyIdempotent
GET /auth/multicedenti/{id}. Read-only multiseller details.
Inputs: id (required). Returns: object
aruba_get_received_invoice_by_filenameCRead-onlyIdempotent
GET /services/invoice/in/getByFilename. Sensitive when file/PDF Base64 is requested.
Inputs: filename (required), includePdf, includeFile, confirm_read. Returns: object
aruba_get_received_invoice_by_idBRead-onlyIdempotent
GET /services/invoice/in/{invoiceId}. Sensitive when file/PDF Base64 is requested.
Inputs: invoiceId (required), includePdf, includeFile, confirm_read. Returns: object
aruba_get_received_invoice_by_sdi_idCRead-onlyIdempotent
GET /services/invoice/in/getByIdSdi. Sensitive when file/PDF Base64 is requested.
Inputs: idSdi (required), includePdf, includeFile, confirm_read. Returns: object
aruba_get_received_invoice_pddCRead-onlyIdempotent
GET /services/invoice/in/pdd.
Sensitive Base64 ZIP PDD read; docs example has out/pdd typo.
Inputs: invoiceFilename, invoiceId, confirm_read. Returns: object
aruba_get_received_invoice_unsigned_fileCRead-onlyIdempotent
GET /services/invoice/in/getInvoiceWithUnsignedFile. Sensitive unsignedFile Base64 read.
Inputs: invoiceId, filename, includeFile, confirm_read. Returns: object
aruba_get_received_invoice_zip_by_filenameCRead-onlyIdempotent
GET /services/invoice/in/getZipByFilename. Sensitive Base64 ZIP read.
Inputs: filename (required), confirm_read. Returns: object
aruba_get_received_notification_by_filenameCRead-onlyIdempotent
GET /services/notification/in/getByFilename. Sensitive notification Base64 read.
Inputs: filename (required), confirm_read. Returns: object
aruba_get_received_notifications_by_invoice_filenameCRead-onlyIdempotent
GET /services/notification/in/getByInvoiceFilename. Sensitive notification Base64 read.
Inputs: invoiceFilename (required), confirm_read. Returns: object
aruba_get_received_notifications_by_invoice_idCRead-onlyIdempotent
GET /services/notification/in/{invoiceId}. Sensitive notification Base64 read.
Inputs: invoiceId (required), confirm_read. Returns: object
aruba_get_safe_invoice_summaryBRead-onlyIdempotent
Summarize one invoice with sensitive values redacted.
Inputs: direction (required), filename (required), confirm_read. Returns: object
aruba_get_sent_invoice_by_filenameBRead-onlyIdempotent
GET /services/invoice/out/getByFilename. Sensitive when file/PDF Base64 is requested.
Inputs: filename (required), includePdf, includeFile, confirm_read. Returns: object
aruba_get_sent_invoice_by_idCRead-onlyIdempotent
GET /services/invoice/out/{invoiceId}. Sensitive when file/PDF Base64 is requested.
Inputs: invoiceId (required), includePdf, includeFile, confirm_read. Returns: object
aruba_get_sent_invoice_by_sdi_idCRead-onlyIdempotent
GET /services/invoice/out/getByIdSdi. Sensitive when file/PDF Base64 is requested.
Inputs: idSdi (required), includePdf, includeFile, confirm_read. Returns: object
aruba_get_sent_invoice_pddCRead-onlyIdempotent
GET /services/invoice/out/pdd. Sensitive Base64 ZIP PDD read.
Inputs: invoiceFilename, invoiceId, confirm_read. Returns: object
aruba_get_sent_invoice_zip_by_filenameARead-onlyIdempotent
GET /services/invoice/out/getZipByFilename. Sensitive Base64 ZIP read.
Inputs: filename (required), confirm_read. Returns: object
aruba_get_sent_notification_by_filenameARead-onlyIdempotent
GET /services/notification/out/getByFilename. Sensitive notification Base64 read.
Inputs: filename (required), confirm_read. Returns: object
aruba_get_sent_notifications_by_invoice_filenameCRead-onlyIdempotent
GET /services/notification/out/getByInvoiceFilename. Sensitive notification Base64 read.
Inputs: invoiceFilename (required), confirm_read. Returns: object
aruba_get_sent_notifications_by_invoice_idDRead-onlyIdempotent
GET /services/notification/out/{invoiceId}. Sensitive notification Base64 read.
Inputs: invoiceId (required), confirm_read. Returns: object
aruba_get_user_infoBRead-onlyIdempotent
GET /auth/userInfo. Read-only account information.
Inputs: no named parameters. Returns: object
aruba_invoice_status_reportCRead-onlyIdempotent
Aggregate invoice status counts for a period.
Inputs: date_from, date_to, direction, limit. Returns: object
aruba_list_multicedentiCRead-onlyIdempotent
GET /auth/multicedenti. Read-only multiseller listing.
Inputs: countryCode, vatCode, status, size, +1 more. Returns: object
aruba_monthly_summaryCRead-onlyIdempotent
Monthly invoice status summary.
Inputs: year (required), month (required), direction, limit. Returns: object
aruba_parse_invoice_xmlCRead-onlyIdempotent
Parse Base64 FatturaPA XML into structured fields.
Inputs: xml_base64 (required), redact_sensitive. Returns: object
aruba_parse_notification_xmlCRead-onlyIdempotent
Parse Base64 SDI notification XML into structured fields.
Inputs: xml_base64 (required). Returns: object
aruba_payment_terms_reportCRead-onlyIdempotent
Extract payment terms from invoice XML.
Inputs: direction, date_from, date_to, limit, +1 more. Returns: object
aruba_reconcile_sent_receivedBRead-onlyIdempotent
Read-only reconciliation summary between sent and received Aruba invoices.
Inputs: date_from, date_to, group_by, limit. Returns: object
aruba_redact_invoiceARead-onlyIdempotent
Return a redacted invoice payload for safer LLM analysis.
Inputs: invoice (required), redaction_level. Returns: object
aruba_search_invoice_indexCRead-onlyIdempotent
Search the local SQLite invoice index.
Inputs: text, direction, vat_code, party_name_contains, +1 more. Returns: object
aruba_search_invoicesDRead-onlyIdempotent
Conceptual invoice search over read-only Aruba invoice lists.
Inputs: direction, date_from, date_to, party_name_contains, +9 more. Returns: object
aruba_summarize_invoiceCRead-onlyIdempotent
Fetch and summarize one invoice in a compact structured form.
Inputs: direction (required), filename (required), confirm_read. Returns: object
aruba_sync_invoice_indexAIdempotent
Build/update a local SQLite index from read-only Aruba GET data.
This writes only to ARUBA_INDEX_DB_PATH and never modifies Aruba.
Inputs: direction, date_from, date_to, include_xml, +3 more. Returns: object
aruba_tax_breakdown_reportCRead-onlyIdempotent
Tax breakdown report grouped by VAT rate/nature.
Inputs: direction, date_from, date_to, group_by, +2 more. Returns: object
aruba_validate_invoice_xml_structureARead-onlyIdempotent
Run non-official sanity checks on a Base64 FatturaPA XML.
Inputs: xml_base64 (required). Returns: object
aruba_vat_summaryCRead-onlyIdempotent
Summarize VAT totals from parseable invoice XML.
Inputs: direction, date_from, date_to, group_by, +2 more. Returns: object
aruba_yearly_summaryCRead-onlyIdempotent
Yearly invoice status summary.
Inputs: year (required), direction, limit. Returns: object
counterparty_document_historyCRead-onlyIdempotent
Aggregate Aruba document history for a generic counterparty.
Inputs: counterparty (required), fromDate, toDate, direction, +1 more. Returns: object
document_lifecycle_statusCRead-onlyIdempotent
Explain one document's fiscal/SDI lifecycle status.
Inputs: documentId (required), direction (required), asOfDate, confirm_read. Returns: object
document_risk_checkCRead-onlyIdempotent
Evaluate fiscal/technical document risks without giving legal or tax advice.
Inputs: documentId (required), direction (required), confirm_read. Returns: object
export_counterparty_markdownCRead-onlyIdempotent
Export a generic counterparty fiscal document report as Markdown.
Inputs: counterparty (required), fromDate, toDate, direction, +1 more. Returns: object
export_document_markdownCRead-onlyIdempotent
Export one fiscal document as generic Markdown.
Inputs: documentId (required), direction (required), includeLineItems, includeNotifications, +2 more. Returns: object
export_fiscal_eventsCRead-onlyIdempotent
Export standardized generic fiscal document events.
Inputs: fromDate, toDate, direction, eventTypes, +1 more. Returns: object
export_period_markdownCRead-onlyIdempotent
Export a generic period report as Markdown.
Inputs: fromDate, toDate, direction, includeTaxSummary, +2 more. Returns: object
fiscal_document_summaryCRead-onlyIdempotent
Return a compact LLM-friendly summary for one fiscal document.
Inputs: documentId (required), direction (required), confirm_read. Returns: object
fiscal_period_summaryCRead-onlyIdempotent
Return an informational fiscal document summary for a period.
Inputs: fromDate, toDate, direction, limit. Returns: object
get_document_contextCRead-onlyIdempotent
Return complete read-only context for one Aruba fiscal document.
Inputs: documentId (required), direction (required), confirm_read. Returns: object
list_pending_or_problem_documentsCRead-onlyIdempotent
List fiscal documents that appear to need attention.
Inputs: fromDate, toDate, direction, includeProblemOnly, +1 more. Returns: object
normalize_fiscal_documentCRead-onlyIdempotent
Normalize one Aruba fiscal document into a stable JSON shape.
This is read-only and uses existing Aruba invoice download wrappers.
Inputs: documentId (required), direction (required), documentType, confirm_read. Returns: object
prepare_document_match_hintsBRead-onlyIdempotent
Return generic document and counterparty matching hints for external consumers.
Inputs: documentId (required), direction (required), confirm_read. Returns: object
tax_summaryCRead-onlyIdempotent
Return an informational tax summary for a period; not accounting advice.
Inputs: fromDate, toDate, direction, limit. Returns: object
validate_fiscal_document_consistencyCRead-onlyIdempotent
Run technical consistency checks on one normalized fiscal document.
Inputs: documentId (required), direction (required), confirm_read. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 70 tools
Many tools have similar purposes (e.g., multiple get_invoice methods, several summary/export variants), but they are differentiated by parameters like direction (sent/received) or identifier type. The sheer number of tools, however, can cause selection ambiguity, especially among overlapping report and summary tools.
The naming is inconsistent: some tools use an 'aruba_' prefix while others (e.g., fiscal_document_summary, tax_summary) do not. Verb choices vary widely (answer, compare, detect, export, explain, find, get, etc.) without a predictable pattern, making it harder to infer tool purposes from names alone.
With 70 tools, the count is extremely high for an MCP server. This number far exceeds the typical well-scoped range of 3-15 tools and feels overwhelming, suggesting many tools could be consolidated or pruned.
For a read-only analysis server focused on Aruba FatturaPA invoices, the toolset is quite comprehensive. It covers search, retrieval, XML parsing, summaries, exports, anomaly detection, and reports. Minor gaps exist (e.g., no send/write capabilities), but the domain is well-covered for querying and analysis.
Maintenance
Related MCP Connectors
Read-only access to PRRO.cloud fiscal cash registers, shifts, tasks, billing and webhooks.
Read SmartBill series, taxes, stock, clients and products; draft and issue invoices and estimates.
Read SaldeoSMART companies, contractors, documents, invoices, bank statements and employees.
Read invoices, clients, suppliers and cashbook; create invoices and clients in Fatture in Cloud.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables read-only interaction with the FakturaXL API for querying invoices, clients, products, and stock levels with pagination, date chunking, and rate limiting.MIT
- 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
- AlicenseAqualityDmaintenanceProvides read-only access to wFirma company data, invoices, contractors, expenses, and payments, letting AI assistants query the wFirma API v2 without modifying records.936 npm1MIT
- AlicenseAqualityBmaintenanceEnables read-only queries to ARCA's agricultural web services for electronic waybills, taxpayer registry, and receipts, allowing agents to retrieve fiscal data without modifying documents.749 npmMIT