elster-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@elster-mcp-server Starte meine Einkommensteuererklärung 2025 und übernimm die Daten aus dem Vorjahr."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
elster-mcp-server
An MCP server that lets Claude (or any MCP client) fill in any form on the German tax portal ELSTER: Einkommensteuer with all its Anlagen, EÜR, UStVA, and whatever else the portal offers. You talk through your return; the agent enters it, runs ELSTER's own checks and shows you exactly what would be transmitted.
It cannot submit. When the return is ready, it opens it for you in a visible browser window on the "Formular absenden" page. You read it, and you click "Absenden".
What it can do
Fill any form by Kennzahl. Fields, checkboxes, table rows and sub-pages, through the same HTTP requests the portal's own page sends. No screen scraping, no brittle clicks.
Start or continue. New forms with the Anlagen you pick, drafts from "Meine Formulare", carrying over last year's submission, importing the pre-filled data the tax office already holds (Lohnsteuerbescheinigung, Vorsorge, …).
Check with ELSTER itself. "Prüfen" returns the portal's errors and hints with the pages that cause them, plus the provisional result ("Erstattung: 1.655,21 €").
Review before sending. Reads the final "Formular absenden" overview row by row, including where each value came from (Bescheinigung, Profil, Beleg, earlier filing).
Receipts. Uploads PDFs and images to "Meine Belege" with their Belegart and amounts.
Your history as context. Lists past submissions and reads their Übertragungsprotokoll field by field, so last year's return can inform this year's. Also reads the ELSTER inbox (Bescheide) and "Übermittelte Formulare".
Hand off. Opens the finished form for you to send. See Safety.
Related MCP server: Dichiarazione-MCP
Changes in this fork
Based on Infraviored/elster-mcp-server (MIT). Added while filing two real ESt returns:
Tile fields. Some pages (e.g. Anlage Vorsorgeaufwand, "Steuerfreie Arbeitgeberzuschüsse") keep their inputs in tiles named
mzbs[Group].items[n].fields[…].elster_form_pagenow lists them undertiles, andelster_form_setsaves them through the row's ownUpdateMzbItemcommand. Keys can be the full input name, the field name or the Kennzahl; a key that matches several rows is refused with a hint to use the full name.Anlagen wizard.
elster_form_newno longer gets stuck in the Anlagen assistant:ExitWizardis on the allowlist and is used to leave it.Self-test covers both changes (
node tools/engine-selftest.mjs).Helper scripts in
scripts/: create a draft with extra Anlagen, fix fields in a draft, print a draft's "Formular absenden" overview to PDF, delete one draft after a double check, and read pre-filled data and Bescheide.
Safety
Sending a tax return is your electronic signature. This server is built so that nothing it runs can do it.
Allowlist, not blocklist. Every form command is parsed, must name exactly one command, and that command must be on a fixed list of editing and checking commands. Anything else, including commands nobody has seen yet, is refused. Send, delete draft, delete receipt and log out are not on the list.
The send page is locked. The engine may look at the "Formular absenden" overview (
elster_form_review), but while it is there it can only switch back to editing.Handoff instead of a send button.
elster_form_handoffopens the form in a separate, visible browser, moves it to "Formular absenden", and then disconnects from that window. The MCP keeps no handle on it, so no tool call, token or flag can click "Absenden", not even with an agent running in a permissive mode. Your mouse is the only way to send.Offline self-test.
node tools/engine-selftest.mjschecks the guards against escaped, compound and disguised send commands in a headless Chrome, without logging in.
Quick start
Requirements: Node.js ≥ 18, your ELSTER certificate file (.pfx) and its password.
git clone https://github.com/kegelmeier/elster-mcp-server.git
cd elster-mcp-server
npm install # also downloads a bundled Chromium (~150 MB)
npm run build
cp config.example.json config.json # set auth.pfxPath and auth.passwordRegister it with your client, e.g. Claude Code:
claude mcp add elster -e ELSTER_CONFIG_PATH=$PWD/config.json -- node $PWD/dist/index.jsor Claude Desktop (claude_desktop_config.json, template in examples/):
{
"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" }
}
}
}Then just ask: "Mach meine EÜR 2025. Hier sind meine Rechnungen …" and run
elster_login_test once if you want to confirm the certificate works first.
A typical session
elster_form_new { form: "est", year: 2025,
anlagen: ["VHauptvordruck", "VAnlageN", "VAnlageVor"] }
→ eDaten imported, lands on the Startseite, returns the page tree
elster_form_page { rid: "FormData://est-2025-v1/…/VAnlageN[0]/HomeofficePauschale[0]" }
→ fields with Kennzahl, label, current value
elster_form_set { values: { E0204507: 81 } }
elster_form_add_row{ group: "AufwendungenArbeitsmittel",
values: { E0204401: "Bürostuhl", E0204402: 429 } }
elster_form_check → { ok: true, result: ["Erstattung: 1.655,21 €"] }
elster_form_review → every row that would be transmitted, with its source
elster_form_handoff→ a browser window opens on "Formular absenden" — you click
elster_form_handoff_wait
→ returns when you close the window: Transferticket,
protocol saved as HTML + PDFTools
Group | Tool | What it does |
Forms |
| Starts any form: year, Datenübernahme, Anlagen, eDaten import |
| Lists saved drafts / opens one | |
| Reads one page / walks a whole form (fields, repeat groups, navigation) | |
| Sets fields by Kennzahl or full field name | |
| Adds or removes table rows | |
| Uploads PDF/XML files into a form's attachments (e.g. Einspruch "Anhänge") | |
| Escape hatch for other allowlisted form commands | |
| Saves the form as a draft and closes it | |
Check |
| Runs "Prüfen": errors, hints, provisional result |
| Reads the "Formular absenden" overview row by row | |
| Opens the form on "Formular absenden" in a visible window; you send | |
| Waits until you close that window; if you sent, saves the transmission protocol as HTML + PDF | |
Data |
| Pre-filled data the tax office holds for a year |
| Earlier submissions a new form can carry over | |
| Lists / uploads receipts in "Meine Belege" | |
History |
| Past submissions and their full transmitted content |
| Saves a submission's Übertragungsprotokoll as HTML + PDF, as proof | |
| "Übermittelte Formulare" and the inbox, optionally with PDFs | |
Setup |
| Checks the login / shows the config (password redacted) |
UStVA helpers |
| Kennziffer reference, §13b detection, XML snapshot for your archive (never transmitted) |
How it works
The ELSTER Online-Formular is an ordinary HTML form. Every "Nächste Seite", every table
row and every "Prüfen" is a POST of fields[<name>] values plus a JSON command
(reqCmd), and the response is the next page. The server logs in once with Puppeteer and
then replays exactly those requests with fetch from inside the logged-in tab. The tab
itself is never navigated again, which keeps it fast and immune to the portal's modals.
Field names embed ELSTER's Kennzahl (…HomeofficeE0204507), so the agent addresses
fields by the numbers printed on the paper form. Details, wire format and the portal
quirks learned along the way are in CLAUDE.md and
MCP-FINDINGS.md.
Configuration
config.json (path via ELSTER_CONFIG_PATH, default ./config.json); every key can be
overridden by an environment variable: ELSTER_PFX_PATH, ELSTER_PASSWORD,
ELSTER_HEADLESS, ELSTER_DOWNLOAD_DIR, ELSTER_SCREENSHOT_DIR, and the taxpayer and
§13b supplier settings used by the UStVA helpers (see config.example.json). Env vars
win over the file. config.json, *.pfx, downloads/ and screenshots/ are gitignored;
they hold real credentials and tax data.
Limitations
One form can be open per ELSTER session; save before switching (
elster_form_save).The session ends after about 30 idle minutes. The server logs in again by itself, but an unsaved form is then only in ELSTER's own recovery. Save before long pauses.
Money fields labelled "(Euro)" take whole euros only; "(Euro, Cent)" take
3,36.This drives the web portal, not ERiC. Official programmatic submission needs the ERiC library and registration as a software vendor.
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.
Origin
This project started as a fork of lukasschwarz/elster-mcp-server by Lukas Schwarz, which automated UStVA, EÜR and ESt by clicking through the portal. The form engine replaced that approach entirely, so the fork was detached into its own repository. Thanks to Lukas for the groundwork (login, submission history, inbox sync); his MIT copyright notice is kept in LICENSE.
Contributing
Issues and PRs are welcome. Most useful: reports of forms or pages the engine does not
handle yet (the output of elster_form_page on that page helps), and selftest cases for
the guards. Run npm run build && node tools/engine-selftest.mjs before sending a PR
that touches engine.ts or engine-driver.ts.
License
Available Tools
29 toolselster_belege_listA
Lists receipts in "Meine Belege" (id, label, year, Belegart, recognised values, status). Read-only.
Inputs: year.
elster_beleg_uploadA
Uploads one receipt file (PDF, PNG or JPG, max 10 MB) to "Meine Belege" and tags it with a Belegart and its values, so it is linked to the matching form line. Belegart is a path like "N/Arbeitsmittel" (fields Art_der_Arbeitsmittel, Betrag), "N/Weitere_Wk/Sonst" (Bezeichnung, Betrag), "N/Fortb" (Bezeichnung, Betrag), "N/Dienstreise". Betrag as number or "12,99". Stores a document in the account; submits nothing. Receipts are optional for the ESt (Belegvorhaltepflicht) but can avoid queries.
Inputs: file (required), year (required), fields (required), belegart (required), +3 more.
elster_config_showA
Shows the currently loaded ELSTER configuration (with secrets redacted) so you can verify env vars / config.json were picked up.
Inputs: no named parameters.
elster_datenuebernahme_listA
Lists the earlier submissions ELSTER offers to carry over ("Datenübernahme") for a given form and tax year, without starting a filling session. Read-only. Feed an aufgabeId or year from the result into the "takeover" argument of elster_ustva_start / elster_eur_start / elster_est_start.
Inputs: form (required), year (required).
elster_drafts_listA
Lists saved drafts ("Meine Formulare → Entwürfe") with their aufgabeId, newest first. Uses the persistent engine session (logs in on first use, then stays logged in).
Inputs: no named parameters.
elster_edaten_fetchA
Retrieves the pre-filled tax data ("vorausgefüllte Steuererklärung" / eDaten) the tax authority already holds for a year: Lohnsteuerbescheinigung, Vorsorgeaufwendungen, Lohnersatzleistungen, Riester/Rürup. ELSTER only exposes these from inside the ESt form, so this walks the form up to the import step and reads the values back. The form is left without saving, so no draft is kept (ELSTER may offer it for recovery at the next login). Nothing is ever transmitted.
Inputs: year (required), anlagen.
elster_form_add_rowA
Adds one row to an inline repeat group ("Mzb", e.g. Arbeitsmittel "AufwendungenArbeitsmittel") by filling its new-row template and committing it ("Eintrag übernehmen"). Group names and template keys come from elster_form_page → groups. Same key and money rules as elster_form_set.
Inputs: group (required), values (required), rid.
elster_form_attachA
Attaches local files to a form's upload group, e.g. the Einspruch page "5 - Anhänge" (group "anhang_mzb"). PDF or XML, max 10 MB each, up to 20 files. Uploads each file the way the portal page does and creates one row per file. Submits nothing.
Inputs: files (required), group (required), rid.
elster_form_checkA
Runs ELSTER's "Prüfen" on the open form. Returns ok, the headline (for ESt it includes the provisional "Erstattung/Nachzahlung"), and the error panel with the causing pages. Never sends.
Inputs: no named parameters.
elster_form_crawlA
Walks every page below a RID (breadth-first, read-only) and returns each page's fields and repeat groups. Use it once per form/Anlage to learn which Kennzahl lives on which page.
Inputs: rootRid (required), maxPages.
elster_form_delete_rowC
Deletes row index (0-based) of an inline repeat group on a page.
Inputs: group (required), index (required), rid.
elster_form_handoffA
Hands a finished form to the USER for sending. Saves the open form (or takes the given draft), opens it in a separate, visible browser window with its own login, runs "Prüfen" and, if clean, moves on to the "Formular absenden" page. Then the MCP detaches from that window: it cannot click anything there. The user checks the overview, clicks "Absenden" themselves and closes the window. Until the window is closed the other elster_form_* tools refuse to run. Follow up with elster_form_handoff_wait, which returns when the window is closed and shows what was sent.
Inputs: aufgabeId.
elster_form_handoff_waitA
Call right after elster_form_handoff: blocks until the user closes the handoff window (or the timeout passes). If a new submission appeared, saves its Übertragungsprotokoll as HTML + PDF and returns the Transferticket and file paths. Read-only. If it returns closed:false, call it again.
Inputs: archiveDir, timeoutMinutes.
elster_form_newA
Starts a NEW form: picks the year, handles Datenübernahme (none by default), Anlagenauswahl and the eDaten import, and stops on the form's Startseite. Returns the page like elster_form_page. Follow with elster_form_save to persist it as a draft.
Inputs: form (required), year (required), anlagen, takeover, +1 more.
elster_form_openA
Opens a saved draft in the engine session and returns its Startseite (fields, repeat groups, navigation RIDs). Without aufgabeId the newest draft is opened. If ELSTER still holds the form open from an earlier call, it is re-entered instead of failing. Only one form can be open at a time.
Inputs: aufgabeId.
elster_form_pageA
Reads a page of the open form. With rid, jumps there first (RIDs look like "FormData://est-2025-v1/Startseite[0]/MAVSAnlageN[0]/VAnlageN[0]/HomeofficePauschale[0]" and come from the nav list of any page). Returns plain fields (name, kennzahl, label, value, options), repeat groups (committed rows, the template fields for a new row, sub-page RIDs), non-navigation commands, validation errors and the nav RIDs visible from this page. Read-only.
Inputs: rid.
elster_form_pressB
Escape hatch: presses a button by id or posts a raw reqCmd JSON from elster_form_page → commands (e.g. EditDetachedMzbSemIndex to add an Anlage for a person, FillInProfile, AddMzbItem). Sending, deleting drafts and logging out are refused.
Inputs: rid, command, buttonId.
elster_form_reviewA
Final check before the user submits: runs "Prüfen" and, only if it is clean, reads ELSTER's "Formular absenden" overview — exactly the data that would be transmitted, including eDaten fields — as sections of rows (Zeile, label, value, Kennzahl, source). Returns to edit mode in the same call. Never transmits: "Absenden" stays refused, and no command but EINGABE/PRUEFEN is accepted while on the overview.
Inputs: no named parameters.
elster_form_saveA
Saves the open form as a draft ("Speichern und Formular verlassen") and closes it. Reopen with elster_form_open. The server session times out after ~30 min idle and unsaved work is then only in ELSTER's auto-recovery — save before long pauses.
Inputs: no named parameters.
elster_form_setA
Sets plain fields on a page and saves them to the server-side form. Keys are a Kennzahl ("E0204507") or the field name ("eruNWkHomeofficeE0204507"); a key must match exactly one field on the page. Checkboxes take true/false, radios and selects take the option value. Money: fields labelled "(Euro)" accept whole euros only (no decimal separator — round expenses up, income down); "(Euro, Cent)" fields take "3,36". Validation errors come back in errors (HTTP is always 200). Sub-pages of detached repeat groups (e.g. ".../MZBErsteTaetigkeitsstaette[0]") are set with this tool too; jumping to index [n] of such a group creates entry n.
Inputs: values (required), rid.
elster_kennziffern_listA
Returns the list of supported UStVA Kennziffern (codes 81, 86, 66 etc.) with descriptions and whether they are NET (base amount) or TAX (tax amount).
Inputs: no named parameters.
elster_login_testA
Verifies that the configured certificate + password can log into the ELSTER portal. Returns success and final URL or an error. Use this once before submitting anything.
Inputs: no named parameters.
elster_submission_archiveA
Saves the Übertragungsprotokoll of submitted forms as HTML and PDF, as proof of what was sent (Transferticket, receipt time on the server, full content incl. attachment names). Select by nachrichtId (from elster_submissions_list) or by formFilter/years (newest first, limit default 1). Default folder: /nachweise. Read-only.
Inputs: dir, limit, years, formFilter, +1 more.
elster_submission_protocolA
Reads the "Übertragungsprotokoll" of already-submitted returns — every field that was actually filed, with its Zeile number, label, value and ELSTER field id — so earlier years can be used as context. Select either by nachrichtId (from elster_submissions_list) or by formFilter/years. Read-only; returns real personal tax data.
Inputs: limit, years, formFilter, nachrichtId.
elster_submissions_listA
Lists everything under "Meine Formulare" → "Übermittelte Formulare": what was filed, when, its Ordnungskriterium, plus the aufgabeId to reuse it as a Datenübernahme source and the nachrichtId needed by elster_submission_protocol. Read-only.
Inputs: formFilter.
elster_sync_historyC
Reads "Übermittelte Formulare" (transmission history) from ELSTER. Optionally downloads PDFs.
Inputs: years, downloadPdfs.
elster_sync_inboxC
Reads ELSTER inbox messages ("Posteingang"). Optionally downloads each message as PDF.
Inputs: maxPages, downloadPdfs.
elster_ustva_detect_reverse_chargeC
Tests whether a voucher would be detected as Reverse-Charge (§13b UStG) based on the configured supplier patterns. Returns matched supplier and region (EU / NON_EU), or null.
Inputs: contactName, description.
elster_ustva_generate_xmlA
Generates an ELSTER UStVA XML snapshot for archiving. Does NOT submit (submission goes via elster_ustva_start). Useful for audit trails.
Inputs: year (required), period (required), report (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 29 tools
Most tools target distinct resources/actions (form editing vs. drafts vs. submissions vs. Belege vs. session handoff), and descriptions explicitly steer usage order. A few pairs overlap meaningfully: elster_submissions_list vs elster_sync_history (both read 'Übermittelte Formulare'), elster_submission_protocol vs elster_submission_archive (same protocol, one archives as PDF/HTML), and elster_form_check vs elster_form_review (review just adds the absenden overview). These are disambiguated in the text but still require careful reading.
All names are snake_case with an 'elster_' prefix, which is good, but the verb placement varies: noun_verb (elster_form_open, elster_drafts_list), verb-in-middle (elster_ustva_generate_xml, elster_form_handoff_wait), and bare noun_verb forms. Singular/plural is also inconsistent (elster_submissions_list vs elster_submission_protocol/archive; elster_belege_list vs elster_beleg_upload). Still readable, but not a predictable pattern throughout.
29 tools is heavy and above the comfortable 3–15 band. The domain is genuinely complex (login, config, UStVA, ESt form engine, drafts, submissions, Belege, handoff), so most tools earn their place, but the surface is large enough that an agent must navigate many near-sibling tools. Borderline: justified by scope but on the high side.
The ESt/form lifecycle is well covered end to end: open/new/page/set/add_row/delete_row/attach/crawl/check/review/handoff/wait/save, plus drafts, submissions, protocol, archive and Belege. However, several descriptions reference tools that do not exist in this set (elster_ustva_start, elster_eur_start, elster_est_start), leaving the UStVA submission path apparently incomplete and creating dead-end references. The document-upload and handoff flows round out coverage reasonably well.
Maintenance
Related MCP Connectors
Validate, preview as PDF and test-transmit German tax filings to ELSTER (ERiC).
German tax-firm workflows: clients, deadlines, documents, time tracking and DATEV data via OAuth.
Generate, check and submit German statistical reports (XStatistik) via eSTATISTIK.core.
1Hosted real Google Chrome MCP with per-user persistent state. Navigate, click, type, screenshot.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP server for the Canton of Bern tax portal TaxMe/BE-Login that reads account statements and tax returns via Playwright browser automation.1315 npmMIT
- AlicenseBqualityCmaintenanceLocal-first MCP server that assists users with preparing and reviewing Italian tax declarations (Dichiarazioni) inside a controlled, user-authenticated Agenzia delle Entrate browser session, with a hard approval boundary preventing any external legal or financial action without explicit local approval.7Apache 2.0
- AlicenseNot gradedqualityBmaintenanceA local Windows automation MCP server that lets a KI-Agent safely control the SteuerSparErklärung tax software: inventory and open tax cases, read pages, compare receipts and values, and edit verified working copies, with all ELSTER transmission paths locked tight.MIT
- AlicenseBqualityBmaintenanceEnables MCP clients to drive the German ELSTER tax portal by filling forms by Kennzahl, running checks, and reviewing exactly what would be sent, with final submission left to the user. It also supports read-only access to submissions, history, and inbox data plus draft and session management.322MIT