Skip to main content
Glama
aruba-fatturazione-elettronica-mcp

aruba-fatturazione-elettronica-mcp

by mnbro

Aruba Fatturazione Elettronica MCP Read-only

PyPI version Python versions License CI Container Ruff mypy Coverage GitHub release Downloads

Documentation: https://mnbro.github.io/aruba-fatturazione-elettronica-mcp/

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 .env

Set ARUBA_ENV=demo first unless you have a specific reason to start in production.

Run

uv run aruba-fatturazione-elettronica-mcp

python -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:latest

See the Docker documentation for MCP client configuration and local index volume setup.

LLM-friendly helpers

Recommended helper tools for agents:

  • normalize_fiscal_document

  • get_document_context

  • fiscal_document_summary

  • document_lifecycle_status

  • document_risk_check

  • validate_fiscal_document_consistency

  • counterparty_document_history

  • list_pending_or_problem_documents

  • fiscal_period_summary

  • tax_summary

  • export_fiscal_events

  • export_document_markdown

  • export_period_markdown

  • export_counterparty_markdown

  • prepare_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

GET /auth/userInfo

aruba_get_user_info

yes

no

no

Auth

GET /auth/multicedenti

aruba_list_multicedenti

yes

no

no

Auth

GET /auth/multicedenti/{id}

aruba_get_multicedente_by_id

yes

no

no

Sent invoices

GET /services/invoice/out/findByUsername

aruba_find_sent_invoices

yes

no

no

Sent invoices

GET /services/invoice/out/getByFilename

aruba_get_sent_invoice_by_filename

yes

conditional

no

Sent invoices

GET /services/invoice/out/getZipByFilename

aruba_get_sent_invoice_zip_by_filename

yes

yes

yes

Sent invoices

GET /services/invoice/out/{invoiceId}

aruba_get_sent_invoice_by_id

yes

conditional

no

Sent invoices

GET /services/invoice/out/getByIdSdi

aruba_get_sent_invoice_by_sdi_id

yes

conditional

no

Sent invoices

GET /services/invoice/out/pdd

aruba_get_sent_invoice_pdd

yes

yes

yes

Received invoices

GET /services/invoice/in/findByUsername

aruba_find_received_invoices

yes

no

no

Received invoices

GET /services/invoice/in/getByFilename

aruba_get_received_invoice_by_filename

yes

conditional

no

Received invoices

GET /services/invoice/in/getZipByFilename

aruba_get_received_invoice_zip_by_filename

yes

yes

yes

Received invoices

GET /services/invoice/in/{invoiceId}

aruba_get_received_invoice_by_id

yes

conditional

no

Received invoices

GET /services/invoice/in/getByIdSdi

aruba_get_received_invoice_by_sdi_id

yes

conditional

no

Received invoices

GET /services/invoice/in/getInvoiceWithUnsignedFile

aruba_get_received_invoice_unsigned_file

yes

yes

no

Received invoices

GET /services/invoice/in/pdd

aruba_get_received_invoice_pdd

yes

yes

yes

Sent notifications

GET /services/notification/out/getByFilename

aruba_get_sent_notification_by_filename

yes

yes

no

Sent notifications

GET /services/notification/out/getByInvoiceFilename

aruba_get_sent_notifications_by_invoice_filename

yes

yes

no

Sent notifications

GET /services/notification/out/{invoiceId}

aruba_get_sent_notifications_by_invoice_id

yes

yes

no

Received notifications

GET /services/notification/in/getByFilename

aruba_get_received_notification_by_filename

yes

yes

no

Received notifications

GET /services/notification/in/getByInvoiceFilename

aruba_get_received_notifications_by_invoice_filename

yes

yes

no

Received notifications

GET /services/notification/in/{invoiceId}

aruba_get_received_notifications_by_invoice_id

yes

yes

no

Customer result

GET /services/invoice/in/sendEsitoCommittente/{filename}

aruba_get_customer_result_status

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-aruba

  • andreafalzetti/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 tools
aruba_answer_invoice_questionC
Read-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_statusA
Read-onlyIdempotent

Return local auth cache status without access_token or refresh_token.

Inputs: no named parameters. Returns: object

aruba_compare_invoice_totalsB
Read-onlyIdempotent

Compare document total with line and VAT totals.

Inputs: xml_base64 (required). Returns: object

aruba_counterparty_reportC
Read-onlyIdempotent

Aggregate invoices by supplier or customer.

Inputs: direction, date_from, date_to, group_by, +2 more. Returns: object

aruba_detect_invoice_anomaliesC
Read-onlyIdempotent

Detect data-quality anomalies without providing definitive tax advice.

Inputs: direction, date_from, date_to, limit, +1 more. Returns: object

aruba_explain_invoice_typeB
Read-onlyIdempotent

Explain common FatturaPA codes such as TD01, N2.2, MP05 or RF19.

Inputs: code_type (required), code (required). Returns: object

aruba_explain_sdi_notificationsC
Read-onlyIdempotent

Translate SDI notifications into human-oriented status information.

Inputs: direction (required), invoice_filename (required), confirm_read. Returns: object

aruba_export_invoices_tableC
Read-onlyIdempotent

Return a clean JSON table for invoices.

Inputs: direction, date_from, date_to, format, +2 more. Returns: object

aruba_extract_invoice_fieldsB
Read-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_invoicesC
Read-onlyIdempotent

Find possible duplicate invoices.

Inputs: direction, date_from, date_to, limit, +1 more. Returns: object

aruba_find_invoices_without_pddC
Read-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_xmlC
Read-onlyIdempotent

Find invoice list entries that appear to lack PDF/XML references.

Inputs: direction, date_from, date_to, limit. Returns: object

aruba_find_missing_notificationsB
Read-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_invoicesC
Read-onlyIdempotent

GET /services/invoice/in/findByUsername. Read-only received invoice search.

Inputs: username, page, size, startDate, +7 more. Returns: object

aruba_find_sent_invoicesC
Read-onlyIdempotent

GET /services/invoice/out/findByUsername. Read-only sent invoice search.

Inputs: username, page, size, startDate, +7 more. Returns: object

aruba_get_customer_result_statusC
Read-onlyIdempotent

GET /services/invoice/in/sendEsitoCommittente/{filename}.

Read-only customer result status.

Inputs: filename (required). Returns: object

aruba_get_index_statsA
Read-onlyIdempotent

Return local invoice index statistics.

Inputs: no named parameters. Returns: object

aruba_get_invoice_full_contextB
Read-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_timelineC
Read-onlyIdempotent

Build a timeline from invoice metadata and SDI notifications.

Inputs: direction (required), filename (required), confirm_read. Returns: object

aruba_get_multicedente_by_idB
Read-onlyIdempotent

GET /auth/multicedenti/{id}. Read-only multiseller details.

Inputs: id (required). Returns: object

aruba_get_received_invoice_by_filenameC
Read-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_idB
Read-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_idC
Read-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_pddC
Read-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_fileC
Read-onlyIdempotent

GET /services/invoice/in/getInvoiceWithUnsignedFile. Sensitive unsignedFile Base64 read.

Inputs: invoiceId, filename, includeFile, confirm_read. Returns: object

aruba_get_received_invoice_zip_by_filenameC
Read-onlyIdempotent

GET /services/invoice/in/getZipByFilename. Sensitive Base64 ZIP read.

Inputs: filename (required), confirm_read. Returns: object

aruba_get_received_notification_by_filenameC
Read-onlyIdempotent

GET /services/notification/in/getByFilename. Sensitive notification Base64 read.

Inputs: filename (required), confirm_read. Returns: object

aruba_get_received_notifications_by_invoice_filenameC
Read-onlyIdempotent

GET /services/notification/in/getByInvoiceFilename. Sensitive notification Base64 read.

Inputs: invoiceFilename (required), confirm_read. Returns: object

aruba_get_received_notifications_by_invoice_idC
Read-onlyIdempotent

GET /services/notification/in/{invoiceId}. Sensitive notification Base64 read.

Inputs: invoiceId (required), confirm_read. Returns: object

aruba_get_safe_invoice_summaryB
Read-onlyIdempotent

Summarize one invoice with sensitive values redacted.

Inputs: direction (required), filename (required), confirm_read. Returns: object

aruba_get_sent_invoice_by_filenameB
Read-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_idC
Read-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_idC
Read-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_pddC
Read-onlyIdempotent

GET /services/invoice/out/pdd. Sensitive Base64 ZIP PDD read.

Inputs: invoiceFilename, invoiceId, confirm_read. Returns: object

aruba_get_sent_invoice_zip_by_filenameA
Read-onlyIdempotent

GET /services/invoice/out/getZipByFilename. Sensitive Base64 ZIP read.

Inputs: filename (required), confirm_read. Returns: object

aruba_get_sent_notification_by_filenameA
Read-onlyIdempotent

GET /services/notification/out/getByFilename. Sensitive notification Base64 read.

Inputs: filename (required), confirm_read. Returns: object

aruba_get_sent_notifications_by_invoice_filenameC
Read-onlyIdempotent

GET /services/notification/out/getByInvoiceFilename. Sensitive notification Base64 read.

Inputs: invoiceFilename (required), confirm_read. Returns: object

aruba_get_sent_notifications_by_invoice_idD
Read-onlyIdempotent

GET /services/notification/out/{invoiceId}. Sensitive notification Base64 read.

Inputs: invoiceId (required), confirm_read. Returns: object

aruba_get_user_infoB
Read-onlyIdempotent

GET /auth/userInfo. Read-only account information.

Inputs: no named parameters. Returns: object

aruba_invoice_status_reportC
Read-onlyIdempotent

Aggregate invoice status counts for a period.

Inputs: date_from, date_to, direction, limit. Returns: object

aruba_list_multicedentiC
Read-onlyIdempotent

GET /auth/multicedenti. Read-only multiseller listing.

Inputs: countryCode, vatCode, status, size, +1 more. Returns: object

aruba_monthly_summaryC
Read-onlyIdempotent

Monthly invoice status summary.

Inputs: year (required), month (required), direction, limit. Returns: object

aruba_parse_invoice_xmlC
Read-onlyIdempotent

Parse Base64 FatturaPA XML into structured fields.

Inputs: xml_base64 (required), redact_sensitive. Returns: object

aruba_parse_notification_xmlC
Read-onlyIdempotent

Parse Base64 SDI notification XML into structured fields.

Inputs: xml_base64 (required). Returns: object

aruba_payment_terms_reportC
Read-onlyIdempotent

Extract payment terms from invoice XML.

Inputs: direction, date_from, date_to, limit, +1 more. Returns: object

aruba_reconcile_sent_receivedB
Read-onlyIdempotent

Read-only reconciliation summary between sent and received Aruba invoices.

Inputs: date_from, date_to, group_by, limit. Returns: object

aruba_redact_invoiceA
Read-onlyIdempotent

Return a redacted invoice payload for safer LLM analysis.

Inputs: invoice (required), redaction_level. Returns: object

aruba_search_invoice_indexC
Read-onlyIdempotent

Search the local SQLite invoice index.

Inputs: text, direction, vat_code, party_name_contains, +1 more. Returns: object

aruba_search_invoicesD
Read-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_invoiceC
Read-onlyIdempotent

Fetch and summarize one invoice in a compact structured form.

Inputs: direction (required), filename (required), confirm_read. Returns: object

aruba_sync_invoice_indexA
Idempotent

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_reportC
Read-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_structureA
Read-onlyIdempotent

Run non-official sanity checks on a Base64 FatturaPA XML.

Inputs: xml_base64 (required). Returns: object

aruba_vat_summaryC
Read-onlyIdempotent

Summarize VAT totals from parseable invoice XML.

Inputs: direction, date_from, date_to, group_by, +2 more. Returns: object

aruba_yearly_summaryC
Read-onlyIdempotent

Yearly invoice status summary.

Inputs: year (required), direction, limit. Returns: object

counterparty_document_historyC
Read-onlyIdempotent

Aggregate Aruba document history for a generic counterparty.

Inputs: counterparty (required), fromDate, toDate, direction, +1 more. Returns: object

document_lifecycle_statusC
Read-onlyIdempotent

Explain one document's fiscal/SDI lifecycle status.

Inputs: documentId (required), direction (required), asOfDate, confirm_read. Returns: object

document_risk_checkC
Read-onlyIdempotent

Evaluate fiscal/technical document risks without giving legal or tax advice.

Inputs: documentId (required), direction (required), confirm_read. Returns: object

export_counterparty_markdownC
Read-onlyIdempotent

Export a generic counterparty fiscal document report as Markdown.

Inputs: counterparty (required), fromDate, toDate, direction, +1 more. Returns: object

export_document_markdownC
Read-onlyIdempotent

Export one fiscal document as generic Markdown.

Inputs: documentId (required), direction (required), includeLineItems, includeNotifications, +2 more. Returns: object

export_fiscal_eventsC
Read-onlyIdempotent

Export standardized generic fiscal document events.

Inputs: fromDate, toDate, direction, eventTypes, +1 more. Returns: object

export_period_markdownC
Read-onlyIdempotent

Export a generic period report as Markdown.

Inputs: fromDate, toDate, direction, includeTaxSummary, +2 more. Returns: object

fiscal_document_summaryC
Read-onlyIdempotent

Return a compact LLM-friendly summary for one fiscal document.

Inputs: documentId (required), direction (required), confirm_read. Returns: object

fiscal_period_summaryC
Read-onlyIdempotent

Return an informational fiscal document summary for a period.

Inputs: fromDate, toDate, direction, limit. Returns: object

get_document_contextC
Read-onlyIdempotent

Return complete read-only context for one Aruba fiscal document.

Inputs: documentId (required), direction (required), confirm_read. Returns: object

list_pending_or_problem_documentsC
Read-onlyIdempotent

List fiscal documents that appear to need attention.

Inputs: fromDate, toDate, direction, includeProblemOnly, +1 more. Returns: object

normalize_fiscal_documentC
Read-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_hintsB
Read-onlyIdempotent

Return generic document and counterparty matching hints for external consumers.

Inputs: documentId (required), direction (required), confirm_read. Returns: object

tax_summaryC
Read-onlyIdempotent

Return an informational tax summary for a period; not accounting advice.

Inputs: fromDate, toDate, direction, limit. Returns: object

validate_fiscal_document_consistencyC
Read-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

    C2.4/5.0

    Scored across 70 tools

    Disambiguation3/5

    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.

    Naming Consistency2/5

    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.

    Tool Count1/5

    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.

    Completeness4/5

    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

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables read-only interaction with the FakturaXL API for querying invoices, clients, products, and stock levels with pagination, date chunking, and rate limiting.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP 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.
      6
      7
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides read-only access to wFirma company data, invoices, contractors, expenses, and payments, letting AI assistants query the wFirma API v2 without modifying records.
      9
      36 npm
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      7
      49 npm
      MIT