
类型异步Python客户端+罗马尼亚ANAF网络服务的MCP服务器:e-Factura、e-Transport和公共纳税人查询。
概览
用于罗马尼亚税务局网络服务的类型化Python客户端——(电子发票)、(货物运输)、(证书认证、只读)、(declarații)——本地创作、验证、合格签署、申报)、(增值税/纳税人查询、财务报表),以及这些申报所需的外币文件中的lei数据——以及一个将所有数据存储在Claude中的本地MCP服务器。 anafpy 是——没有持久性,没有会计逻辑。发票文件要么是你的发票软件生成的 XML(强烈推荐的路径——anafpy 从不重新组合它),要么是内置的 CIUS-RO 创作模型从普通业务字段组成。无论哪种方式,ANAF 的 SPV 是发票存储(它会在 ~ 60 天后清除已提交的消息)——持久记录会留在你这边。 状态:(0.x),在PyPI上以anafpy形式存在;设计理念存在于 DESIGN.md。需要;构建在和之上。 —— 终端用户设置攻略、库指南和 API 参考。
概述(AI 翻译)
罗马尼亚ANAF税务局网络服务的Typed Python客户端—— e-Factura(电子发票),e-Transport(货物运输), SPV邮箱(证书认证,只读),税务申报 (declarații — 本地创作、验证、合格签署、归档),以及 公共无授权登记册(增值税/纳税人查询、财务报表), 加上BNR汇率用于这些申报所需的LEI数字 外币文件——以及一个本地MCP服务器,将所有文件存储在内部 克劳德。
anafpy 是一个瘦的传输客户端——没有持久化,没有会计逻辑。 发票文件可以是你的发票软件生成的XML(该文件) 强烈推荐路径——anafpy从不重新组合它)或由 通过内置的CIUS-RO创作模型实现了纯粹的业务领域。无论哪种情况, ANAF的SPV不是发票存储(它会在~60之后清除已提交的消息 日子)——持久的记录会站在你这边。
状态:beta(
0.x),在PyPI上为anafpy;设计理念存在于DESIGN.md。需要 Python 3.12+;基于 httpx2 构建 和Pydantic v2。
文档:anafpy.readthedocs.io — 该
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
anafpy
Typed Python clients for Romania’s ANAF tax-authority web services — e-Factura (electronic invoicing), e-Transport (goods transport), the SPV mailbox (certificate-authenticated, read-only), tax declarations (declarații — local authoring, validation, qualified signing, filing), and the public no-auth registries (VAT/taxpayer lookups, financial statements), plus BNR’s exchange rates for the lei figures those filings need from foreign-currency documents — and a local MCP server that puts all of it inside Claude.
anafpy is a thin transport client — no persistence, no accounting logic. Invoices file either as the XML your invoicing software produced (the strongly recommended path — anafpy never re-composes it) or composed from plain business fields by the built-in CIUS-RO authoring models. Either way, ANAF’s SPV is not invoice storage (it purges filed messages after ~60 days) — the durable record stays on your side.
Status: beta (
0.x), on PyPI asanafpy; the design rationale lives inDESIGN.md. Requires Python 3.12+; built on httpx2 and Pydantic v2.
Documentation: anafpy.readthedocs.io — the end-user setup walkthrough, the library guides, and the API reference.
Use it with Claude
With the MCP server connected, an accountant can ask Claude to:
- Verify business partners — VAT status, e-Factura enrollment, financial statements — with no login at all.
- Work the e-Factura inbox: list messages, save signed ZIPs and rendered
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →