sapn95

taxme-mcp

Community sapn95
Updated

MCP server for the Canton of Bern tax portal TaxMe / BE-Login (SwissID/AGOV browser automation)

taxme-mcp

MCP server for the Canton of Bern tax portal TaxMe / BE-Login(belogin.directories.be.ch) — readyour account statement (open amounts per tax year) and your tax returns withtheir status, from any MCP client.

BE-Login has no public API and authenticates through SwissID/AGOV, sothis server drives the portal with Playwright browser automation. It isinherently fragile: portal updates can break selectors, and it depends on yourinteractive SwissID/AGOV login.

It is full-featured: besides reading, it can open a return, walk the menusections, read the fields on a page, fill them (text / radio / checkbox),click buttons (Neuen Eintrag erfassen, Speichern, Nächste Seite …) and read theresults. The JSF quirks are handled (radios set via the label / a dispatchedchange event, whole-franc amounts, the edit popup tab). Safety: it onlyfills drafts — the final submission (taxme_submit_return) requires anexplicit confirm: true, and nothing is submitted otherwise.

How it works

  • A persistent Chromium profile (~/.taxme-mcp/profile) keeps the session.
  • When the session has expired, taxme_login opens a visible window; youcomplete the SwissID/AGOV login (incl. 2FA) yourself. Everything else runsheadless.

Tools

Read

Tool Purpose
taxme_status ok or login_required
taxme_login open a visible window for the SwissID/AGOV login (waits up to 8 min)
taxme_account_statement open amounts (CHF) per tax year — Kantons-/Gemeindesteuern, direkte Bundessteuer, Gemeindeabgaben
taxme_list_returns tax returns (Steuererklärungen) with status (In Bearbeitung / Quittiert …)

Navigate & edit

Tool Purpose
taxme_open_return open a return (year) for editing; returns the menu sections
taxme_menu left-menu sections + status of the open return
taxme_goto_section click a menu section by name; returns its fields
taxme_get_fields interactive fields on the current page (id, type, value, label, context)
taxme_snapshot breadcrumb/url of the current page (screenshot: true for a PNG)
taxme_fill set fields: values: [{target, value}] (target = id or label/context substring)
taxme_click click a button/link by text (Neuen Eintrag erfassen, Speichern, Nächste Seite …)
taxme_results read the Ergebnisse / Steuerberechnung
taxme_submit_return DANGER final submission — requires confirm: true; dry-run otherwise

Install

git clone [email protected]:sapn95/taxme-mcp.git
cd taxme-mcp && npm install
npx playwright install chromium   # skip if a playwright chromium is already cached
claude mcp add --scope user taxme -- node /path/to/taxme-mcp/index.js

Env

Variable Default Purpose
TAXME_PROFILE ~/.taxme-mcp/profile browser profile dir (holds the session — secret)
TAXME_CHROMIUM auto-detect chromium executable override

Caveats

  • Private use for your own BE-Login account. Respect the portal's terms.
  • The profile directory contains live session cookies — never commit or share it.
  • SwissID/AGOV sessions are short-lived; run taxme_login at the start of a session.
  • JSF component ids in TaxMe are unstable; selectors use text/URLs with fallbacks — expect occasional breakage after portal releases.
  • Only Canton of Bern (TaxMe). Other cantons use different portals.

MCP Server · Populars

MCP Server · New

    talivia-group

    Talivia Agent Kit

    Revenue-first website analytics installed and verified by AI agents through MCP

    Community talivia-group
    gura105

    Operational Ontology

    A minimal, readable reference implementation of the Operational Ontology pattern. Palantir Foundry is one implementation; this is the concept, minimized.

    Community gura105
    EllisMorrow

    Caelune

    Caelune (星野) — Local-first retrieval for private Markdown, PDF, and Tika documents, with a Windows desktop app and read-only MCP server.|本地优先的私人知识检索工具。

    Community EllisMorrow
    vmware-skills

    VMware AIops

    VMware vCenter/ESXi AI-powered monitoring and operations. Two skills: vmware-monitor (read-only, safe) and vmware-aiops (full operations) | Claude Code Skill

    Community vmware-skills
    asdecided

    AsDecided

    Native deterministic requirements-as-code engine and read-only MCP server.

    Community asdecided