Prototyp · Vorschau: alle Server aus der offiziellen Registry, alle 30 Minuten synchronisiert. Bewertungen und Benutzerkonten folgen in einem späteren Schritt.
PopNx MCPMCP-Server für alle, die KI nutzen · in einfachen Worten erklärt

Swiss Efv MCP

von malkreideVersion 0.4.0i★ –iLäuft auf deinem Computer
Name in der Registryio.github.malkreide/swiss-efv-mcp

Installieren

Überblick

Beschreibung vom Entwickler (englisches Original)

MCP server for Swiss federal finances (EFV): budget, debt, forecasts and spending data

Die drei Säulen von PopNx MCP

Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.

Was du damit machen kannst

Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.

  • Verbindung: Läuft auf deinem Computer
  • Transport: stdio
  • Kategorie: Buchhaltung, Finanzen & Steuern

Installation

Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.

Bevor du installierst

  • Basischecks: 1 von 1 bestanden
  • Läuft auf deinem Computer mit den Rechten deines Benutzerkontos (Dateien, Netzwerk, Apps).
  • Die Registry nennt keinen Schlüssel zum Eintragen.

Du brauchst

  • PyPIuv für Python installiert (für den Befehl uvx)

Welche App nutzt du?

Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.

Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein

{
  "mcpServers": {
    "swiss-efv": {
      "command": "uvx",
      "args": [
        "swiss-efv-mcp"
      ]
    }
  }
}

Führe das in deinem Terminal aus

claude mcp add swiss-efv -- uvx swiss-efv-mcp

In Cursor öffnen

Oder kopier die Einstellungen selbst

In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen

{
  "mcpServers": {
    "swiss-efv": {
      "command": "uvx",
      "args": [
        "swiss-efv-mcp"
      ]
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

In VS Code öffnen

Oder kopier die Einstellungen selbst

In .vscode/mcp.json in deinem Projekt einfügen

{
  "servers": {
    "swiss-efv": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "swiss-efv-mcp"
      ]
    }
  }
}

Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.

Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.

Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.

Diese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.

Was er kann

Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.

Basischecksi

Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 9. Nov. 2026

  • ✓ Bestanden

    Entwickler passt zum Repo

    Der Registry-Name wurde mit dem GitHub-Konto malkreide bestätigt, dem das Repo gehört

  • … Noch nicht geprüft

    Wird noch gepflegt

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • … Noch nicht geprüft

    Hat eine Lizenz

    Dieses Repo haben wir noch nicht von GitHub gelesen

  • – Nicht zutreffend

    Endpunkt antwortet

    Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet

  • – Nicht zutreffend

    Anmeldung mit OAuth

    Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen

  • … Noch nicht geprüft

    Keine versteckten Anweisungen in Tool-Beschreibungen

    Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen

Im Vergleich mit anderen in Buchhaltung, Finanzen & Steuerni

  • Mehr Sterne als 0 % der anderen 2966 Server in dieser Kategorie
  • Neuer in der Registry veröffentlicht als 42 % der anderen 2966 Server in dieser Kategorie
  • Basischecks gleich gut wie oder besser als bei 100 % der anderen 2966 Server in dieser Kategorie

Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.

Häufige Fragen

Ist Swiss Efv MCP sicher?

Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.

Welche Schlüssel oder Codes braucht er?

Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.

Läuft er auf meinem Computer oder in der Cloud?

Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).

Wird er noch gepflegt?

Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.4.0) kam vor 44 Tagen in die Registry.

Welche Apps können ihn nutzen?

Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Python (uv) auf deinem Computer.

Was kann ich stattdessen nutzen?

In derselben Kategorie: Finance Toolkit, SolidInvoice, Korea Tax Calculator

Alternativen

Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.

So liest du eine Karte:↓ Downloads pro Wochei★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti

Finance Toolkit

500+ transparent financial methods calculated from raw statements, not third-party endpoints.

von JerBoumaWeit verbreitet↓ 15.541/Wo.★ 5496Aktualisiert vorgestern

Computer oder Cloud

SolidInvoice

Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.

von SolidInvoiceWachsend★ 981Aktualisiert vor 10 Tagen

Läuft in der Cloud✓ solidinvoice.co

Korea Tax Calculator

Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.

von UpstageAIWachsend↓ 3172/Wo.★ 97Aktualisiert heute

Läuft auf deinem Computer

README vom Entwickler

README öffnen

Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.

🇨🇭 Part of the Swiss Public Data MCP Portfolio — open-source MCP servers connecting AI agents to Swiss public and open data.

This is a private project. It is independent of any employer or institutional affiliation.

🏛️ swiss-efv-mcp

MCP server for Swiss federal finances (EFV): budget, debt, forecasts and spending by task and institution.

🇩🇪 Deutsche Version

Overview

This server closes the fiscal gap in the portfolio's Economics & Finance cluster. swiss-snb-mcp already covers monetary policy; swiss-efv-mcp adds the state budget — federal revenue, expenditure, balance, debt ratios (with forecasts to 2029), a hierarchical budget drill-down, and spending by department. Data comes from the Eidgenössische Finanzverwaltung (EFV) via opendata.swiss (OGD Schweiz).

Features

  • Five read-only tools over the curated EFV FS/GFS dump files.
  • Headline series 1990–2029 per household (bund, ktn, gdn, staat, sv) and model (FS / GFS); every point carries is_projection so actuals and plan/forecast years are unambiguous.
  • Hierarchical federal-budget drill-down and spending by department / unit.
  • 24 h TTL in-memory cache with stale-serve fallback; retry with exponential backoff (2/4/8 s); dump_status never returns empty silently.
  • Dual transport: stdio (local) and SSE (cloud).
  • No authentication required — public open-government data (No-Auth-First).

🎯 Anchor Demo Query

*"How has the federal balance developed since the SNB rate turnaround in 2022 —

and which task areas absorbed the growth in spending?"*

fiscal_headline(variable="saldo", household="bund", year_from=2021)

fiscal_budget_breakdown(topic="Ausgaben nach Aufgabengebiet", level=2)

Cross-read with swiss-snb-mcp, this connects the interest-rate cycle to the federal deficit — something neither server can answer alone.

Demo

Prerequisites

  • Python 3.11+
  • uv / uvx (recommended) or pip
  • Network access to data.finance.admin.ch and efv.admin.ch — no API key needed

Installation

uvx swiss-efv-mcp            # zero-install run (once published to PyPI)

or

pip install swiss-efv-mcp

Claude Desktop (claude_desktop_config.json):

{

"mcpServers": { "swiss-efv": { "command": "uvx", "args": ["swiss-efv-mcp"] } } }

Quickstart

# Run locally over stdio (default transport)

uvx swiss-efv-mcp

From a checkout, without installing

PYTHONPATH=src python -m swiss_efv_mcp

Configuration

All configuration is loaded once into a typed Settings object (pydantic-settings). The legacy unprefixed names below keep working; the canonical names use the EFV_MCP_ prefix. Defaults are safe for local use.

VariableDefaultPurpose
TRANSPORTstdioTransport: stdio (Claude Desktop) or sse / streamable-http (cloud)
HOST127.0.0.1Bind host (SSE only). Loopback by default; set 0.0.0.0 only in a container
PORT8000Bind port (SSE only)
EFV_MCP_LOG_LEVELINFOstructlog level (JSON to stderr)
EFV_MCP_CORS_ORIGINS[]SSE only: explicit allowed browser origins (default-deny; comma-separated or JSON)
EFV_MCP_OTEL_ENABLEDfalseEnable OpenTelemetry tracing (requires the otel extra); standard OTEL_* env vars configure export

Cloud (Render / Railway):

TRANSPORT=sse PORT=8000 swiss-efv-mcp   # exposes /sse

Available Tools

ToolPurpose
fiscal_headlineRevenue / expenditure / balance / debt ratios over 1990–2029, per household and model; every point flags is_projection
fiscal_budget_breakdownHierarchical federal budget by topic (Ausgaben nach Art / nach Aufgabengebiet, Einnahmen, Bilanz, …)
fiscal_by_institutionSpending per department / administrative unit since 2007 (Personalausgaben, Informatik, external services, FTE)
fiscal_list_dimensionsDiscover valid parameter values — call this first to build correct arguments
fiscal_statusCache freshness and upstream health per dataset; never returns empty silently
dump_statusDeprecated alias of fiscal_status (kept for backward compatibility; removed in a future minor)

All tools are read-only: each is annotated readOnlyHint: true, destructiveHint: false, only issues HTTP GETs against the EFV dump files, and has no write, send, or filesystem capability.

MCP primitives. This server uses only the Tools primitive. The EFV data are sliced live from cached dumps with no stable resource hierarchy to expose as *Resources*, and there are no server-authored *Prompts*. The five tools are small and closely related, so they live in a single server.py rather than a tools/ package.

Architecture

                      ┌──────────────────────────────┐

Claude / Agent ──▶ │ swiss-efv-mcp (FastMCP) │ │ 5 tools · Pydantic v2 env. │ └───────────────┬──────────────┘ │ fetch + retry + TTL cache ┌───────────────────────┴───────────────────────┐ ▼ ▼ data.finance.admin.ch efv.admin.ch/dam fs_dashboard/main_extern.csv bundeshaushalt_de.csv (headline, 1990–2029) institutionen_de.csv

Architecture decision

This server uses Architecture C (Dump-first).

Rationale (verified live on 2026-07-24):

  • The EFV FS/GFS dashboard has no filtered query API; it serves static CSV dumps that its front-end filters in the browser.
  • Three curated files are small enough to fetch-and-cache whole (516 KB / 5 MB / 1 MB). They cover the headline aggregates, the hierarchical budget and the by-institution view — i.e. the answerable questions.
  • The full detail cubes (standardauswertung.csv 157 MB, fir_art_funk.csv 1.23 GB) are out of scope for v0.1.0; loading them per request is not viable. A future Phase 2 would pre-process them into SQLite/Parquet.

Consequences:

  • Files are cached in memory with a 24 h TTL; stale cache is preferred over an empty response when upstream is down.
  • Retry with exponential backoff on all HTTP; dump_status always returns a readable state.

Project Structure

swiss-efv-mcp/

├── src/swiss_efv_mcp/ │ ├── init.py │ ├── main.py # entry point; dual transport (stdio / SSE+CORS) │ ├── client.py # dump-first data layer: egress allow-list, retry, UA, TTL cache │ ├── logging_config.py # structlog JSON to stderr │ ├── models.py # Pydantic v2 envelopes (source + provenance) │ ├── server.py # 5 FastMCP tools (annotated) + testable *_impl functions │ └── settings.py # typed pydantic-settings config ├── tests/ # respx mock tests + hardening tests + @pytest.mark.live ├── docs/ # network-egress.md + accepted-risk ADRs ├── audits/ # MCP best-practice audit runs (findings, report, summary) ├── README.md · README.de.md · CHANGELOG.md · SECURITY.md · CONTRIBUTING.md ├── Dockerfile · server.json · LICENSE └── pyproject.toml

Safety & Limits

  • Read-only. Every tool is annotated readOnlyHint: true, only issues HTTP GETs against the EFV dump files, and has no write, send, or filesystem capability.
  • Egress allow-list. An immutable ALLOWED_HOSTS frozenset + assert_host_allowed() is enforced before every request (HTTPS-only, two fixed EFV hosts). URLs are hardcoded constants; no user input builds a URL. See docs/network-egress.md.
  • TLS on. httpx certificate verification is on by default and never disabled.
  • No credentials. The endpoints are public OGD; no API keys or secrets are stored or forwarded. A browser User-Agent is injected because the endpoints 403 the default httpx/curl UA (see Known limitations) — do not remove it.
  • Error masking. mask_error_details=True plus client-side masking keep raw upstream/internal detail out of tool results; full detail goes only to the structlog stderr log.
  • Input bounds. Tool arguments carry explicit Pydantic constraints (year 1900–2100, level 1–8, string max_length).
  • Graceful degradation. Retry with exponential backoff (2/4/8 s); a stale cache is served over an empty response; dump_status always returns a readable state and never a silent empty.
  • Loopback + default-deny CORS. SSE binds to HOST, default 127.0.0.1; set HOST=0.0.0.0 only inside a container (the provided Dockerfile does). Browser origins must be listed explicitly via EFV_MCP_CORS_ORIGINS.
  • Audited. Reviewed against the portfolio MCP best-practice catalogue (44 applicable checks) — see audits/ and SECURITY.md. Accepted risks are documented as ADRs under docs/adr/.
  • Not authoritative. Figures are not official; consult the EFV originals for official use.

Known limitations

Live-probe findings (2026-07-24), also in CHANGELOG.md → Known findings:

FindingImpact
Endpoints return HTTP 403 without a browser User-AgentUA is injected by the client; do not remove it
opendata.swiss "CSV" links for 2 datasets point to an HTML landing pagereal files resolved to a DAM path (/dam/de/sd-web/{id}/…) whose opaque id may rotate on re-upload
NA appears as a literal string in hh/model/sourcecleaned to None centrally
"Forward-looking" is not one label: Bund uses "Budget/financial plans", staat uses "Forecasts"abstracted via is_projection
Accounting-model break at 2022/2023 ("bis 2022" vs "ab 2023" topics)series has a seam; a note flags affected topics
Detail cubes (157 MB / 1.23 GB) not servedPhase 2; use the curated files for now

Project Phase

This server is in Phase 1 (read-only). Every tool only ever fetches the public EFV dump files — there are no write, send, or filesystem capabilities.

PhaseScopeStatus
1 — Read-onlyHeadline series, budget breakdown, spending by institution✅ current
2 — Detail cubesPre-process the 157 MB / 1.23 GB cubes to SQLite/Parquetplanned
3 — Multi-agent(none planned)—

A transition to a later phase would require a re-audit before any write-capable tool is added.

MCP Protocol Version

This server is native to MCP spec `2026-07-28` and still serves the older handshake era, so both pins are stated — a single number would describe only half of what clients actually get.

| Era | Revision | How a conne

Nur der Anfang wird gezeigt; den Rest findest du im Repo

PopNx fragen