Skip to main content
Glama

Kontor MCP

面向 AI 代理的自主电子发票工具包。 官方 XRechnung / EN 16931 校验,ZUGFeRD 导入/导出,100% 离线,零 API 密钥。

Kontor MCP 是一个开源的 Model Context Protocol 服务器和参考客户端,为 AI 助手(Claude Desktop、Claude Code、代理平台)提供完全本地的德国/欧盟电子发票能力:解析、校验、审计、解释、生成和转换 XRechnung 和 ZUGFeRD/Factur-X 发票——基于 官方 KoSIT / EN 16931 规则集,并且数据永远不会离开你的机器。

状态: Phase 0(去风险与基础搭建)——尚不可用。请参见 docs/IMPLEMENTATION_PLAN.md。

软件包

软件包

用途

@kontor-mcp/core

不依赖 MCP 的库:检测、解析、校验、生成、转换

@kontor-mcp/rules

捆绑的标准产物(XSD、编译后的 Schematron、代码表)+ 规则知识库

@kontor-mcp/server

MCP 服务器(stdio + Streamable HTTP),提供工具、资源和提示词

@kontor-mcp/client

kontor-agent — 带 Anthropic 代理循环的参考 MCP 客户端 CLI

Related MCP server: eleata e-invoice MCP server

开发

pnpm install
pnpm build
pnpm test
pnpm lint

需要 Node ≥ 20 和 pnpm 10(corepack enable 会从 packageManager 中选择指定的版本)。

文档

许可证

Apache-2.0 — 参见 LICENSE。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      InvoiceXML brings e-invoice compliance to your AI agent. Create, validate, convert, render, and extract structured invoices across UBL (Peppol BIS Billing 3.0, used worldwide), CII, Factur-X, ZUGFeRD, and XRechnung, all checked against the EN 16931 standard and official Schematron rules. Ask your assistant to generate a compliant invoice, validate one for errors, or convert between formats, with n
      5
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Validates EU electronic invoices (Peppol, XRechnung, FatturaPA, etc.) and explains validation error codes, enabling AI coding agents to check invoice validity and get fixes before rejection.
      3
      45 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants and agents to create, validate, read and convert German and EU e-invoices in ZUGFeRD, XRechnung and Factur-X formats, including extracting structured data from scanned or PDF invoices and embedding XML into PDF/A-3 files. It can run as a hosted remote server or locally, with each request authenticated by the caller's own API token.
      10
      10 npm
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI assistants to locate invoice files, extract embedded ZUGFeRD/Factur-X XML from PDF/A-3 documents, and validate compliance with § 14 UStG and EN 16931, including direct PDF invoice checks.
      3
      1
      MIT