InvoiceXML
com.invoicexml由 invoicexml.com 發布官方發布者v1.0.0更新於 Oct 24, 2026
Create, validate, convert & extract compliant e-invoices (UBL, Factur-X, ZUGFeRD, XRechnung)
概覽
遠端 InvoiceXML MCP 伺服器,讓助理建立、驗證、轉換並擷取符合規範的電子發票(UBL、Factur-X、ZUGFeRD、XRechnung)。
- 可以做什麼
- 建立並產生符合規範的電子發票
- 驗證既有電子發票文件是否符合相關標準
- 在 UBL、CII、Factur-X、ZUGFeRD、XRechnung 等格式之間轉換發票
- 從上傳或透過網址抓取的發票檔案中擷取資料
- 支援 Peppol BIS Billing 3.0 等相關歐洲電子發票規範
- 適用情境
- 適合助理需要依歐洲電子發票標準產生、檢查或重新格式化發票,或從發票檔案擷取結構化資料,而不想自行實作格式處理的情況。
- 執行需求
- 託管端點位於遠端,需透過 invoicexml.com 的 OAuth 2.1 登入,取得的存取權杖即使用者的 API 金鑰。自行部署同一份程式碼需要 .NET 10 SDK 與 InvoiceXML API 金鑰,透過 INVOICEXML_API_KEY 或 McpApiKeyValue 提供。需要能連線至 InvoiceXML API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 InvoiceXML,將其新增到工作區。
- 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
交給代理程式安裝
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/com.invoicexml%2Finvoicexml/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。其他 MCP 客戶端
把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。
{
"mcpServers": {
"invoicexml": {
"type": "http",
"url": "https://mcp.invoicexml.com/"
}
}
}README
InvoiceXML MCP Server
A Model Context Protocol server that exposes the InvoiceXML API to AI agents. Covers Factur-X, ZUGFeRD, XRechnung, UBL / CII, and Peppol BIS Billing 3.0.
The same codebase runs in two deployment shapes, selected at startup by one environment variable:
Both run the same binary; only the configuration differs. The repository is platform-independent — it knows nothing about where or how you host it.
Architecture
InvoiceXml.Mcp.Core is a small, transport-agnostic SDK:
IInvoiceXmlClient— typed client over the public REST APIHttpInvoiceXmlClient— the only implementation; consumes anHttpClientfromIHttpClientFactoryInvoiceXmlClientOptions— base URL, timeout (no auth)AddInvoiceXmlMcpCore(IServiceCollection, IConfiguration)— DI entry point; returns theIHttpClientBuilderso the host attaches auth as aDelegatingHandler
The SDK never sees credentials. The host applies them through the HTTP pipeline. That seam is what lets one codebase serve both deployment modes.
InvoiceXml.Mcp.Host is an ASP.NET Core 10 app:
- Reads
Mcp:AuthMode(ApiKeyorOAuth) at startup - Wires the matching
DelegatingHandleronto the Core HTTP client viaAddHostAuth(...) - Serves the MCP endpoint at
POST /, a human-friendly welcome page atGET /, and/health
Adding a new auth mode = one arm in AuthExtensions.cs plus a small folder under
Auth/<Mode>/. Adding a new tool = one [McpServerTool] class. Nothing else changes.
Repository layout
Running locally
You need a .NET 10 SDK and an InvoiceXML API key.
GET http://localhost:5004/ shows a welcome page in a browser; the MCP endpoint is
POST http://localhost:5004/; GET /health returns { "status": "ok" }.
Configuration
Environment variable equivalents (double underscore = nesting):
OAuth mode
When Mcp:AuthMode=OAuth the host stops accepting a static API key and instead:
- Returns 401 with
WWW-Authenticate: Bearer resource_metadata="…"for anyPOST /that has no Bearer token. - Serves
GET /.well-known/oauth-protected-resourcepointing MCP clients atinvoicexml.comas the authorization server. - Forwards the inbound Bearer token verbatim on every outbound call to the InvoiceXML API (the API is the source of truth for token validity; the MCP server does not validate tokens locally).
The dance an MCP client performs:
Deployment
The host is a standard ASP.NET Core app — run it however you run .NET services (systemd, a container, a PaaS, etc.; the repo doesn't prescribe one):
Set configuration via environment variables on the host (never commit secrets):
ASPNETCORE_ENVIRONMENT=ProductionMcp__AuthMode=ApiKey(orOAuth)Mcp__ApiKey__Value=…/INVOICEXML_API_KEY=…(ApiKey mode)McpUri=https://your-public-urlandMcp__OAuth__AuthorizationServer=https://invoicexml.com(OAuth mode)
Terminate TLS at your reverse proxy / load balancer and forward to the host's HTTP port. The server is stateless, so you can run multiple instances behind a load balancer.
License
MIT — see LICENSE.
來源:README.md,提交 41942a0
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 85%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
- 已宣告認證方式必需10 分
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分