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.
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_loginopens 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_loginat 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。