Skip to main content
Glama
malkreide

swiss-snb-mcp

by malkreide

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SNB_TIMEOUTNoHTTP request timeout in seconds15

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
snb_get_exchange_ratesA

Retrieve monthly CHF exchange rates from the Swiss National Bank (data.snb.ch).

Returns monthly average rates (and optionally month-end rates) for all major currencies against the Swiss Franc (CHF). Data source: SNB cube 'devkum'. Rates are expressed as the CHF value of the stated foreign currency unit (e.g. EUR1: 1 EUR = 0.9416 CHF; JPY100: 100 JPY = 0.58 CHF).

Args: params (ExchangeRatesInput): - currencies: List of currency IDs (e.g. ['EUR1', 'USD1']). Default: all. - from_date: Start month YYYY-MM. Default: 12 months ago. - to_date: End month YYYY-MM. Default: current month. - include_month_end: Also include month-end rates. Default: False. - lang: Response language (de/en/fr). Default: de.

Returns: str: Markdown table with dates and CHF exchange rates per currency. Includes publication date and data source metadata.

Schema: { "cube_id": "devkum", "publishing_date": "YYYY-MM-DD HH:MM", "currencies_returned": int, "timeseries": [ { "currency": str, "type": "Monatsmittel" | "Monatsende", "unit": str, "values": [{"date": "YYYY-MM", "value": float}] } ] }

snb_get_annual_exchange_ratesA

Retrieve annual average CHF exchange rates from the SNB (cube 'devkua').

Returns yearly average exchange rates for all major currencies against CHF. Useful for multi-year trend analysis, budget planning, and financial reporting. Data goes back to 1980 for most currencies.

Args: params (AnnualExchangeRatesInput): - currencies: List of currency IDs (e.g. ['EUR1', 'USD1']). Default: all. - from_year: Start year, e.g. '2015'. Default: 5 years ago. - to_year: End year, e.g. '2025'. Default: current year. - lang: Response language. Default: de.

Returns: str: Markdown summary and JSON data with annual exchange rates.

snb_get_balance_sheetA

Retrieve SNB balance sheet (Bilanz) data from the data portal (cube 'snbbipo').

Returns monthly balance sheet positions of the Swiss National Bank in millions of CHF. Covers assets (gold, foreign exchange reserves, repos) and liabilities (banknotes in circulation, sight deposits of domestic banks, government deposits).

Key positions:

  • GFG: Gold und Forderungen aus Goldgeschäften

  • D: Devisenanlagen (foreign exchange reserves — the world's largest relative to GDP)

  • N: Notenumlauf (banknotes in circulation)

  • GB: Girokonten inländischer Banken (sight deposits)

  • T0/T1: Total Aktiven / Total Passiven

Args: params (BalanceSheetInput): - positions: List of position IDs. Default: key positions (GFG, D, N, GB, T0, T1). - from_date: Start month YYYY-MM. Default: 24 months ago. - to_date: End month YYYY-MM. Default: latest available. - lang: Response language. Default: de.

Returns: str: Markdown summary and JSON data in millions CHF.

snb_convert_currencyA

Convert a foreign currency amount to CHF using official SNB exchange rates.

Uses the monthly average rate (Monatsmittel) from the SNB data portal. Suitable for budget calculations, cost estimations, and financial planning.

Args: params (ConvertCurrencyInput): - amount: Amount in foreign currency to convert. - currency_id: SNB currency ID (e.g. 'EUR1', 'USD1', 'JPY100'). - reference_month: Month YYYY-MM for the rate. Default: most recent.

Returns: str: CHF equivalent, exchange rate used, and reference date.

Example: amount=45000, currency_id='USD1' → CHF equivalent of USD 45,000 amount=100, currency_id='JPY100' → CHF equivalent of JPY 100

snb_get_cube_dataA

Retrieve raw data from any SNB data cube by ID.

Generic tool for accessing SNB cubes beyond the dedicated tools. Use snb_get_cube_metadata first to understand the cube structure. Browse https://data.snb.ch to discover cube IDs from the URL pattern: data.snb.ch/de/topics/{topic}/cube/{cubeId}

Args: params (CubeDataInput): - cube_id: SNB cube identifier (lowercase), e.g. 'devkum', 'snbbipo'. - from_date: Start date (YYYY-MM for monthly, YYYY for annual). - to_date: End date. - lang: Response language (de/en/fr).

Returns: str: Raw timeseries data from the cube as JSON.

snb_get_cube_metadataA

Get metadata and dimension structure for any SNB data cube.

Retrieves the cube's dimension definitions, available filter values, and structure. Use this before querying snb_get_cube_data to understand what parameters and filters are available.

Args: params (CubeMetadataInput): - cube_id: SNB cube identifier, e.g. 'devkum', 'snbbipo'. - lang: Language for labels (de/en/fr).

Returns: str: Cube ID, dimensions, and all available dimension item IDs with labels.

snb_get_balance_of_paymentsA

Retrieve balance-of-payments or international investment position data.

Categories:

  • overview: Zahlungsbilanz — Übersicht (cube bopoverq)

  • iip: Auslandvermögen — Komponenten (cube auvekomq)

Args: params (BalanceOfPaymentsInput): - category: 'overview' or 'iip'. - from_date: Start date, e.g. '2020-Q1' or '2020'. - to_date: End date. - lang: Response language (de/en/fr).

Returns: str: Markdown summary with JSON data.

snb_get_warehouse_dataA

Retrieve raw data from any SNB Warehouse cube by ID.

Generic tool for accessing SNB Warehouse cubes (BSTA banking statistics). Use snb_get_warehouse_metadata first to understand the cube structure. Use snb_list_warehouse_cubes to discover available cube IDs.

Args: params (WarehouseDataInput): - cube_id: SNB Warehouse cube ID (uppercase, dot-separated). - from_date: Start date (YYYY for annual, YYYY-MM for monthly). - to_date: End date. - lang: Response language (de/en/fr).

Returns: str: Timeseries data from the warehouse cube as Markdown + JSON.

snb_get_warehouse_metadataA

Get metadata and dimension structure for any SNB Warehouse cube.

Retrieves the cube's dimension definitions and last update date. Use this before querying snb_get_warehouse_data to understand what dimensions and filter values are available.

Args: params (WarehouseMetadataInput): - cube_id: SNB Warehouse cube ID to inspect. - lang: Language for labels (de/en/fr).

Returns: str: Cube ID, edition date, dimensions and their items.

snb_get_banking_balance_sheetA

Retrieve banking balance sheet data from SNB Warehouse (BSTA BIL cubes).

Returns total assets and/or liabilities for selected bank groups from the Swiss banking statistics. Values are converted to millions of CHF.

Args: params (BankingBalanceSheetInput): - side: 'assets', 'liabilities', or 'both'. - bank_groups: Bank group IDs (default: ['A30'] = all banks). - frequency: 'annual' or 'monthly'. - currency: Currency filter (default: 'T' = Total). - from_date / to_date: Date range. - lang: Response language.

Returns: str: Markdown summary with values in Millionen CHF, plus JSON data.

snb_get_banking_incomeA

Retrieve banking income statement data from SNB Warehouse (BSTA EFR cubes).

Returns key income statement positions (Geschäftsertrag, Geschäftsaufwand, etc.) for selected bank groups. Values are converted to millions of CHF.

Args: params (BankingIncomeInput): - bank_groups: Bank group IDs (default: ['A30'] = all banks). - from_year / to_year: Year range (YYYY). - lang: Response language.

Returns: str: Markdown summary with values in Millionen CHF, plus JSON data.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
snb_list_currenciesList all currency IDs available in SNB exchange rate cubes. Returns the full list of currency identifiers that can be used as filter values in snb_get_exchange_rates, snb_get_annual_exchange_rates, and snb_convert_currency. Note on units: some currencies are quoted per 100 units (e.g. JPY100 = 100 JPY). The rate value always represents CHF per the stated unit quantity. Returns: str: Markdown table of currency IDs, names, and unit multipliers.
snb_list_balance_sheet_positionsList all balance sheet position IDs for the SNB balance sheet cube (snbbipo). Returns asset (Aktiven) and liability (Passiven) position IDs with German labels. Use these IDs as filter values in snb_get_balance_sheet. Returns: str: Markdown table of position IDs and labels, grouped by Aktiven/Passiven.
snb_list_known_cubesList all verified SNB data cube IDs with descriptions and available tools. Returns Phase 1 cubes (dedicated tools) and Phase 2 cubes (accessible via snb_get_cube_data + snb_get_cube_metadata without any code changes). Phase 1 cubes: devkum (monthly FX), devkua (annual FX), snbbipo (balance sheet) Phase 2 cubes: snbgwdzid (Leitzins/SARON daily), zirepo (SARON compound rates), zimoma (international money market rates), snboffzisa (central bank rates comparison), snbmonagg (M1/M2/M3 aggregates) Additional cube IDs can be discovered by browsing data.snb.ch and reading the URL pattern: .../topics/{topic}/cube/{cubeId} Returns: str: Markdown tables of cube IDs grouped by phase, with descriptions, tools, frequency, and discovery guidance.
snb_list_bank_groupsList all bank group IDs used in SNB Warehouse banking statistics (BSTA). Returns the 12 bank group identifiers (Bankengruppen) with their German labels. Use these IDs as filter values for the BANKENGRUPPE dimension in warehouse cube queries. Returns: str: Markdown table of bank group IDs and labels.
snb_list_warehouse_cubesList available SNB Warehouse cube IDs for banking statistics (BSTA). Returns an overview of all supported Warehouse cubes grouped by type: - BSTA Bilanz (BIL): Balance sheet data (monthly and annual) - BSTA Erfolgsrechnung (EFR): Income statement data (annual) Includes cube ID schema explanation, dimension info, and usage notes. Returns: str: Markdown overview of warehouse cubes with IDs and dimensions.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/malkreide/swiss-snb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server