bergauf
Lets an LLM plan hikes anywhere in Switzerland by combining named routes, elevation profiles, weather forecasts, and public transport.
README
bergauf
A Model Context Protocol (MCP) server that lets an LLM client plan hikes anywhere in Switzerland. Combines named SwitzerlandMobility routes, swisstopo elevation profiles, Open-Meteo weather, and Swiss public transport.
Single static binary, built with Bun. No API keys.
Tools
| Tool | Purpose |
|---|---|
search_location |
Resolve a free-text place name (town, mountain, station, address) to WGS84 coordinates. |
list_named_routes |
List SwitzerlandMobility (Wanderland) routes. Optional WGS84 bbox filter. |
get_named_route |
Fetch one route by its feature id. Returns attributes and geometry (WGS84 GeoJSON). |
get_hike_profile |
Distance, ascent/descent, elevation samples, SAC/DAV walking time for a GeoJSON line. |
nearest_stations |
Nearest train/bus/tram stops to a WGS84 point. |
plan_transit |
Plan a public transport connection (departure or arrival time). |
forecast |
Hourly + daily weather for a WGS84 point (MeteoSwiss ICON seamless via Open-Meteo). |
Each tool returns small JSON payloads with both content (text) and
structuredContent. Coordinates are WGS84 lat/lon throughout.
Install
Homebrew (macOS)
brew tap lailo/tap
brew install bergauf
This puts bergauf on your $PATH. For Claude Desktop, point command at the
plain binary name (see Claude Desktop config below).
Manual download
Pick the binary for your platform from the
latest release. Each
release also ships a SHA256SUMS.txt for verification.
macOS
# Apple Silicon → bergauf-darwin-arm64.tar.gz
# Intel → bergauf-darwin-x64.tar.gz
tar -xzf bergauf-darwin-arm64.tar.gz
chmod +x bergauf
sudo mv bergauf /usr/local/bin/
xattr -d com.apple.quarantine /usr/local/bin/bergauf # clear Gatekeeper flag
Easier: use Homebrew above.
Linux
# x86_64 → bergauf-linux-x64
# arm64 → bergauf-linux-arm64
curl -L -o bergauf https://github.com/lailo/bergauf/releases/latest/download/bergauf-linux-x64
chmod +x bergauf
sudo mv bergauf /usr/local/bin/
No-sudo variant: mv bergauf ~/.local/bin/ (make sure ~/.local/bin is on $PATH).
Windows
Download bergauf-windows-x64.exe, drop it in a stable folder, and add that
folder to PATH. From PowerShell:
$dest = "$env:LOCALAPPDATA\bergauf"
New-Item -ItemType Directory -Force -Path $dest | Out-Null
Move-Item bergauf-windows-x64.exe "$dest\bergauf.exe"
[Environment]::SetEnvironmentVariable("Path", "$env:Path;$dest", "User")
Restart your shell. On first launch, SmartScreen may warn that the binary is unsigned — click "More info" → "Run anyway".
Claude Desktop config
Add to ~/Library/Application Support/Claude/claude_desktop_config.json.
If you installed via Homebrew:
{
"mcpServers": {
"bergauf": {
"command": "bergauf"
}
}
}
Or, for a manually downloaded binary, point at the absolute path:
{
"mcpServers": {
"bergauf": {
"command": "/absolute/path/to/bergauf"
}
}
}
For Bun-from-source during development:
{
"mcpServers": {
"bergauf": {
"command": "bun",
"args": ["run", "/absolute/path/to/bergauf/src/index.ts"]
}
}
}
Restart Claude Desktop. The seven tools appear under the bergauf server.
Example prompts
- "Plan me a 4-hour day hike from Zurich this Saturday. I want to take the train there and back."
- "What's the weather like at the top of Säntis tomorrow?"
- "Show me the elevation profile for ViaJacobi between Rapperswil and Einsiedeln."
The LLM composes the tools: search_location → list_named_routes →
get_named_route → get_hike_profile → forecast → nearest_stations →
plan_transit.
Development
Requires Bun ≥ 1.2.
bun install
bun run dev # MCP Inspector UI in the browser — call tools, inspect responses
bun run dev:stdio # or the raw stdio server (for piping JSON-RPC by hand)
bun run dev wraps the server in MCP Inspector,
which auto-discovers the seven tools, renders their Zod input schemas as forms, and shows
both the pretty-printed and structured outputs side-by-side. First run downloads the
Inspector via bunx; subsequent runs hit the cache.
Checks:
bun test # unit tests (no live API calls)
bun run typecheck # tsc --noEmit
bun run lint # biome check
bun run format # biome format --write
API client tests stub fetch; no fixtures are committed. The Wanderland
attribute schema and a few transport edge cases were verified with live probes
during initial development — see src/tools/list-named-routes.ts for the
SwitzerlandMobility route-number → category convention.
Build a compiled binary locally:
bun run build:darwin-arm64 # → dist/bergauf-darwin-arm64
bun run build:darwin-x64 # → dist/bergauf-darwin-x64
bun run build:linux-x64 # → dist/bergauf-linux-x64
bun run build:linux-arm64 # → dist/bergauf-linux-arm64
bun run build:windows-x64 # → dist/bergauf-windows-x64.exe
bun run build # all five
External APIs
All free, public, no auth:
- geo.admin.ch (api3) — search, Wanderland identify, elevation profile, point elevation. Fair use: 20 req/min average. GET only.
- transport.opendata.ch — Swiss public transport (locations, connections). Soft, undocumented rate limit.
- Open-Meteo — weather forecast. MeteoSwiss ICON seamless model for best Swiss coverage. CC BY 4.0 attribution.
Attribution
- Hiking data: swisstopo, SchweizMobil, Swiss Hiking Federation.
- Weather data: Open-Meteo (CC BY 4.0), MeteoSwiss ICON seamless model.
License
MIT with Commons Clause — free to use, modify, and self-host; selling the software (including hosted/commercial offerings whose value derives substantially from it) requires a separate license. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。