# mcp-invoicenow-sg [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/cmendezs/mcp-invoicenow-sg  
**GitHub Stars:** 0  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-invoicenow-sg

## Description
MCP server for Singapore electronic invoicing (InvoiceNow)

## Tools
Capabilities this server exposes over MCP:

- **generate_invoice_sg** — Build an SGInvoice from structured data and serialize it to UBL 2.1 XML.

`invoice_data['profile']` (CustomizationID) and `invoice_data['business_process']`
(ProfileID) select PINT-SG or SG Peppol BIS Billing 3.0, and must be a
matched pair (TX2_Annex Annex B) — use get_profile_urn_sg to look up
both values together rather than setting them independently.
Returns the UBL XML (as a string) plus the customization_id/profile_id
that were applied. Does not validate against Schematron — call
validate_invoice_sg on the returned XML for that.
- **validate_invoice_sg** — Validate a UBL 2.1 XML invoice against IRAS's C5 acceptance-layer Schematron.

Runs IRAS's own C5 acceptance layer (checks documents that IRAS
itself would still reject, e.g. a missing buyer/seller UEN). The CEN
EN16931 base ruleset, PINT-SG's own jurisdiction overlay, and SG
Peppol BIS Billing 3.0 are NOT checked — see `scope` and the
`EN16931-BASE-UNAVAILABLE` warning in the result, and
validators/schematron.py's module docstring for why (SGInvoice's GST
category codes have no sourced crosswalk to the UNCL5305 code list
the base ruleset requires; tracked as
[CORE-EN16931-BASE-SG-CROSSWALK-1]).

Requires the optional `xslt2` extra (`pip install
mcp-invoicenow-sg[xslt2]`) — the bundled stylesheet needs XSLT 2.0.
If missing, returns `level="unavailable"`.
- **get_gst_category_codes_sg** — Return the IRAS GST category codes accepted on Singapore invoices.

Source: IRAS e-Tax Guide Annex E (supply/output-tax side only — the
purchase-side codes are out of scope for sent invoices). `rate` is
null for categories with no fixed rate ("NA" in the source table).
- **get_profile_urn_sg** — Return the CustomizationID (BT-24) and ProfileID (BT-23) for a Singapore profile.

CustomizationID comes from mcp_einvoicing_core.profile_registry
(registered at import time in models/invoice.py); ProfileID is a
shared Peppol process identifier, not per-country, so it is returned
from a local constant rather than the registry.

PINT_SG is the recommended profile for new senders — SG Peppol BIS
Billing 3.0 (BIS3) predates the PINT programme and is positioned as
legacy (per the package's own compliance reference, "Supported wire
formats and profile URNs" — user-supplied guidance, not independently verified
against an IRAS/IMDA notice). Not enforced as a hard default here;
callers choose explicitly.
- **peppol_lookup_participant** — Check whether a business is registered on the Peppol network.

Performs a DNS-over-HTTPS U-NAPTR lookup followed by an SMP
service-group request to determine registration status and the list
of supported document type identifiers.
- **peppol_get_service_endpoint** — Fetch the AS4 endpoint for a Peppol participant's document type.

Resolves the SMP hostname via DNS, then fetches service metadata for
*document_type_id*. If the SMP returns a redirect, the result's
`redirect_url` is set and `endpoint_url` is None; callers must not
follow more than one redirect hop (SMP 1.4.0 §3.2).
- **resolve_peppol_dns** — Resolve the SMP hostname for a Peppol participant via DNS only.

Performs the raw U-NAPTR (SML) lookup without fetching the SMP
service group, useful for diagnosing whether a participant is
registered in the SML independently of SMP reachability.
- **peppol_send** — Send a UBL/CII invoice to a Peppol participant via AS4.

Looks up the recipient's AS4 endpoint (SMP), builds the ebMS3/AS4
envelope, and transmits it using the supplied signing credentials.
- **list_participant_id_schemes** — List Peppol participant identifier (ICD) schemes from the OpenPeppol eDEC code list.

Requires EINVOICING_PEPPOL_CODELIST_DIR to point at a local copy of
the eDEC "Participant Identifier Schemes" GeneriCode export (not
bundled with this package, no confirmed redistribution rights, see
`mcp_einvoicing_core.peppol.codelists` module docstring).
- **list_document_type_ids** — List Peppol document type identifiers from the OpenPeppol eDEC code list.

Requires EINVOICING_PEPPOL_CODELIST_DIR (see `list_participant_id_schemes`).
- **list_process_ids** — List Peppol process identifiers from the OpenPeppol eDEC code list.

Requires EINVOICING_PEPPOL_CODELIST_DIR (see `list_participant_id_schemes`).
- **list_spis_use_case_ids** — List Peppol SPIS use case identifiers from the OpenPeppol eDEC code list.

Requires EINVOICING_PEPPOL_CODELIST_DIR (see `list_participant_id_schemes`).
- **check_document_type_id_in_codelist** — Check whether a (scheme, value) pair is a recognized Peppol document type identifier.

Requires EINVOICING_PEPPOL_CODELIST_DIR (see `list_participant_id_schemes`).
Searches all entries regardless of state, so a historical (deprecated
or removed) document type is still reported as found.
- **check_process_id_in_codelist** — Check whether a (scheme, value) pair is a recognized Peppol process identifier.

Requires EINVOICING_PEPPOL_CODELIST_DIR (see `list_participant_id_schemes`).
- **check_participant_id_scheme_in_codelist** — Check whether a 4-digit ISO 6523 ICD code (e.g. "0208") is a recognized Peppol scheme.

Requires EINVOICING_PEPPOL_CODELIST_DIR (see `list_participant_id_schemes`).
- **get_peppol_codelist_version** — Report the OpenPeppol eDEC code list release version(s) currently configured locally.
- **peppol_directory_search** — Search the Peppol Directory for registered participants.

Public, unauthenticated search (no relation to SMP lookup). At least
one of q/participant/name/country/doctype must be supplied.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-invoicenow-sg": {
    "command": "uvx",
    "args": ["mcp-invoicenow-sg"]
  }
}
```

## Documentation

## What mcp-invoicenow-sg MCP server does

The mcp-invoicenow-sg MCP server provides MCP tools for creating and working with Singapore electronic invoices for InvoiceNow, the national e-invoicing platform operated by IMDA. It handles original-issued invoices rather than received or purchase-side invoice models.

Invoice generation produces UBL 2.1 XML from structured invoice data. The server supports the recommended PINT-SG v1.4.1 profile and the older SG Peppol BIS Billing 3.0 profile. Supporting tools return IRAS GST category codes and the CustomizationID and ProfileID values associated with the selected profile.

The server also exposes generic Peppol network operations. These include checking participant registration, finding a service endpoint, searching the public directory, resolving Peppol DNS records, and transmitting UBL or CII documents through AS4.

## How it works

A typical workflow starts with `get_profile_urn_sg`, which supplies the profile identifiers needed by the invoice. The agent then passes structured data to `generate_invoice_sg` and sends the resulting XML to `validate_invoice_sg`. After local preparation, `peppol_lookup_participant`, `peppol_get_service_endpoint`, or `peppol_send` can be used for recipient discovery and transport.

Singapore UENs are normalized to the `0195` participant identifier scheme by the Peppol utilities. `peppol_send` communicates with the recipient's Peppol Access Point using AS4. It does not submit a copy to IRAS's separate C5 Invoice Data Submission API.

## Setup and configuration

Install with Python 3.11 or newer. The recommended launch method is `uvx mcp-invoicenow-sg`; source users can clone the repository and run `uv sync --all-extras`. The `mcp-einvoicing-core` dependency is installed automatically.

The validation tool requires the optional `xslt2` extra because the bundled IRAS stylesheet uses XSLT 2.0. No credentials are required to start the server. `LOG_LEVEL` can adjust logging, and `EINVOICING_PEPPOL_CODELIST_DIR` points to a local OpenPeppol eDEC Code Lists directory when codelist listing or checking tools are used.

Claude Desktop and Cursor can run the server through stdio with a `uvx` command and the `mcp-invoicenow-sg` argument. Cursor supports either a global or project-level MCP configuration.

## Tools and capabilities

The mcp-invoicenow-sg MCP server includes four Singapore invoice tools: `generate_invoice_sg`, `validate_invoice_sg`, `get_gst_category_codes_sg`, and `get_profile_urn_sg`. Its Peppol set includes participant lookup, service endpoint retrieval, DNS resolution, AS4 sending, and public directory search.

Additional Peppol codelist tools can list or check participant schemes, document types, process identifiers, and SPI use cases. Those codelist operations require the local codelist directory; participant lookup, directory search, and AS4 sending do not.

## Limitations and notes

Validation currently runs IRAS's C5 acceptance layer. It does not activate the CEN EN16931 base validator, PINT-SG jurisdiction Schematron rules, SG BIS 3.0 Schematron rules, or UBL 2.1 XSD structural validation. Results include a warning explaining the unavailable EN16931 base validation.

The server does not support the Peppol Ordering message family, SG-specific Order Balance, received-side invoice models, or IRAS's separate C5 submission API. A Peppol Access Point is still required for InvoiceNow transport, although the server is not tied to a particular commercial provider.

_Full upstream README: https://allmcps.com/mcp/mcp-invoicenow-sg/readme_

