taxme-mcp

taxme-mcp

MCP server for the Canton of Bern tax portal TaxMe/BE-Login that reads account statements and tax returns via Playwright browser automation.

Category
Visit Server

README

taxme-mcp

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

BE-Login has no public API and authenticates through SwissID/AGOV, so this server drives the portal with Playwright browser automation. It is inherently fragile: portal updates can break selectors, and it depends on your interactive SwissID/AGOV login.

It is full-featured: besides reading, it can open a return, walk the menu sections, read the fields on a page, fill them (text / radio / checkbox), click buttons (Neuen Eintrag erfassen, Speichern, Nächste Seite …) and read the results. The JSF quirks are handled (radios set via the label / a dispatched change event, whole-franc amounts, the edit popup tab). Safety: it only fills drafts — the final submission (taxme_submit_return) requires an explicit 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; you complete the SwissID/AGOV login (incl. 2FA) yourself. Everything else runs headless.

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 git@github.com: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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured