Elster Mcp Server

io.github.lukasschwarz由 GitHub 账号 lukasschwarz 发布v0.1.0更新于 Oct 24, 2026

Drive the German tax portal ELSTER via Puppeteer: submit UStVA, prepare EUER/ESt, sync inbox.

概览

AI 生成的概览

通过真实浏览器会话操作德国 ELSTER 税务门户,用于准备增值税申报,并在明确确认后提交,以及读取税务收件箱数据。

可以做什么
它使用你自己的证书和凭据,通过 Puppeteer 自动化公开的 ELSTER 网页门户。工具包括登录测试、显示已加载配置(密钥已脱敏)、列出支持的 UStVA 税号、生成 UStVA XML 快照、识别反向征税供应商、填写并检查 UStVA 并在发送前暂停等待确认、将 Anlage EÜR 和 ESt 1 A 填写到复核步骤,以及只读同步已提交表单和 ELSTER 收件箱。会话状态、列表和取消工具用于管理浏览器会话。
适用场景
如果你需要申报德国增值税,或希望在 ELSTER 门户中预填 EÜR 和所得税表单,并愿意自行复核和确认每一步,可以使用它。它适合已持有 ELSTER 证书、希望自动化重复表单录入的用户,而不是完全无人值守的申报服务。
运行要求
以 npm 包形式通过 stdio 在本地运行,需要 Node.js 18 或更高版本;首次安装时 Puppeteer 会下载内置 Chromium。需要 ELSTER .pfx 证书文件及其密码(ELSTER_PASSWORD)、你的 Steuernummer 和两位州代码,以及地址信息,可通过 config.json 或环境变量(如 ELSTER_CONFIG_PATH、ELSTER_PFX_PATH)提供。仅限桌面端。
安装前请注意
它处理税务凭据:.pfx 证书和 ELSTER_PASSWORD 会传给 Puppeteer,因此运行主机必须可信,且 config.json、.env 和 .pfx 绝不能提交到版本库。elster_ustva_confirm 会真正发送申报表,需要在暂停后再次明确调用;EÜR 和 ESt 工具只填写表单,从不提交。自动化访问门户可能与 ELSTER 使用条款冲突,该项目为非官方实验性工具,且不构成税务建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Elster Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

elster-mcp-server

A Model Context Protocol (MCP) server that lets Claude (or any MCP-capable client) drive the German tax portal ELSTER via Puppeteer.


⚖️ Legal Notice / Rechtlicher Hinweis

English

  • This project is an experimental, community-built tool. It is not affiliated with, endorsed by, or supported by the Bundesministerium der Finanzen, the ELSTER project, or any tax authority.
  • The official, supported way to submit tax data programmatically is the ERiC library (registration as a software vendor required). This tool instead automates the public ELSTER web portal with a real user session — the same path a human user takes — using credentials YOU provide.
  • The official ELSTER terms of use ("Nutzungsbedingungen") may restrict automated access to the portal. Whether your specific use is permitted is your responsibility to verify before running this software.
  • Use at your own risk. The author(s) provide this software AS IS, WITHOUT WARRANTY OF ANY KIND (see LICENSE). The author(s) accept NO liability for incorrect tax submissions, account suspensions, missed deadlines, lost data, or any other consequences arising from the use of this software.
  • This project is not tax advice (no "Hilfeleistung in Steuersachen" in the sense of § 2 StBerG). If you are unsure whether a submission is correct, consult a Steuerberater.
  • Operators using this software in a commercial context (e.g. submitting on behalf of third parties) may be subject to the German Steuerberatungsgesetz and must verify their own licensing situation.

Deutsch

  • Dieses Projekt ist ein experimentelles, von der Community gebautes Werkzeug. Es ist weder vom Bundesministerium der Finanzen noch vom ELSTER-Projekt noch von einer Finanzbehörde unterstützt, autorisiert oder geprüft.
  • Der offizielle, vom BMF unterstützte Weg zur programmatischen Übermittlung von Steuerdaten ist die ERiC-Bibliothek (Registrierung als Softwarehersteller erforderlich). Dieses Tool nimmt stattdessen den Weg über das öffentliche ELSTER-Webportal — denselben Weg, den ein menschlicher Nutzer per Browser geht — mit Zertifikatsdaten, die DU bereitstellst.
  • Die offiziellen ELSTER-Nutzungsbedingungen können automatisierten Zugriff auf das Portal einschränken oder verbieten. Es liegt in deiner alleinigen Verantwortung zu prüfen, ob dein konkreter Anwendungsfall erlaubt ist, bevor du dieses Tool nutzt.
  • Nutzung auf eigenes Risiko. Die Autor:innen stellen die Software OHNE JEGLICHE GEWÄHRLEISTUNG bereit (siehe LICENSE). Die Autor:innen übernehmen keine Haftung für fehlerhafte Steuerübermittlungen, gesperrte Konten, versäumte Fristen, Datenverluste oder sonstige Folgen aus der Nutzung dieser Software.
  • Dieses Projekt ist keine Steuerberatung im Sinne des § 2 StBerG. In Zweifelsfällen ist ein:e Steuerberater:in zu konsultieren.
  • Wer diese Software gewerblich einsetzt (z.B. Übermittlung im Auftrag Dritter), unterliegt unter Umständen dem Steuerberatungsgesetz und muss seine Berechtigung selbst sicherstellen.

Practical safeguards built into the tool

  • The only tool that actually transmits data is elster_ustva_confirm — it requires an explicit second call after elster_ustva_start has paused at AWAITING_CONFIRM. Nothing is sent without that second confirmation.
  • The EÜR and ESt tools never submit. They only fill the form up to "Prüfen" and stop, so you review and submit yourself in the ELSTER portal.
  • All sync / history / inbox tools are read-only and never modify state on the ELSTER side.

Features

ToolWhat it doesSubmits?
elster_login_testVerifies your certificate + password can log inNo
elster_config_showShows the loaded config (secrets redacted)No
elster_kennziffern_listReturns the supported UStVA Kennziffern with descriptionsNo
elster_ustva_generate_xmlGenerates a UStVA XML snapshot (archive only)No
elster_ustva_detect_reverse_chargeDetects §13b reverse-charge suppliersNo
elster_ustva_startLogs in, fills, runs Prüfung, then pauses for confirmationPauses
elster_ustva_confirmClicks "Absenden" after you reviewedYes
elster_eur_startFills Anlage EÜR up to Prüfung, then "Speichern und Verlassen"No
elster_est_startOpens ESt 1 A, fills basics, runs Prüfung, keeps browser open 30 minNo
elster_sync_historyReads "Übermittelte Formulare" (optionally with PDFs)No
elster_sync_inboxReads ELSTER inbox (optionally with PDFs)No
elster_session_status / _list / _cancelSession managementNo

Requirements

  • Node.js ≥ 18
  • An ELSTER certificate file (.pfx) — get it from https://www.elster.de → "Mein ELSTER" → "Mein Benutzerkonto" → "Zertifikat verlängern"
  • The certificate password
  • Your Steuernummer and Bundesland-Code

Install

bash
git clone https://github.com/YOUR_USERNAME/elster-mcp-server.gitcd elster-mcp-servernpm installnpm run build

Puppeteer will install a bundled Chromium on first install (~150 MB).

Configuration

bash
cp config.example.json config.json$EDITOR config.json

All keys in config.json can be overridden by environment variables (ELSTER_PFX_PATH, ELSTER_PASSWORD, ELSTER_TAX_NUMBER, ELSTER_STATE_CODE, ELSTER_NAME, ELSTER_FIRST_NAME, ELSTER_STREET, ELSTER_HOUSE_NUMBER, ELSTER_ZIP, ELSTER_CITY, ELSTER_COUNTRY, ELSTER_DOWNLOAD_DIR, ELSTER_SCREENSHOT_DIR, ELSTER_HEADLESS, ELSTER_EST_SKIP_EUR). Env vars win over the file.

You can also point the loader at a different config file via ELSTER_CONFIG_PATH=/path/to/your/config.json.

The two-digit stateCode for your Finanzamt is published by ELSTER — look up the current value in the official ELSTER documentation.

Reverse-Charge supplier list

Add your §13b UStG suppliers under ustva.reverseChargeSuppliers in config.json. Patterns are case-insensitive regexes matched against the voucher's contactName or description. Example entry:

json
{ "pattern": "your-supplier\\s+ireland", "region": "EU", "name": "Your Supplier Ireland" }

Use with Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "elster": {      "command": "node",      "args": ["/absolute/path/to/elster-mcp-server/dist/index.js"],      "env": {        "ELSTER_CONFIG_PATH": "/absolute/path/to/elster-mcp-server/config.json"      }    }  }}

See examples/claude_desktop_config.json for the template.

Use with any MCP client

Run the server in stdio mode:

bash
node dist/index.js

Then connect via your client's MCP transport.

Typical UStVA flow

text
1. elster_login_test                          → { ok: true }2. elster_kennziffern_list                    → reference for valid codes3. elster_ustva_start({                       → { sessionId: "ustva-..." }     year: 2026,     period: "Q1",     report: { "81": 12000, "86": 300, "66": 1845.30 }   })4. elster_session_status({ sessionId })       → poll until status == AWAITING_CONFIRM   (open the screenshot at screenshotPath to verify)5. elster_ustva_confirm({ sessionId })        → { success: true, ticket: "..." }

Typical EÜR flow

text
1. elster_login_test2. elster_eur_start({     year: 2025,     data: {       betriebseinnahmen: 50000,       fahrzeugkosten: 1200,       afa: 800,       homeOffice: 1260     }   })3. elster_session_status (poll until SAVED or AWAITING_REVIEW)4. open the ELSTER portal in your browser → "Meine Formulare" → review the draft → submit manually

Security notes

  • Never commit your .env, config.json, or .pfx. They are gitignored by default.
  • The certificate password is read from env / config and passed to Puppeteer — make sure the host running this server is trusted.
  • Set ELSTER_HEADLESS=false once to watch the first run and confirm everything is wired correctly.

Limitations

  • The ELSTER portal selectors can change. If a flow breaks, run with ELSTER_HEADLESS=false and check the screenshots written to ./screenshots/.
  • The ESt tool is intentionally a thin wrapper — German income-tax forms (Anlage G, V, N, S, KAP …) are dozens of different forms with thousands of fields. This server provides the framework (login, open, fill-by-label-or-id, Prüfen) and leaves the field choices to you.
  • No XML submission path. Official programmatic submission requires the ERiC library (registration as a software vendor). This server uses the same Online-Formular path that any taxpayer uses.

License

MIT

Contributing

PRs welcome. The most useful additions are:

  1. More robust selectors for changed ELSTER pages
  2. Pre-filled Anlage G / V / N / S templates for ESt
  3. A typed report schema validator for elster_ustva_*

When opening an issue, please run with ELSTER_HEADLESS=false and attach the screenshot under ./screenshots/ that shows the failure.

来源:README.md,提交 baa029d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分