Invapi Mcp

io.github.invapi-org由 GitHub 帳號 invapi-org 發布v1.0.1更新於 Oct 24, 2026

Extract, create, convert & validate invoices (UBL, CII, XRechnung, ZUGFeRD, PDF, Excel)

已驗證STDIO僅桌面資料與分析商業與電商

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理透過 Invapi API 轉換、驗證與擷取電子發票(UBL、CII、XRechnung、ZUGFeRD、PDF、Excel)。

可以做什麼
在 JSON、UBL XML、CII XML、Excel 與 ZUGFeRD PDF 之間雙向轉換發票,包括以 PDF 加 JSON 發票產生 ZUGFeRD PDF,以及單次請求最多 100 個操作的批次轉換。依 XRechnung 3.0.2(EN 16931)驗證 UBL 或 CII XML,或自動辨識格式驗證 XML。從 PDF 或圖片擷取結構化發票資料,並從圖片讀取 QR code 資料。查詢帳戶資訊與剩餘 API 額度。
適用情境
適合處理歐洲電子發票格式時使用:讓助理把發票資料轉成 UBL、CII 或 ZUGFeRD,依 XRechnung 規則檢查 XML,或從發票 PDF 與圖片擷取結構化欄位。
執行需求
透過 stdio 在本機執行,通常以 npx 啟動 npm 套件 @invapi/mcp-server,因此需要 Node.js。需要 Invapi 帳戶,並透過環境變數 INVAPI_API_KEY 提供 API 金鑰。需要連線至 Invapi 服務的網路存取。
安裝前請注意
INVAPI_API_KEY 中的 API 金鑰屬於機密,請勿寫入共用的設定檔。操作會消耗 Invapi API 額度,批次轉換單次最多可執行 100 個操作,用量會相應扣減額度。發票文件與圖片會傳送至第三方 Invapi 服務進行轉換、驗證與擷取。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Invapi Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@invapi/mcp-server

MCP server for the Invapi E-Invoicing API — convert, validate, and extract invoices in UBL, CII, ZUGFeRD, Excel, and more.

Quick Start

bash
npm install -g @invapi/mcp-server

Set your API key (get one at invapi.org):

bash
export INVAPI_API_KEY=your-api-key

Usage

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "invapi": {      "command": "npx",      "args": ["-y", "@invapi/mcp-server"],      "env": {        "INVAPI_API_KEY": "your-api-key"      }    }  }}

Claude Code

bash
claude mcp add -e INVAPI_API_KEY=xxx invapi -- npx @invapi/mcp-server

Tools

Conversion

ToolDescription
invapi_convert_json_to_ublJSON Invoice → UBL XML
invapi_convert_json_to_ciiJSON Invoice → CII XML
invapi_convert_ubl_to_jsonUBL XML → JSON Invoice
invapi_convert_cii_to_jsonCII XML → JSON Invoice
invapi_convert_json_to_xlsxJSON Invoices → Excel file
invapi_create_zugferd_pdfPDF + JSON Invoice → ZUGFeRD PDF
invapi_convert_zugferd_to_jsonZUGFeRD PDF → JSON Invoice

Validation

ToolDescription
invapi_validate_ublValidate UBL XML against XRechnung 3.0.2 (EN 16931)
invapi_validate_ciiValidate CII XML against XRechnung 3.0.2 (EN 16931)
invapi_validate_xmlValidate XML with auto-detected format

Extraction

ToolDescription
invapi_extract_invoiceExtract structured invoice data from PDF or image
invapi_extract_qrExtract QR code data from image

User

ToolDescription
invapi_get_userGet account info and remaining API credits

Batch

ToolDescription
invapi_batch_convertRun up to 100 conversion operations in a single request

Development

bash
git clone https://github.com/invapi/invapi-mcp.gitcd invapi-mcpnpm installnpm run dev

License

MIT

來源:README.md,提交 6daebe6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。