Aareguru MCP Server
This server lets AI assistants answer questions about Swiss Aare river swimming conditions and even run a merch shop checkout.
Get current water temperature, flow rate, and full swimming conditions for cities like Bern, Thun, Olten
Check BAFU safety/danger levels and flow thresholds to answer "is it safe to swim?"
Compare multiple cities side-by-side (temperature, flow, safety)
Fetch weather and water forecasts for one or many cities
Retrieve historical hourly temperature and flow data for trend analysis
Access direct data via
aareguru://resources (cities, current conditions, forecasts, history, safety levels, shop catalog)Browse and purchase merchandise through shop tools with Universal Commerce Protocol (UCP) checkout and PostFinance payment
Render interactive dashboards, charts, maps, and shop UIs directly in the conversation (11 FastMCPApps)
Use built-in prompts for daily swimming reports, spot comparisons, and weekly trend analysis
Monitor server usage via Prometheus metrics and rate-limited endpoints
Exposes a metrics endpoint for monitoring and observability, tracking tool invocation counts, execution durations, and API request health.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Aareguru MCP Server is it safe to swim in Bern today?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Aareguru MCP Server
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:

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

๐ฏ Features
Feature | Description |
12 MCP Tools | Temperature, flow, safety, forecasts, history, comparisons + shop/checkout |
8 MCP Resources | Direct data access via |
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 |
| Water temperature with Swiss German text | "What's the Aare temperature?" |
| Full conditions (temp, flow, weather) | "How's the Aare looking today?" |
| Flow rate + BAFU safety assessment | "Is it safe to swim?" |
| Compare all cities (parallel fetching) | "Which city is warmest?" |
| Forecasts for multiple cities (parallel) | "Show forecasts for all cities" |
| Temperature/flow history (hourly data) | "Show last 7 days for Bern" |
Shop tools (konsum.aare.guru โ UCP checkout)
Tool | Description | Example Query |
| Browse merchandise catalog with prices in CHF | "What merch is available?" |
| Full details for a specific product | "Tell me more about the swim buoy" |
| Start a UCP checkout session (adds items to cart) | "I want to buy the beach towel" |
| Attach billing/shipping address to a session | "My address is Bahnhofplatz 1, Bern" |
| Submit the order and return the PostFinance payment URL | "Confirm my order" |
| 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 |
| All monitored cities with coordinates |
| Full current conditions for a city |
| Minimal current snapshot |
| Weather forecast entries |
| Historical hourly time series |
| BAFU 1โ5 danger level reference table |
| Flow zone breakpoints with hex colors |
| Merchandise catalog from konsum.aare.guru |
๐ฅ๏ธ Interactive Apps (FastMCPApps)
Eleven apps render rich UIs directly inside AI conversations via fastmcp[apps]:
App | Description |
| Dashboard: water temp, flow, weather, BAFU level |
| Area chart of temperature and flow over time |
| Sortable table comparing all cities |
| 24-hour forecast with air-temperature chart |
| Today's intraday water temperature sparkline |
| All cities ranked by temperature or safety |
| BAFU 1โ5 danger level briefing with current reading |
| Interactive OpenStreetMap with all stations, satellite toggle |
| Cart and UCP checkout UI: items, total, billing, payment URL |
| Full merchandise catalog as a browsable grid with thumbnails |
| Single product detail page with image carousel |
๐ฌ Prompts
Prompt | Description |
| Comprehensive daily report with conditions, safety, forecast, and recommendation |
| Compare all cities to find the best swimming spot today |
| 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 pytestClaude 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
FastMCP Cloud (Recommended)
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:
Sign in to fastmcp.cloud with GitHub
Create Project and link your repository
Deploy โ Platform automatically clones, builds, and deploys
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/healthMCP 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 |
| Counter | Tool invocations by name and status |
| Histogram | Tool execution times |
| Counter | Aareguru API requests |
| Counter | Errors by type and component |
| 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 appsVisual 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:3000This 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
ARCHITECTURE.md โ Comprehensive architecture guide
CLAUDE.md โ Development guide for AI assistants
specs/ADR_COMPENDIUM.md โ 18 Architecture Decision Records
docs/ โ API documentation and planning
๐ 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 toolsaare_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
Scored across 42 tools
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 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.
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.
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
Related MCP Connectors
Swiss weather data for AI assistants โ forecasts, measurements, stations, pollen.
Access UK flood warnings, river levels, water quality, Met Office forecasts, and carbon data
German and Swiss river gauges, groundwater and flood levels from ten official sources
Real-time water levels and flow rates from USGS stream gauges
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to real-time and historical water conditions of the Aare river in Switzerland, including water temperature, flow rates, swimming recommendations, and data from multiple monitoring locations along the river.58 npm1GPL 3.0
- AlicenseAqualityBmaintenanceEnables AI models to access Swiss weather and climate data from MeteoSwiss, including current observations, forecasts, and warnings.6MIT
- AlicenseAqualityAmaintenanceConnects AI assistants to Swiss environmental data from BAFU, including air quality, hydrology, natural hazards, and open datasets, with no API keys required.2134 PyPI1MIT
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants read-only access to discover and compare 184,900+ beaches, lakes, and swimming spots worldwide with current planning signals.-