Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Swiss Snb MCP

by malkreideversion 0.5.0i★ 0iRuns on your computerRepository ↗
Registry nameio.github.malkreide/swiss-snb-mcp

How to install

What it does

SNB data portal: exchange rates, balance sheet, policy rates, SARON, monetary aggregates

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Accounting, finance & tax

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Swiss Snb MCP. Follow https://mcp.popnx.com/i/malkreide-swiss-snb-mcp.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 13, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Snb MCP for Claude on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "swiss-snb": { "command": "uvx", "args": [ "swiss-snb-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Snb MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "swiss-snb": {
          "command": "uvx",
          "args": [
            "swiss-snb-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Swiss Snb MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Swiss Snb MCP or shows a Swiss Snb MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Swiss Snb MCP yet

Swiss Snb MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Swiss Snb MCP

  • Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)
  • Install Python (uv) on your computer first (one time)

B · Others in Accounting, finance & tax that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Snb MCP for Claude Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user swiss-snb -- uvx swiss-snb-mcp 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Snb MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user swiss-snb -- uvx swiss-snb-mcp
  4. Type /mcp in Claude Code

    You should see Swiss Snb MCP listed as connected

  5. Try it

    Use Swiss Snb MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Swiss Snb MCP or shows a Swiss Snb MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Snb MCP for Cursor on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "swiss-snb": { "command": "uvx", "args": [ "swiss-snb-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Snb MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Swiss Snb MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Swiss Snb MCP or shows a Swiss Snb MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Python (uv) on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Swiss Snb MCP for VS Code on this computer, in this order: 1) Check uv with uv --version. If it is missing, tell me to install it from https://docs.astral.sh/uv/getting-started/installation/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "swiss-snb": { "type": "stdio", "command": "uvx", "args": [ "swiss-snb-mcp" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Swiss Snb MCP tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install uv (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    uv --version
    • A version number such as uv … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: uv has no click-through installer. Copy the one-line command for your system (macOS or Windows) from uv’s official page into Terminal · no separate Python install needed; uv downloads it when required

    Open the uv download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: uv --version

    Install once; it works for everything that needs uv

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Swiss Snb MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Swiss Snb MCP or shows a Swiss Snb MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Swiss Snb MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user swiss-snb -- uvx swiss-snb-mcp

Claude Desktop (claude_desktop_config.json)

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

Cursor (~/.cursor/mcp.json)

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

VS Code (mcp.json)

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

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
22/wk
Connection
Runs on your computer
Latest versioni
0.5.0
Published to registryi
Sep 27, 2026
Code last changedi
Nov 1, 2026
Maker
malkreide
Packages
pypi: swiss-snb-mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account malkreide, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 18 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for swiss-snb-mcp@0.5.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/malkreide-swiss-snb-mcp.svg)](https://mcp.popnx.com/en/servers/malkreide-swiss-snb-mcp)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Accounting, finance & taxi

  • More stars than 0% of the other 3423 servers in this category
  • Published to the registry more recently than 35% of the other 3423 servers in this category
  • Basic checks equal to or better than 99% of the other 3423 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Swiss Snb MCP safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 18 days ago, and the latest version (0.5.0) reached the registry 2 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: SolidInvoice, Signal8, Journalit, Beancount.io, Tapetide - Indian Stock Market MCP

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Signal8

SEC filings, dilution, insider & institutional ownership, and political-trade data for AI agents.

by signal8aiGrowing↓ 431/wk★ 425Updated 10 days ago

Computer or cloud✓ service owner · signal8.ai

Journalit

Trading journal in Obsidian. Ask Claude or ChatGPT about your trades; edits are previewed first.

by CursivezGrowing★ 261Updated 11 days ago

Runs in the cloud✓ service owner · journalit.co

Beancount.io

Query, edit, and reconcile a hosted Beancount ledger: BQL, reports, files, and bank imports.

by bex-coGrowing★ 702 Stars for the whole repoUpdated 44 days ago

Runs in the cloud✓ service owner · beancount.io
Compared with similar ones
This one
Swiss Snb MCP
SolidInvoiceSignal8JournalitBeancount.ioTapetide - Indian Stock Market MCP
Runs whereInstalls on your computerRuns in the cloud, nothing to installCloud or install on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installCloud or install on your computer
Needs a keyNoNoYesNoNoYes
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/65/54/44/45/5
LicenseMITMITMITNOASSERTIONMITMIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

🇨🇭 Part of the [Swiss Public Data MCP Portfolio](https://github.com/malkreide)

🏦 swiss-snb-mcp

MCP server for the Swiss National Bank (SNB) data portal — exchange rates, balance sheet, interest rates, SARON, monetary aggregates, banking statistics, and balance of payments.

🇩🇪 Deutsche Version


Overview

swiss-snb-mcp connects AI models to the official Swiss National Bank data portal at data.snb.ch via the Model Context Protocol (MCP). It provides structured access to SNB's public REST API — no authentication required.

The server covers three tiers of datasets, all confirmed against the live API:

Phase 1 — Dedicated tools:

  • Exchange rates (monthly averages, month-end rates, annual averages) for the 28 currency series devkum publishes against CHF — including two USD forward rates, which are labelled as such
  • SNB balance sheet (Bilanz): gold reserves, foreign exchange investments, banknotes in circulation, sight deposits, and totals

Phase 2 — Via generic cube tools (`snb_get_cube_data` + `snb_get_cube_metadata`):

  • SNB policy rate (Leitzins) and SARON daily fixing, emergency facility rate, sight deposit rates
  • SARON compound rates: Overnight, 1M, 3M, 6M
  • International money market rates: SARON (CH), SOFR (USA), TONA (JP), SONIA (UK), €STR/EURIBOR (EZ)
  • Official central bank rates: SNB, Fed, ECB, Bank of England, Bank of Japan
  • Monetary aggregates M1, M2, M3: stock levels and year-on-year changes

Phase 3 — Warehouse API (banking statistics) and balance of payments:

  • Banking balance sheets (BSTA BIL): total assets and liabilities by bank group — annual and monthly
  • Banking income statements (BSTA EFR): operating income, expenses, taxes by bank group — annual
  • Balance of payments: current account, capital account, financial account (quarterly)
  • International investment position: components by investment type (quarterly)
  • Generic warehouse access: raw access to any SNB Warehouse cube by ID

Anchor demo query: *"What was the EUR/CHF exchange rate during the 2015 Franc shock, and where does the SNB policy rate stand today compared to the Fed and ECB?"*


Features

  • 💱 Exchange rates — monthly CHF rates for EUR, USD, JPY, GBP, CNY and 23 more series
  • 📅 Annual averages — year-by-year rates from 1980 onwards
  • 🏛️ SNB balance sheet — gold, foreign exchange investments, banknotes, sight deposits (monthly)
  • 🔄 Currency conversion — convert any amount to CHF using official SNB rates
  • 📈 Policy rate & SARON — daily fixing, Leitzins, compound rates (1M/3M/6M)
  • 🌍 International rate comparison — SNB, Fed, ECB, Bank of England, Bank of Japan side by side
  • 💰 Monetary aggregates — M1, M2, M3 stock levels and year-on-year growth
  • 🏦 Banking statistics — balance sheets and income statements by bank group (12 groups)
  • 📊 Balance of payments — current account, IIP, and international investment position
  • 🔍 Generic cube access — query any SNB data cube or Warehouse cube by ID
  • 🔓 No authentication required — fully public SNB data portal

Prerequisites

  • Python 3.11+
  • uv or pip
  • MCP-compatible client (Claude Desktop, Claude Code, or any MCP host)

Installation

Via uvx (recommended — no permanent installation needed):

uvx swiss-snb-mcp

Via pip:

pip install swiss-snb-mcp

From source:

git clone https://github.com/malkreide/swiss-snb-mcp.git

cd swiss-snb-mcp pip install -e .


Usage / Quickstart

Claude Desktop — add to `claude_desktop_config.json`:

{

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

Config file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Try it immediately in Claude Desktop:

*"What is the current EUR/CHF exchange rate according to the SNB?"*

*"Show me the SNB balance sheet for the last 12 months — gold and foreign reserves."*


Configuration

No API key or authentication required. The SNB data portal is fully public.

Optional environment variable:

VariableDefaultDescription
SNB_TIMEOUT15HTTP request timeout in seconds

Available Tools

Phase 1 — Dedicated Tools
ToolDescription
snb_get_exchange_ratesMonthly CHF rates for EUR, USD, JPY, GBP, CNY and 22 more currencies
snb_get_annual_exchange_ratesAnnual average rates, data from 1980
snb_get_balance_sheetSNB Bilanz positions in millions CHF (monthly)
snb_convert_currencyConvert any amount to CHF using official SNB rates
Phase 2 — Generic Cube Tools
ToolDescription
snb_get_cube_dataGeneric access to any SNB cube by ID
snb_get_cube_metadataInspect dimensions and filter values of any cube
Phase 3 — Warehouse API (Banking Statistics) and Balance of Payments
ToolDescription
snb_get_banking_balance_sheetBanking balance sheets by bank group (monthly/annual, assets/liabilities)
snb_get_banking_incomeBanking income statements by bank group (annual)
snb_get_balance_of_paymentsBalance of payments and international investment position (quarterly)
snb_get_warehouse_dataGeneric access to any SNB Warehouse cube by ID
snb_get_warehouse_metadataInspect dimensions and last update of a Warehouse cube
Resources (static catalogs)

Discovery aids served as MCP resources rather than tools so they don't crowd the tool manifest:

URIDescription
data://snb/currenciesAll 28 currency IDs with labels and units
data://snb/balance-sheet-positionsAsset and liability position IDs
data://snb/cubesAll verified Cube-API IDs (Phase 1–2) + discovery guide
data://snb/warehouse-cubesAvailable Warehouse cube IDs (BSTA)
data://snb/bank-groupsAll 12 bank group IDs with labels
Example Use Cases
QueryTool
*"What is the current EUR/CHF rate?"*snb_get_exchange_rates
*"Convert CHF 10,000 to USD"*snb_convert_currency
*"Show SNB gold reserves over the last year"*snb_get_balance_sheet
*"What is the current SNB policy rate?"*snb_get_cube_data (cube: snbgwdzid)
*"How do SNB, Fed and ECB rates compare?"*snb_get_cube_data (cube: snboffzisa)
*"What is the SARON 3M compound rate?"*snb_get_cube_data (cube: zirepo)
*"How fast is M3 money supply growing?"*snb_get_cube_data (cube: snbmonagg)
*"Total assets of all Swiss banks?"*snb_get_banking_balance_sheet
*"Income statement of cantonal banks?"*snb_get_banking_income (bank_group: G10)
*"Switzerland's balance of payments?"*snb_get_balance_of_payments
*"Which cubes are available?"*resource data://snb/cubes

→ More use cases by audience →


Safety & Limits

AspectDetails
AccessRead-only (readOnlyHint: true) — the server cannot modify or delete any data
Personal dataNo personal data — all sources are aggregated, public macroeconomic statistics
Rate limitsSNB Warehouse API has WAF protection (HTTP 503 after ~100 rapid requests); the server retries automatically with exponential backoff (max 3 retries, delays 2/4/8s)
Timeout15 seconds per API call
AuthenticationNo API keys required — both APIs (/api/cube/ and /api/warehouse/cube/) are publicly accessible
Data sourceSwiss National Bank — data.snb.ch
Terms of ServiceSubject to SNB's Terms of Use and Copyright; data is free for non-commercial use with source attribution

Architecture

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

│ Claude / AI │────▶│ Swiss SNB MCP │────▶│ data.snb.ch │ │ (MCP Host) │◀────│ (MCP Server) │◀────│ │ └─────────────────┘ │ │ │ /api/cube/ (JSON) │ │ 11 Tools · 5 Resources │ │ /api/warehouse/ │ │ Stdio | SSE │ │ Public · No Auth │ │ │ │ │ │ Phase 1: dedicated tools │ │ Exchange rates │ │ Phase 2: generic cubes │ │ Balance sheet │ │ Phase 3: warehouse + │ │ Interest rates │ │ banking stats │ │ Banking statistics │ └───────────────────────────┘ │ Balance of payments │ └──────────────────────┘

Cube Discovery Pattern

The SNB API follows a consistent cube-based structure. Read the data://snb/cubes resource to explore verified cube IDs, then snb_get_cube_metadata to inspect dimensions before querying with snb_get_cube_data. Phase 3 adds the Warehouse API (/api/warehouse/cube/) for granular banking statistics — start from the data://snb/warehouse-cubes and data://snb/bank-groups resources.


Project Structure

swiss-snb-mcp/

├── src/ │ └── swiss_snb_mcp/ │ ├── init.py │ ├── server.py # Core tools and FastMCP server (Phase 1–2 + BoP) │ └── warehouse.py # Warehouse API tools (Phase 3: banking statistics) ├── scripts/ │ └── record_fixtures.py # records tests/fixtures/* from data.snb.ch ├── tests/ │ ├── fixtures/ # recorded responses + PROVENANCE.md (date, rule, SHA-256) │ ├── fixture_data.py # loader — a missing name is an error, not an empty dict │ ├── test_unit.py # respx-mocked unit tests (run in CI) │ ├── test_live_scenarios.py # 20 live scenarios for Phase 1–2 (nightly) │ └── test_live_warehouse.py # 20 live scenarios for Phase 3 (nightly) ├── pyproject.toml # Build configuration (hatchling) ├── CHANGELOG.md ├── CONTRIBUTING.md # Contribution guidelines (English) ├── CONTRIBUTING.de.md # German version ├── SECURITY.md # Security policy & posture (English) ├── SECURITY.de.md # German version ├── LICENSE ├── README.md # This file (English) └── README.de.md # German version


Known Limitations

  • Exchange rates: Monthly averages only — no intraday or daily rates available via this API
  • Balance sheet: Monthly data; some positions may have a publication lag of 1–2 months
  • Cube access: Cube IDs are not officially documented by the SNB — read the data://snb/cubes resource for verified IDs
  • Historical depth: Coverage varies by series; exchange rates go back to 1980, some interest rate series start later
  • No forecasts: All data is historical/

Only the beginning is shown; read the rest in the repo