Skip to main content
Glama
Aareguru MCP Server

Aareguru MCP Server

by schlpbch

Aareguru MCP Server

FastMCP Cloud Tests Coverage Python FastMCP Version Privacy Policy

MCP server for Swiss Aare river data, enabling AI assistants like Claude to answer questions about swimming conditions, water temperature, flow rates, and safety.

Latest Release: v4.9.0 โ€” Added a full merchandise catalog browsing view, and fixed two correctness bugs: unknown cities no longer silently return Bern's data, and empty checkout requests no longer clear your cart. See docs/RELEASE_NOTES_v4.9.0.md for details.

๐Ÿš€ Quick Start

Use directly from FastMCP Cloud (no installation needed).

Add it as a custom connector in Claude Desktop:

Claude Custom Connector

No authentication is needed.

Alternatively, add the aareguru-mcp.mcpb file via Claude โ†’ Settings โ†’ Extensions, or edit the Claude Desktop config directly:

{
  "mcpServers": {
    "aareguru": {
      "url": "https://aareguru.fastmcp.app/mcp"
    }
  }
}

Related MCP server: meteoswiss-mcp

๐Ÿ“ธ Screenshots

Claude Mobile Claude Mobile Claude Desktop Integration Claude Desktop Integration Claude Desktop Integration

๐ŸŽฏ Features

Feature

Description

12 MCP Tools

Temperature, flow, safety, forecasts, history, comparisons + shop/checkout

8 MCP Resources

Direct data access via aareguru:// URIs incl. shop catalog

3 MCP Prompts

Daily reports, spot comparisons, weekly trends

11 FastMCPApps

Interactive dashboards, charts, map, shop catalog/cart/checkout โ€” de/en/fr/it

UCP Checkout

Shop cart and checkout via Universal Commerce Protocol over WooCommerce

MCP Elicitation

Asks for confirmation on dangerous flows and large data requests

Rate Limiting

100 req/min, 1000 req/hour protection against abuse

Metrics

Prometheus endpoint for monitoring and observability

Swiss German

Authentic temperature descriptions ("geil aber chli chalt")

BAFU Safety

Official flow danger levels and thresholds

505 Tests

85% coverage, comprehensive test suite (0 skipped)

Async-First

Context managers, parallel API fetching with asyncio.gather()

๐Ÿ› ๏ธ Tools

Aare river tools

Tool

Description

Example Query

get_current_temperature

Water temperature with Swiss German text

"What's the Aare temperature?"

get_current_conditions

Full conditions (temp, flow, weather)

"How's the Aare looking today?"

get_flow_danger_level

Flow rate + BAFU safety assessment

"Is it safe to swim?"

compare_cities

Compare all cities (parallel fetching)

"Which city is warmest?"

get_forecasts

Forecasts for multiple cities (parallel)

"Show forecasts for all cities"

get_historical_data

Temperature/flow history (hourly data)

"Show last 7 days for Bern"

Shop tools (konsum.aare.guru โ€” UCP checkout)

Tool

Description

Example Query

list_shop_products

Browse merchandise catalog with prices in CHF

"What merch is available?"

get_shop_product

Full details for a specific product

"Tell me more about the swim buoy"

create_checkout_session

Start a UCP checkout session (adds items to cart)

"I want to buy the beach towel"

update_checkout_session

Attach billing/shipping address to a session

"My address is Bahnhofplatz 1, Bern"

complete_checkout

Submit the order and return the PostFinance payment URL

"Confirm my order"

cancel_checkout_session

Cancel a session and clear the cart

"Never mind, cancel my order"

BAFU Safety Thresholds

Flow Rate

Level

Status

< 100 mยณ/s

Safe

Swimming OK

100โ€“220 mยณ/s

Moderate

Experienced swimmers only

220โ€“300 mยณ/s

Elevated

Caution advised

300โ€“430 mยณ/s

High

Dangerous

> 430 mยณ/s

Very High

Extremely dangerous

๐Ÿ“Š Resources

URI

Description

aareguru://cities

All monitored cities with coordinates

aareguru://current/{city}

Full current conditions for a city

aareguru://today/{city}

Minimal current snapshot

aareguru://forecast/{city}

Weather forecast entries

aareguru://history/{city}/{start}/{end}

Historical hourly time series

aareguru://safety-levels

BAFU 1โ€“5 danger level reference table

aareguru://thresholds

Flow zone breakpoints with hex colors

aareguru://shop

Merchandise catalog from konsum.aare.guru

๐Ÿ–ฅ๏ธ Interactive Apps (FastMCPApps)

Eleven apps render rich UIs directly inside AI conversations via fastmcp[apps]:

App

Description

conditions

Dashboard: water temp, flow, weather, BAFU level

history

Area chart of temperature and flow over time

compare

Sortable table comparing all cities

forecast

24-hour forecast with air-temperature chart

intraday

Today's intraday water temperature sparkline

city_finder

All cities ranked by temperature or safety

safety

BAFU 1โ€“5 danger level briefing with current reading

map

Interactive OpenStreetMap with all stations, satellite toggle

shop

Cart and UCP checkout UI: items, total, billing, payment URL

shop_catalog

Full merchandise catalog as a browsable grid with thumbnails

shop_product

Single product detail page with image carousel

๐Ÿ’ฌ Prompts

Prompt

Description

daily_swimming_report

Comprehensive daily report with conditions, safety, forecast, and recommendation

compare_swimming_spots

Compare all cities to find the best swimming spot today

weekly_trend_analysis

Analyze temperature and flow trends over the past week

๐Ÿ’ป Local Installation

# Install uv and clone
curl -LsSf https://astral.sh/uv/install.sh | sh
git clone https://github.com/schlpbch/aareguru-mcp.git && cd aareguru-mcp
uv sync

# Run tests
uv run pytest

Claude Desktop (Local)

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "aareguru": {
      "command": "uv",
      "args": ["--directory", "/path/to/aareguru-mcp", "run", "aareguru-mcp"]
    }
  }
}

๐Ÿณ Docker

cp .env.example .env
docker-compose up -d
curl http://localhost:8000/health

โ˜๏ธ Hosting

This server is deployed on FastMCP Cloud, a managed platform for MCP servers with zero-config deployment.

Features:

  • โœ… Zero-Config Deployment โ€” Connect GitHub repo, automatic deployment

  • โœ… Serverless Scaling โ€” Scale from 0 to millions of requests instantly

  • โœ… Git-Native CI/CD โ€” Auto-deploy on push to main, branch deployments for PRs

  • โœ… Built-in Security โ€” OAuth support, token management, secure endpoints

  • โœ… MCP Analytics โ€” Request/response tracking, tool usage insights

  • โœ… Free Tier โ€” Available for personal servers

Deployment Steps:

  1. Sign in to fastmcp.cloud with GitHub

  2. Create Project and link your repository

  3. Deploy โ€” Platform automatically clones, builds, and deploys

  4. Access โ€” Get your unique URL (e.g., https://aareguru.fastmcp.app/mcp)

Configuration:

No special configuration needed. FastMCP Cloud auto-detects FastMCP servers:

  • Health endpoint: https://your-app.fastmcp.app/health

  • MCP endpoint: https://your-app.fastmcp.app/mcp

Pricing:

  • Free tier for personal projects

  • Pay-as-you-go for teams (usage-based)

Alternative Hosting Options

FastMCP servers can be deployed to any Python-compatible cloud platform.

Container Platforms: Google Cloud Run, AWS ECS/Fargate, Azure Container Instances

PaaS Providers: Railway, Render, Vercel

Cloud VMs: AWS EC2, Google Compute Engine, Azure VMs

๐Ÿ“Š Monitoring & Observability

Prometheus Metrics

The server exposes Prometheus-compatible metrics at /metrics:

Metric

Type

Description

aareguru_mcp_tool_calls_total

Counter

Tool invocations by name and status

aareguru_mcp_tool_duration_seconds

Histogram

Tool execution times

aareguru_mcp_api_requests_total

Counter

Aareguru API requests

aareguru_mcp_errors_total

Counter

Errors by type and component

aareguru_mcp_active_requests

Gauge

Currently active requests

Rate Limiting

HTTP endpoints are protected with rate limiting:

  • Default limits: 100 requests/minute, 1000 requests/hour

  • Health endpoint: 60 requests/minute

  • Headers: Rate limit info included in responses

  • 429 responses: Automatic retry-after headers when limits exceeded

๐Ÿงช Development

uv run pytest                    # Run tests (505 tests, all passing)
uv run pytest --cov=aareguru_mcp # With coverage (85%)
uv run ruff check src/ tests/    # Lint (all passing)
uv run mypy src/                 # Type check (0 errors)
uv run fastmcp dev apps run-ext-apps.py  # Preview all 9 apps

Visual Debugging - All Apps on One Page

For comprehensive visual testing, render all 12 apps on one page:

./run-debug-all-apps.sh          # Start debug server on http://localhost:3000

This debug page includes:

  • โœ… Complete conditions dashboard

  • โœ… All 4 individual condition cards (temperature, flow, weather, sun)

  • โœ… Historical chart (7 days) and intraday sparkline

  • โœ… 24-hour forecast view

  • โœ… City comparison table and city finder

  • โœ… Safety briefing with BAFU levels

  • โœ… Interactive OpenStreetMap with all stations

  • โœ… Shop cart and checkout (UCP)

Perfect for:

  • Visual regression testing

  • Design system verification

  • Quick overview of all UI components

  • Debugging layout and styling issues

๐Ÿ“– Documentation

๐Ÿ“ Project Structure

aareguru-mcp/
โ”œโ”€โ”€ src/aareguru_mcp/
โ”‚   โ”œโ”€โ”€ apps/          # 11 FastMCPApps (conditions, history, compare, โ€ฆ, map, shop, shop_catalog)
โ”‚   โ”œโ”€โ”€ server.py      # FastMCP server, tools, resources, prompts
โ”‚   โ”œโ”€โ”€ service.py     # Business logic service layer
โ”‚   โ”œโ”€โ”€ client.py      # Async HTTP client with caching
โ”‚   โ”œโ”€โ”€ models.py      # Pydantic models
โ”‚   โ””โ”€โ”€ helpers.py     # Shared utilities
โ”œโ”€โ”€ tests/             # 505 tests, 85% coverage (0 skipped)
โ”œโ”€โ”€ docs/              # API docs, testing, implementation notes
โ”œโ”€โ”€ ARCHITECTURE.md
โ”œโ”€โ”€ CLAUDE.md
โ””โ”€โ”€ pyproject.toml

๐Ÿ” Privacy

No personal data is collected. See PRIVACY.md for the full policy.

๐Ÿ”’ Data Attribution

Data from BAFU, Aare.guru, MeteoSchweiz, Meteotest.

Non-commercial use only โ€” Contact: aaregurus@existenz.ch

๐Ÿ“„ License

MIT License โ€” See LICENCE.md


Built with โค๏ธ for the Swiss Aare swimming community

Available Tools

42 tools
aare_mapAare MapA

Show an interactive OpenStreetMap with all Aare monitoring stations.

Each city is plotted as a circle marker coloured by BAFU safety level. Click a marker to see temperature, flow, and Swiss German description.

Inputs: city, lang.

cancel_checkout_sessionCancel Checkout SessionA

Cancel a checkout session and clear the cart.

Use this when the user wants to abandon a checkout or start over.

Args: session_id: From create_checkout_session result.

Returns: Dictionary with session_id and status 'canceled'.

Inputs: session_id (required). Returns: object

city_finder_viewCity Finder ViewA

Show all cities ranked by water temperature or safety.

Fetches live data for every available city and ranks them so swimmers can instantly find the warmest or safest spot.

Inputs: lang, sort_by.

compare_citiesCompare CitiesA

Compare multiple cities

This is the recommended tool for comparing one to many cities.

Args: cities: List of city identifiers (e.g., ['Bern', 'Thun']). If None, compares all available cities.

Returns: Dictionary with: - cities: List of city data with temperature, flow, safety - warmest: City with highest temperature - coldest: City with lowest temperature - safe_count: Number of cities with safe flow conditions - total_count: Total cities compared

Inputs: cities. Returns: object

compare_cities_tableCompare Cities TableB

Show a sortable, searchable table comparing Aare conditions across cities.

Header summary cards use the aare.guru cyan (#2be6ff) accent. Safety column uses BAFU color coding.

Inputs: lang, cities.

complete_checkoutComplete CheckoutA

Submit the order and return the payment URL.

Use this after update_checkout_session to finalise the purchase. Returns a payment_url the user must open in their browser to pay via PostFinance Checkout.

Inputs: session_id (required). Returns: object

conditions_dashboardConditions DashboardA

Show an interactive aare.guru-style dashboard of current Aare conditions.

Displays water temperature in the signature Aare cyan (#2be6ff) card, flow rate, BAFU safety level with the characteristic thick teal border, Swiss German description, and a danger alert when flow is elevated.

Inputs: city, lang.

create_checkout_sessionCreate Checkout SessionA

Create a UCP checkout session with one or more products.

Use this when the user wants to buy something. Clears any existing cart and starts a new checkout session. Returns a session_id needed for subsequent update and complete calls.

Args: items: List of items to purchase. Each item must have: - product_id (int): from list_shop_products - quantity (int, optional): defaults to 1

Returns: UCP CheckoutSession with session_id, status, line_items, total_chf.

Example: >>> result = await create_checkout_session([{"product_id": 42, "quantity": 1}]) >>> session_id = result['session_id']

Inputs: items (required). Returns: object

fetch_comparisonFetch ComparisonC

Fetch comparison data for cities (called from UI).

Inputs: cities. Returns: object

fetch_historyFetch HistoryC

Fetch historical time-series data (called from UI).

Inputs: end (required), city (required), start (required). Returns: object

flow_cardFlow CardB

Show an interactive Aare flow and safety level card.

Displays water flow in mยณ/s with BAFU safety level assessment and color-coded flow zones.

Inputs: city, lang.

forecast_viewForecast ViewB

Show a 24-hour forecast with air-temperature chart and hourly card strip.

Displays the 2-hour water temperature trend alongside an hourly weather prognosis (MeteoSwiss symbols, air temp, precipitation) for the full day.

Inputs: city, lang.

get_current_conditionsGet Current ConditionsA

Get complete current conditions for a city.

Use this for safety assessments, 'is it safe to swim?' questions, and when users need a complete picture before swimming. This is the most detailed tool.

Inputs: city. Returns: object

get_current_temperatureGet Current TemperatureA

Get current water temperature for a city.

Use this for quick temperature checks and simple 'how warm is the water?' questions. Returns temperature in Celsius, Swiss German description (e.g., 'geil aber chli chalt'), and swimming suitability.

Inputs: city. Returns: object

get_flow_danger_levelGet Flow Danger LevelA

Get current flow rate and BAFU danger assessment.

Use this for safety-critical questions about current strength and swimming danger.

Flow Safety Thresholds:

  • <100 mยณ/s: Safe ยท 100-220: Moderate ยท 220-300: Elevated

  • 300-430 mยณ/s: High โ€” dangerous ยท >430: Very high โ€” extremely dangerous

Inputs: city. Returns: object

get_forecastsGet ForecastsA

Get forecasts for multiple cities.

Fetches all forecasts concurrently.

Args: cities: List of city identifiers (e.g., ['Bern', 'Thun'])

Returns: Dictionary mapping city names to forecast data: - forecasts (dict): Map of city to forecast data with current temp, 2-hour forecast, and trend

Inputs: cities (required). Returns: object

get_historical_dataGet Historical DataA

Get historical time-series data.

Use this for trend analysis, comparisons with past conditions, and statistical queries. Returns hourly data points for temperature and flow.

Inputs: end (required), city (required), start (required). Returns: object

get_shop_productGet Shop ProductA

Get detailed information about a specific shop product.

Use this after list_shop_products to get the full description, all images, and exact pricing for a product before adding it to a checkout session.

Args: product_id: WooCommerce product ID (from list_shop_products result).

Returns: Dictionary with id, name, price_chf, permalink, description, short_description, on_sale, stock_status, images (list of URLs).

Example: >>> result = await get_shop_product(42) >>> print(result['name'], result['price_chf'])

Inputs: product_id (required). Returns: object

historical_chartHistorical ChartB

Show an aare.guru-style area chart of historical Aare temperature and flow.

Uses the Aare color palette: #0877ab for temperature, #357d9e for flow.

Inputs: end, city, lang, start.

intraday_viewIntraday ViewA

Show today's water temperature as an intraday area chart.

Uses the past readings from the current-conditions response to plot how the Aare temperature has evolved throughout the day โ€” no extra API call required.

Inputs: city, lang.

list_shop_productsList Shop ProductsA

List available merchandise from the Aareguru shop.

Use this to browse products, answer 'what merch is available?', or find items by keyword. Returns name, price in CHF, and product URL.

Args: search: Optional keyword filter (e.g., 'towel', 'cap'). If None, returns the full catalog.

Returns: Dictionary with: - products: List of products with id, name, price_chf, permalink, short_description, on_sale, stock_status, image_url - count: Total number of products returned

Example: >>> result = await list_shop_products() >>> for p in result['products']: ... print(f"{p['name']}: CHF {p['price_chf']}")

Inputs: search. Returns: object

product_viewProduct ViewA

Show a product detail page for a konsum.aare.guru merchandise item.

Displays the product image, name, price, stock status, and description. Use after list_shop_products to let the user inspect a specific item before adding it to their cart.

Inputs: lang, product_id.

refresh_citiesRefresh CitiesC

Refresh city comparison data (called from UI).

Inputs: cities. Returns: object

refresh_conditionsRefresh ConditionsB

Refresh current conditions for a city (called from UI).

Inputs: city (required). Returns: object

refresh_flowRefresh FlowC

Refresh flow and safety data for a city (called from UI).

Inputs: city (required). Returns: object

refresh_forecastRefresh ForecastC

Refresh forecast data for a city (called from UI).

Inputs: city (required). Returns: object

refresh_intradayRefresh IntradayC

Refresh intraday readings for a city (called from UI).

Inputs: city (required). Returns: object

refresh_mapRefresh MapC

Refresh map data (called from UI).

Inputs: city. Returns: object

refresh_productRefresh ProductB

Refresh product details (called from UI).

Inputs: product_id (required). Returns: object

refresh_safetyRefresh SafetyC

Refresh safety data for a city (called from UI).

Inputs: city (required). Returns: object

refresh_shop_cartRefresh Shop CartC

Refresh cart and checkout state for a session (called from UI).

Inputs: session_id (required). Returns: object

refresh_shop_catalogRefresh Shop CatalogB

Refresh the merchandise catalog, optionally filtered by search term (called from UI).

Inputs: search. Returns: object

refresh_sunRefresh SunC

Refresh sun data for a city (called from UI).

Inputs: city (required). Returns: object

refresh_temperatureRefresh TemperatureB

Refresh temperature data for a city (called from UI).

Inputs: city (required). Returns: object

refresh_weatherRefresh WeatherC

Refresh weather data for a city (called from UI).

Inputs: city (required). Returns: object

safety_briefingSafety BriefingB

Show the official BAFU 1โ€“5 danger level scale with the current reading highlighted.

Translates the hydrological danger level into plain swimmer guidance, using the actual flow_gefahrenstufe from the API where available.

Inputs: city, lang.

shop_cart_viewShop Cart ViewA

Show cart contents, billing details, and order status for a checkout session.

Renders the full shopping cart UI including items, totals, billing address, and payment confirmation. Use after create_checkout_session to track your order.

Inputs: lang, session_id.

shop_catalog_viewShop Catalog ViewA

Show the full konsum.aare.guru merchandise catalog as a browsable grid.

Displays every available product with thumbnail, name, price, and stock/ sale status. Use this for "what merch is there?" or "show me the shop" questions. Use get_shop_product / product_view for details on one item, and create_checkout_session to start a purchase.

Inputs: lang, search.

sun_cardSun CardB

Show an interactive Aare sun and sunshine card.

Displays total sunshine hours for today, sunset time, and time-left-in-sun for nearby locations.

Inputs: city, lang.

temperature_cardTemperature CardB

Show an interactive Aare water temperature card.

Displays the current water temperature in the signature Aare cyan card with 2-hour forecast trend and Swiss German description.

Inputs: city, lang.

update_checkout_sessionUpdate Checkout SessionA

Attach billing and shipping address to a checkout session.

Use this after create_checkout_session to provide the delivery address. Required before calling complete_checkout. If shipping is omitted, billing address is used for shipping too.

Args: session_id: From create_checkout_session result. billing: Billing address dict with keys: first_name, last_name, email, address_1, city, postcode, country (default 'CH'), state (optional). shipping: Shipping address dict (same keys as billing). Optional.

Returns: Updated UCP CheckoutSession with status 'ready_for_complete'.

Inputs: billing (required), session_id (required), shipping. Returns: object

weather_cardWeather CardB

Show an interactive Aare weather card.

Displays current air temperature, precipitation risk, and a 6-day forecast strip.

Inputs: city, lang.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelogโ€ฆ

    TDQS

    C2.9/5.0

    Scored across 42 tools

    Disambiguation2/5

    Many tools have overlapping purposes: get_current_temperature/temperature_card/conditions_dashboard all report current conditions, compare_cities/compare_cities_table/fetch_comparison overlap, and the 13 refresh_* tools are nearly identical except for the resource name. UI view tools and data retrieval tools form unclear boundaries for an agent deciding which tool to call.

    Naming Consistency2/5

    Naming is inconsistent across the set: get_current_temperature and compare_cities use verb_noun, shop_cart_view and weather_card use noun_view/noun_card, while refresh_shop_cart, fetch_history, and forecast_view mix different verb prefixes. The patterns are individually readable but do not form one predictable convention.

    Tool Count2/5

    42 tools is excessive for the apparent scope of river conditions plus a small merchandise shop. Many tools are UI-only views and refresh actions that duplicate the same underlying data operations, inflating the surface without adding meaningful agent capabilities.

    Completeness4/5

    The core domain is well covered: current conditions, forecasts, historical data, comparisons, safety levels, and the full checkout lifecycle from listing products to payment URL. Minor gaps exist, such as no dedicated sun data retrieval separate from the sun_card view, but agents can accomplish the main workflows.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers