beliq-mcp
Validates electronic invoices (XRechnung, ZUGFeRD, Factur-X, Peppol BIS, etc.) against authority-pinned rules and explains failures.
README
beliq-mcp
An MCP server for beliq, the EU e-invoicing compliance API. It lets MCP clients (Claude Desktop, Claude Code, Cursor, and others) validate, parse, generate, and convert electronic invoices (XRechnung, ZUGFeRD, Factur-X, Peppol BIS, and other UBL/CII documents) against authority-pinned, drift-checked rules, and explain exactly what fails.
beliq produces and checks the compliant document. Transmission (Peppol, PDP, KSeF, SDI), archiving, and tax-authority reporting stay with your access point.
Tools
beliq_validate_einvoice- validate a UBL/CII XML invoice (inline or by file path) or a Factur-X/ZUGFeRD PDF (by file path). Returns the verdict, the detected format and profile, the ruleset (Schematron) version it was checked against, and every error and warning with its rule id, severity, location, and message.beliq_parse_einvoice- parse a UBL/CII XML invoice or a Factur-X/ZUGFeRD PDF into a structured EN 16931 invoice (number, dates, currency, seller, buyer, lines, totals). Returns the detected format and profile and the extracted invoice.beliq_generate_einvoice- generate a compliant document (XRechnung, ZUGFeRD, Factur-X, or Peppol BIS) from an EN 16931 invoice object. XML comes back inline; a PDF is written to theoutputPathyou give. Validates the result before returning by default (verify), so a non-compliant document fails rather than coming back.beliq_convert_einvoice- convert a document from one EN 16931 format to another (targetFormatof cii, ubl, xrechnung, peppol-bis, facturx, or zugferd). An XML target comes back inline; a PDF target is written tooutputPath. Reports any elements the conversion could not carry across.beliq_check_account- verify the configured API key and report the plan and remaining quota. CallsGET /v1/me, which draws no quota; useful as a connection and credential smoke test.
Installation
Requires Node.js >= 20.15. Published to npm, so clients can run it with npx:
npx -y beliq-mcp
The server is configured entirely through environment variables (see below).
Configuration
| Variable | Required | Default | Description |
|---|---|---|---|
BELIQ_API_KEY |
yes | - | API key from the beliq dashboard (API Keys). |
BELIQ_AUTH |
no | header |
How the key is sent: header (X-API-Key) or bearer (Authorization: Bearer). |
BELIQ_BASE_URL |
no | https://api.beliq.eu |
Override for a self-hosted deployment; defaults to the production API. |
Client setup
Claude Code
claude mcp add beliq -e BELIQ_API_KEY=your-key -- npx -y beliq-mcp
Claude Desktop
Add to claude_desktop_config.json (Settings > Developer > Edit Config):
{
"mcpServers": {
"beliq": {
"command": "npx",
"args": ["-y", "beliq-mcp"],
"env": {
"BELIQ_API_KEY": "your-key"
}
}
}
}
Cursor
Add to ~/.cursor/mcp.json (or a project .cursor/mcp.json) using the same mcpServers block shown for Claude Desktop.
Reading a result
beliq_validate_einvoice returns a short text verdict plus a structured result:
validis true only when there are no errors; warnings do not make a document invalid.formatandprofileDetectedreport the detected syntax and business profile.schematronVersionis the exact ruleset revision the check ran against.errors[]andwarnings[]each carryruleId,severity,location(an XPath when available), andmessage.
beliq_parse_einvoice returns the detected format and profileDetected plus the extracted invoice object (EN 16931 fields: number, dates, currency, seller, buyer, lines, totals, and any national extensions present).
beliq_generate_einvoice returns the output kind (xml or pdf), the contentType, and the schematronVersion the document was checked against. An XML document is also returned inline as xml; a PDF (and an XML when you set outputPath) is written to disk, and the call reports outputPath and bytesWritten. It does not overwrite an existing file: pick a path that does not exist.
beliq_convert_einvoice returns the output kind, the resolved sourceFormat and targetFormat, and lostElementsCount/lostElements for anything the conversion could not carry across. An XML target comes back inline as xml; a PDF target (facturx / zugferd) is written to outputPath. Like generate, it never overwrites an existing file.
A PDF (Factur-X / ZUGFeRD) must be passed by documentPath for validate, parse, and convert, not inlined as text.
Agent skill
skill/SKILL.md is a portable agent skill that teaches a model when to validate, how to read errors/warnings, and how to report a verdict, using the tools above. Drop it into a skills directory for an agent that should validate invoices on request.
Development
This server depends on the published @beliq/sdk, which carries the request, transport, and result-shaping logic. No lockfile is committed; @beliq/sdk is resolved fresh at install time.
npm installnpm run build- compile todist/npm run typechecknpm run lintnpm test- unit tests (result summary) and an in-memory MCP round-trip with a fake SDK clientBELIQ_API_KEY=your-key npm run test:integration- live smoke tests against the real APInpm run scrub:check- check for em-dashes in source and docs
Run the built server directly for a quick check:
BELIQ_API_KEY=your-key node dist/index.js
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。